CSS - Using Css For Placement Of Image Maps?
How can I best place Image maps with CSS? It seems the text placement command works, but I don't know whether that's the best way. Here's a test page I threw together which uses this command to place the image map:
http://www.gamexplain.com/test2.htm So is there a better way? How should I format the command? Thanks! Similar TutorialsHi, I am trying to line up a few images at the top of this page: iamthelab dotcom The 2 rectangles need to be aligned to the top of the page and I can't for the life of me figure out what I am doing wrong. I'm sure the solution is simple. No help from other forums, maybe you guys can assist. Thanks! Hello, My home page works fine on all browsers and platforms except safari. http://www.caillouette.com/EoLtest/ The two buttons below the main nav should be above the big blue "Request Information" button. Can anyone help? thanks -S I'm aware that there are several threads addressing the issue of image placement, but I'm unable to find anything referencing the specific issue I'm having, so I figured I'd ask... Let me first say that I am a professional martial arts instructor, not a web developer. What I do know how to do is completely self-taught. Bearing that in mind, I've discovered a relatively minor issue with our site, and I'm curious as to input here. Blue Mountain Martial Arts You will notice two "bamboo sprigs" in the upper right and left hand corners of the page. It took me quite awhile to get these to the actual edge of the browser window, but it seems that what I did was almost too effective. When viewing yahoo's cache of the page the bamboo is still in the upper corners of the browser window, rather than still lined up with other page elements. Google's cache for some reason places the left bamboo in the middle of the page. This is also an issue when the browser window starts "small", and is then maximized. The images in that case do not re-align, and thus will stay where they originally loaded, which may be in the middle of the page. I'd like prospective martial arts students looking at our studio to be drawn in, rather than driven out by a malfunctioning website. Most of the time, the site works fine, but I'd like to make that 100%. Input...? What should I change to have the images load on the edge of the screen, but reposition themselves relative to the other page elements if necessary? hi, i'm trying to add an outer glow image to my site, starting about a 100px from the top. when i use padding on the element i'm adding the trim to, the entire site including the banner shifts down. so i tried using background position, which works until i add repeat-y, which causes it to repeat in the 100px where i don't want it. is there a way to make an image only repeat down? Hi, I'm trying to achieve the raised/gradiated background effect you'll see on the following URL (scroll halfway down the page) csszengarden Kyoto version (sorry, since I'm a new user I can't provide a direct URL) with an image gradient repeated on the y-axis. It is difficult to give an example of the image without being able to attach and image here. I've tried so many things I've forgotten my own name. Please let me know if there is any more information that I can provide. Thanks! Hello all, I'm new on this forum, but not that new to Web Design. I am re-working my website that can be found here. What I really want to figure out is how to replace the white box in my #mainContentWrapper class with an image that I made (which I'm going to post at the bottom of this). I have tried to locate examples of this online to try to learn something from those, but all of my efforts have come up short. I have also been able to chage the background image for that element, but I am still left with the white box on top of it. I guess I'm just missunderstanding the CSS box model. If anyone can lend some advice on this subject, I would greatly appreciate it. (URL address blocked: See forum rules) *edit: I can't find the guidlines for posting links to my page and the image I'm talking about so I'll just give you the url. the site is: (URL address blocked: See forum rules) and the image is at: starvingyoungartists.com/contentBG.png Friends, I am trying to provide a 'Print' functionality on my HTML page. The idea is to have a small print icon appear on the left side, followed by the words 'Print'. On clicking on the 'Print' link a popup window should open. The popup etc. works fine. How ever the word 'Print' is over-lapping the 'printer' image. The printer image comes up but the word 'Print' comes right on top of it. How can I place the printer image, and the word 'Print' on its right side? This is the current peice of CSS code I have written. What could be wrong in it? Code: .linkprint { background-image: url('/abc/kap/com.ahj.wpc.layout/images/icon_print.gif'); background-repeat:no-repeat; text-align:right; margin-right: 10px; font-size: 8pt; font-weight: bold; } Hey everyone, I'm redesigning a site and I'm running into some problems in firefox with the placement of the header-background image. The problem is that firefox places the image about 15 pixels below the intended area. When I add a border of 1 pixel to the header div firefox places the image correctly. I don't have this problem when viewing the site in IE. I've coded the following XHTML and css: Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title>ParaCentrumEeldeHoogeveen</title> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> <meta http-equiv="expires" content="0" /> <meta http-equiv="Content-Language" content="nl" /> <link rel="stylesheet" href="css/layout.css" type="text/css" /> </head> <body> <div id="container"> <div id="header"> </div> </div> </body> </html> And the css file: Code: html { padding: 0px; margin: 0px; } body { background: #3a60db url('../gfx/background.jpg') repeat-x; font-family: arial, "lucida console", sans-serif; font-size: 12px; color: #000000; text-align: center; margin: 0px; margin-top: 0px; padding: 0px; } #container { border: 0px solid #ff0000; width: 760px; margin: 0px auto; padding: 0px; text-align: left; } #header { background: url('../gfx/header.jpg') no-repeat; height: 238px; width: 760px; padding: 0px; margin: 0px; } Screenshot of the problem Does anybody know what the problem is? Thanks in advance. Grtz. Arjen Howdy, I am working on a particular project that requires a single image to have several clickable links. I assume an image map is best for this however i am just wondering how compaitible one is and also, how do i do it? Thanks Hello. I'm a first time poster and also still wet behind the ears as far as CSS goes. I would like to know if there is a way to insert image map coordinates into a style sheet so I do not have to repeat those image map coordinates on each html page. Here's my sample that I'm working with: URL So I have one image (which I know I have to put on the html page, because CSS only allows background images), and then all these hotspots on the image that form the map + coordinates. If there is a way to put all those coordinates over into an external style sheet, I'll be ... ecstatic. If there's not a way, then I'll abandon this idea and move on! Much thanks in advance, san antone rose Hi, I have tried my hand at creating a box to set a fake image map over a background image, without luck. (But, I'm a total dork using css. Absolute beginner.) I have been trying the instructions he http://www.position-relative.com/tutorials/tute1_css_bg_image.php However, my background image is set into the body css spec, though I have only tag styles + the body's background image set using css. The rest of my page is tables, so I am wondering if I need to set the background image [for my whole page] using the .box1 spec shown on the tutorial at the link above? And if not, I don't know where / how to use the "#box-link {" noted in this tutorial. Or, if there is a different way to set the links on my css body spec'd background image... ? My background image css spec: Code: body {background-image:url("images/Header.jpg"); background-repeat:no-repeat; background-position:top; } Below is my html in which I want to embed "legend" 30px to the right of "map". After much playing with the code, I need help. "legend" is pushed underneath "map" in this version. Other arrangments have also failed. If I get rid of the "border" and "leg" div tags, they are placed side by side, but I have littile control over where "legend" is placed. Any insight would be appreciated. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:svg="http://www.w3.org/2000/svg" xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> <head> <title>CSS</title> <style type="text/css"> #page {position:absolute;border: 1px solid black;left: 20px;top: 20px;padding-top: 25px;padding-left: 25px;padding-right: 25px;padding-bottom: 25px} #printArea {position:relative;border: 1px dotted black;padding-right: 5px;padding-top: 5px;padding-left: 5px;padding-bottom: 110px} #leg{position:relative;border:1px solid black;width:170px;top:0px;right:0px} .map {position:relative;border:1px solid black} .legend {position:relative;top:0px;left:880:0px} </style> </head> <body> <div id="page"> <div id="printArea"> <div id="border"> <embed class="map" id="map" src="index.svg" width="850px" height="675px" type="image/svg+xml"/> </div> <div id="leg"> <embed class="legend" id="legend" src="legend/legend.svg" width="170px" height="625px" type="image/svg+xml"/> </div> </div> </div> </body> </html> Hi there, I'm having a FF/IE problem! As usual. I have a site up (www.silk-works.com)which thanks to BonRouge and Dan_A has a footer that sits in the correct position, ta peeps. The problem I have now is that - www.silk-works.com/jane/jane.html - I have Images floated right and I want text to appear alongside - which FF handles fine, but IE bumps below the first Image.. Code: <img src="../photographs/jane01.jpg" alt="" id="containerImageRight"/> <img src="../photographs/jane03.jpg" alt="" id="containerImageRight"/> <p>some ample text....</p> [CODE] CSS for image placement is; [CODE]#divWrapper #divContainer #containerImageRight { margin: 0px 10px 10px 10px; float: right; border: 2px solid #6E6447; padding: 0px; } CSS for <p> tag is; Code: #divWrapper #divContainer p { font-family: "Gill Sans MT", Tahoma, Verdana, Arial, sans-serif; font-size: 1.1em; padding-left: 10px; letter-spacing: 0.05em; line-height: 1.3em; padding-right: 10px; color: #6E6447; } Any suggestions greeted with a free ice cream. Regards, James. Hi there. I'm working on a page, and I'm a bit confused about how to place my CSS on it. The page has a nutritional search box that will be the primary focus of the entire site. Right now I have only a front page. So currently I have one external CSS file with the CSS for the page layout, along with the CSS to arrange the search box. But now I want to bring up a javascript popup with just the searchbox and another table. I can't use my original external CSS because I don't want the main page naviagation in the popup, nor do I want to copy the CSS for the search box everywhere. What is the correct way to do this? I almost want two external css files. I want to include BOTH files in the main page, and only the file associated with the search box in the popup. But in the reading I've been doing it doesn't seem possible. Even when I try copying the CSS for the search box, Firefox doesn't seem to like me attaching a different CSS file in the popup then I had in the main page. Please help! Or at least point me to a useful article. Thank you! Hello, I'm new to the world of CSS. Hopefully that won't be TOO obvious to anyone looking at my code... Anyway, it hasn't taken long for me to find frustrations with IE. I'm having issues with elements on two pages of the site I'm working on: the index page (wiayouthmountainland.org ) and the apply page (wiayouthmountainland.org/apply.php ) On the index page there is some white text in the center of the page. It is where it should be in FF but is way over to the right in IE. On the apply page there are some textboxes on the right side of the page. Again, the placement is correct in FF, but they are too low in IE. I don't know if the same thing is causing the problems. I don't really know what it is I'm looking for. If someone wouldn't mind taking a look to see if they can figure out what is messing me up, I'd really appreciate it! Here is a link to the css: wiayouthmountainland.org/WIA.css . Thanks in advance! Jules Hi, If you view the site below with IE, you'll probably notice that the main menu going across the top is somewhat off. By off, I mean it doesn't vertically align in the middle, but it does with Chrome. http://www.vitality-bodymindsoul.com/ Any idea what's causing this? Thanks much. Hey, guys. I've tried everything to get this to work. Basically the main content of our page is in a table centered on the page. We want a nice big skyscraper ad right next to the table that isn't aligned with the right portion of the page (because if it is, when the window is shrunk, the ad goes over top of the page content). How do I offset the ad position from the table? Will it work with different resolutions too? Right now I have the div tag inside the table, looking like this: Code: <div style="float:right; clear:none; margin:0 10px 0 0;"> <img src="structure/images/VendorAds/skyscraperAds/homepage/skyscraper01-Q2.jpg" width="160" height="600" /> </div> But it puts it all the way to the right next to the scroll bar, and it offsets the main content to the left. How do I get the ad to appear right next to the table without offsetting anything, and without moving over top of the content when the page is shrunk? Any help is appreciated. EDIT: I fixed my own problem. Since the main content was a table, I wrapped a table around the main content, put the ad in a <td> element, then one on the left side to recenter it. Can anyone tell me how I can move the navigation bar I'm using below so that it left aligns with the table below it? You can view the bar he http://oharenoise.org/2010_news_releases-2.htm I was told that the main nav element has a left: 75 px attribute attached to it but I can't seem to find it, embedded or on the external CSS. Maybe I'm blind? The CSS external sheet is found he http://oharenoise.org/ONCC_Style_Sheet.css Thanks, Rebecca |