CSS - Safari Div Centering Problem
Currently my site, http://www.kasiaozga.com , works correctly in Firefox on mac and Windows and in ie for mac and Windows. However, in Safari, the mid section of the navigation bar on the main page (index.html) appears incorrectly on the page. I would really appreciate it if any Safari users could take a look at the page and recommend a solution to enable the page to display correctly.
Thanks! -Kasia Similar TutorialsI have a lblock, mblock and rblock div tags inside the content div tag. I am trying to center block tags so there will be 10px free space on each side of content div tag. You can check it at: http://www.refinethetaste.com/html/ PHP Code: #content { width:796px; margin: auto;} #lblock { width:198px; float:left; } #mblock { width:200px; float:left; margin-left:2px;} #rblock { width:375px; float:left; margin-left:1px;} Hi, I have a problem getting this to work in IE 5. It works in IE 6+, FF, etc but not IE 5. Anyone know why? Code: #centerMe { position: relative; margin-left: auto; margin-right: auto; width: 760px; } And if there's any other IE 5 tips I should know... I'm having a problem centering the table so that its centered in the browser. Below is the code. Code: <html> <head> <title>Untitled-3</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <style type="text/css"> <!-- #Table_01 { position:absolute; left:0px; top:0px; width:1196px; height:892px; } #TopAdLeft { position:absolute; left:0px; top:0px; width:140px; height:415px; } #LeftSpace { position:absolute; left:140px; top:0px; width:8px; height:840px; } #LogoSpace { position:absolute; left:148px; top:0px; width:900px; height:177px; } #index-04 { position:absolute; left:1048px; top:0px; width:148px; height:1px; } #RightSpace { position:absolute; left:1048px; top:1px; width:8px; height:839px; } #TopAdRight { position:absolute; left:1056px; top:1px; width:140px; height:415px; } #CenterMiddleSpace { position:absolute; left:148px; top:177px; width:900px; height:5px; } #CalendarSpace { position:absolute; left:148px; top:182px; width:900px; height:658px; } #LeftMiddleSpace { position:absolute; left:0px; top:416px; width:140px; height:9px; } #RightMiddleSpace { position:absolute; left:1056px; top:416px; width:140px; height:9px; } #BottomAdLeft { position:absolute; left:0px; top:425px; width:140px; height:415px; } #BottomAdRight { position:absolute; left:1056px; top:425px; width:140px; height:415px; } #BottomLeftSpace { position:absolute; left:0px; top:840px; width:148px; height:52px; } #EmailSpace { position:absolute; left:148px; top:840px; width:900px; height:52px; } #BottomRightSpace { position:absolute; left:1048px; top:840px; width:148px; height:52px; } --> </style> <!-- End ImageReady Styles --> </head> <body style="background-color:#000000; margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; "> <!-- ImageReady Slices (Untitled-3) --> <div id="Table_01"> <div id="TopAdLeft"> <img src="images/LeftTopAd.jpg" width="140" height="415" alt=""> </div> <div id="LeftSpace"> <img src="images/LeftSpace.jpg" width="8" height="840" alt=""> </div> <div id="LogoSpace"> <img src="images/logo.jpg" width="900" height="175" alt=""> </div> <div id="index-04"> <img src="images/index_04.jpg" width="148" height="1" alt=""> </div> <div id="RightSpace"> <img src="images/RightSpace.jpg" width="8" height="839" alt=""> </div> <div id="TopAdRight"> <img src="images/TopAdRight.jpg" width="140" height="415" alt=""> </div> <div id="CenterMiddleSpace"> <img src="images/CenterMiddleSpace.jpg" width="900" height="5" alt=""> </div> <div id="CalendarSpace"> <iframe name="I1" id="I1" title="Hollywood Drink Specials" src="http://www.calendarwiz.com/" align="center" frameborder="0" height="658" width="900"></iframe> </div> <div id="LeftMiddleSpace"> <img src="images/LeftMiddleSpace.jpg" width="140" height="9" alt=""> </div> <div id="RightMiddleSpace"> <img src="images/RightMiddleSpace.jpg" width="140" height="9" alt=""> </div> <div id="BottomAdLeft"> <img src="images/BottomAdLeft.jpg" width="140" height="415" alt=""> </div> <div id="BottomAdRight"> <img src="images/hob.jpg" width="140" height="415" alt=""> </div> <div id="BottomLeftSpace"> <img src="images/BottomLeftSpace.jpg" width="148" height="52" alt=""> </div> <div id="EmailSpace"> <img src="images/EmailSpace.jpg" width="900" height="52" alt=""> </div> <div id="BottomRightSpace"> <img src="images/BottomRightSpace.jpg" width="148" height="52" alt=""> </div> </div> </body> </html> I have been learning css and have got my page together but i want my page to be centered and i just cant seem to get it to move.It is stuck close to the left and I have tried to mess around with it with no joy.Can anyone help me please.Here is the css I have used:- DIV.wrap_page { PADDING-RIGHT: 9px; PADDING-LEFT: 9px; BACKGROUND: #b4ad9b repeat-x; PADDING-BOTTOM: 8px; WIDTH: 772px; PADDING-TOP: 8px } DIV.wrap_page2 { PADDING-RIGHT: 9px; PADDING-LEFT: 9px; BACKGROUND: #b4ad9b repeat-x; PADDING-BOTTOM: 8px; PADDING-TOP: 8px; POSITION: relative } Any help would be very appreciated many thanks,stevo! The code below is to put a flash banner from left to right above a myspace page. It works with Firefox but aligns to the left in Explorer? Really havent a clue about this so any help would be much appreciated Thanks for any insight. Heres a link to the page. Opened in i.e the problem occurs. http://www.myspace.com/electricpicnicofficial Code: <style> body { background-color:white; } .masthead { display: block; width: 750px; height: 252px; position: absolute; left: 50%; margin-left: 0px; top: 0px; background: url(http://img40.imageshack.us/img40/1126/picnick.jpg) no-repeat; } body table { margin-top: 530px; } body td table, body div table { margin-top: 0; } </style> <div style="position:absolute;top:240px;margin-left:50%;left:-484;"> <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" height="504" width="968"> <param name="allowScriptAccess" value="never" /> <param name="allowNetworking" value="internal" /> <param name="movie" value="http://www.electricpicnic.ie/electricpicnic09.swf" /> <param name="wmode" value="transparent" /> <embed type="application/x-shockwave-flash" allowScriptAccess="never" allowNetworking="internal" src="http://www.electricpicnic.ie/electricpicnic09.swf" height="504" width="968" wmode="transparent" /> </object> </div> Hi guys, I've set the following CSS class: Code: .configureSystem{ padding : 3px; width : 760px; height : 90%; overflow : auto; } In a hope to act much like the CODE tag on this forum - I basically want to have scrollable content without invoking the browsers scrollbars. I've implemented is just with: Code: <span class="configureSystem"> HTML Code Here </span> The problem is, I want to center this content, though I'm not sure how. I tried the old fashioned (and very bad) centered table with the <span> nested inside, however the scrollbar style function doesn't work then. How can I modify that class to ensure it's centered horizontally on the page? Thanks in advance. I got a problem trying to center the image called white.gif I would like it if there is some one on here that could take a look at the code. HTML Code: <html> <head> <title>Backtrack tutorials.</title> <link rel="stylesheet" type="text/css" href="css/main.css" /> <link rel="shortcut icon" type="image/x-icon" href="favicon.ico"> </head> <body> <center> <?php include('includes/header.php'); ?> <img src="images/box_top.gif" /> <p class="white">Test</p> <img src="images/box_bottom.gif" /> <?php include('includes/footer.php'); ?> </center> </body> </html> CSS Code: body { background-color:#000000; } img { border:0px; } .mainbox { background-color:#777777; width: 960px; border-style:none; border-width:0px; } p.white { background-image:url('../images/white.gif'); background-repeat:repeat-y; margin-top:0px; margin-bottom:0px; } http://www.viportals.com/ the ad under the categories is on the left. i tried position:center; and <center> which i know i shouldnt, but how do i center it??? Hi, centering problem I have this small box (table) which shows up when a user didn't decide yet which stylesheet he or she prefers. Everything works fine but I would like the first two lines, which are in bold, to be centered within that red box. I've done so much fun and great stuff with css but this last simple thing doesn't seem to work out. Any help? http://www.jefspalace.be/digital/index.htm stylesheets at: http://www.jefspalace.be/css/print.css http://www.jefspalace.be/css/visualstyel2.css http://www.jefspalace.be/css/visualstyle3.css http://www.jefspalace.be/css/warningtable.css IE problem have a look for yourself, i don't seem to find the problem. It used to be correct, but then, over time, I made some changes, never checking in IE and now I'm stuck. Thanks a lot Kind regards, Jef Howdy! I'm using the Jello mold layout from P.I.E. and I have it working GREAT on a couple other projects with no real issues (with Safari or anything else for that matter), but I do have a problem in this one project. take a look he http://pnlab.soundwebdev.com/changetheme-xSixteen.phtml Now - there are a few other issues, but the one I am focussing on here is that Safari is basically completely non-functional on the main (right) column. I can't click the links, I can't select the text - its like there is a transparent layer over the top of everything on the right - but only in safari. This (oddly enough) works great in IE and even firefox! Obviously, there is only one way for you see the issue and that is to view the page in Safari (I'm using 2.0 - 412.2, btw). So, screenshots or visiting the page from any other browser won't help. Thanks in advance if you can help! Was hoping someone could help me with a problem I'm having with margins on this site robertehowarddirectory.com/viewcat.php?category=Art In safari, the margins between each of the "featured" listings is 30px when it should be 8 (4 on the top of each listing, and 4 on the bottom). This jacks up the layout of the site, pushing the featured listings too low, as you can see. IN IE 7, 8 and Firefox, I have no problems, and the site displays fine. Would appreciate any help on this issue, as I've been trying to solve the problem but have not found a solution. Thank you. Hey everyone, I have a site I'm working on for a charity hosted he apoctrack . com/craftsforacause I'm using Dreamweaver and the included Spry framework to render the tabs, and everything seems to be working fine in Firefox, but the background won't render correctly in Safari. Help!? The stylesheet is he url above with /index.css An older version of the site worked fine in both Safari and Firefox, and I've compared the code but found nothing... The old site is he url above /index_classic.html and /index_classic.css Any help would be appreciated! Thx in advance... Well... sorry about the poorly formatted url but the anti-spam rules seem to mean I must post 5 useless posts in order to post anything of substance (with a url). So yeah. I did a diff on the stylesheets but that's hard to post here, so I can try if it'd be useful. Prolly easier to run it urself it it'd be helpful. Nothing useful came up when I tried it. Same for the html pages themselves. I have a table which has three rows of one cell each. I have specified the height of each cell by a class referring to an external stylesheet. There are two other classes which may be relevant, one in an internal stylesheet, and one referring to the same external stylesheet. In Firefox and Internet Explorer 5.2 (the latest available for the Mac, as far as I know), these cells are displayed correctly, but in Safari, they cut off at the bottom of the text in the box, and are therefore not the correct height. Can anyone help me correct this, please? This is the code: Code: <STYLE TYPE="text/css" MEDIA=screen> <!-- .rbc { color: white; background-color: maroon; } --> </STYLE> <tr class="rb2"> <td class="rbc"> <div class="squash">some text<br /></div> <div class="squash">some more text<br /></div> <div class="squash">yet more text<br /></div> <div class="squash">guess what? some more text!<br /></div> </td> </tr> This is the CSS: Code: .rb2 { height: 133px; vertical-align: top; } .squash { line-height: 85%; } There are other differences, all with Internet Explorer not behaving properly, but I'll do one question at a time, or it'll get confusing! Thanks in advance. Hi - I'm relatively new to using CSS, so please bear with me. I've attempted to put an imagemap on my homepage using CSS. There is a main background image and there are a bunch of tiny images that are hidden, but then appear over the top of the main image when you move the mouse over them. You can view the page online - it's the main homepage of my website: www (dot) midwood (dot) net (It's the page w/ the mountain background, etc). This HTML and CSS are both valid according to W3.org. The code works fine (as expected) on both IE6 and Firefox. If you want to see the effect I'm looking for, use one of those browsers and you'll get the idea. The problem I'm running into is that it doesn't work in Safari. The tiny images do show up in the right place when you roll over the correct spot, but they are not initially hidden (as they are in IE or FF). I'd appreciate it if somebody with more CSS knowledge than me took a look at my code for the homepage . Is there anything obvious I'm doing wrong that is causing it not to work in Safari? Or is it just a Safari rendering bug? If it is a bug in Safari's rendering, is there a workaround so that I can get the desired effect on all three browsers? Thanks. Hi everyone, I am new to the forum. I am new to CSS and just trying to learn as much as i can as i go. I am currently working on a website and having a small problem with my drop down menus. It works great in Firefox, but in Safari when i hover over the drop down, it shifts to the left by a few pixels. I haven't added the IE workaround yet because i wanted to get this sorted before doing that so it won't work in IE yet. I would post a link but can't because i'm too new. I'm new to this, so be kind on my coding The code: Code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Center test - "text-align: center" set for body, "text-align: left" for containing div</title> <style type="text/css" media="screen"> body { margin: 0; padding: 0; text-align: center; } div#container { width: 100%; background-color: #EAFBFF; width:760px; height:220px; text-align: left; margin-top: 0px; margin-right: auto; margin-bottom: 0px; margin-left: auto; border-top-width: thin; border-right-width: thin; border-bottom-width: thin; border-left-width: thin; border-top-style: none; border-right-style: solid; border-bottom-style: none; border-left-style: solid; border-top-color: #0066FF; border-right-color: #0066FF; border-bottom-color: #0066FF; border-left-color: #0066FF; } div#container2 { width: 760px; background-color: #ddd; width:760px; text-align: left; margin-top: 0px; margin-right: auto; margin-bottom: 0px; margin-left: auto; border-top-width: thin; border-right-width: thin; border-bottom-width: thin; border-left-width: thin; border-top-style: none; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: #0033FF; border-right-color: #0033FF; border-bottom-color: #0033FF; border-left-color: #0033FF; padding-top: 15px; padding-bottom: 15px; } div#container3 { width: 760px; background-color: #666666; width:760px; text-align: left; margin-top: 0px; margin-right: auto; margin-bottom: 0px; margin-left: auto; border-top-width: thin; border-right-width: thin; border-bottom-width: thin; border-left-width: thin; border-top-style: none; border-right-style: solid; border-bottom-style: none; border-left-style: solid; border-top-color: #0033FF; border-right-color: #0033FF; border-bottom-color: #0033FF; border-left-color: #0033FF; padding-top: 13px; padding-bottom: 10px; } #container { } #Layer1 { position:absolute; width:760px; height:115px; z-index:1; left: 405px; top: 102px; background-color: #0000FF; overflow: scroll; } #container2 { } #Layer2 { position:relative; width:760px; height:600px; z-index:1; left: 405px; top: 102px; background-color: #0000FF; overflow: scroll; } #container4 { font-family: Arial, Helvetica, sans-serif; width: 500px; font-size: 14px; font-style: normal; color: #DDDDDD; text-decoration: none; text-align: left; margin-right: 110px; margin-left: 125px; background-color: #999999; border: thin solid #999999; padding-left: 15px; } #Layer3 { position:relative; width:200px; height:600px; z-index:1; left: 405px; top: 102px; background-color: #0000FF; overflow: scroll; } .style1 { font-family: Arial, Helvetica, sans-serif; font-size: 10px; } .style2 { font-family: Arial, Helvetica, sans-serif; color: #FFFFFF; } #navbar { font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: #FFFFFF; text-decoration: none; background-color: #666666; margin: 0px; padding: 0px; height: 20px; } #navbar ul { padding: 0; margin: 0; list-style: none; } #navbar li { float: left; text-align: center; background-color: #666666; position: relative; width: 130px; } #navbar li ul{ position: absolute; display: none; text-align: center; line-height: 25px; padding-top: 7px; } #navbar li > ul { top: auto; left: auto; } #navbar li:hover ul { display:block; text-align: center; text-indent: 0; } #content { clear: left; } #mainphoto { padding: 0px; float: right; border: 1px solid #0066FF; margin-top: 20px; margin-right: 30px; margin-bottom: 30px; margin-left: 30px; } #container6 { font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: #000000; text-decoration: none; padding-right: 30px; padding-left: 30px; } .style3 { font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold; color: #000000; } .style4 {color: #000000} .style5 {font-family: Arial, Helvetica, sans-serif; font-size: 10px; color: #FFFFFF; } a { font-size: 12px; color: #FFFFFF; } a:link { text-decoration: none; } a:visited { text-decoration: none; color: #FFFFFF; } a:hover { text-decoration: none; color: #CC6600; } a:active { text-decoration: none; color: #CCCCCC; } </style> </head> <body> <div id="container"> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="(URL address blocked: See forum rules)=7,0,19,0" width="760" height="220"> <param name="movie" value="(URL address blocked: See forum rules)"> <param name="quality" value="high"> <embed src="(URL address blocked: See forum rules)" quality="high" pluginspage="(URL address blocked: See forum rules)" type="application/x-shockwave-flash" width="760" height="220"></embed> </object> </div> <div class="style2" id="container3"> <div id="navbar"> <ul> <li><a href="(URL address blocked: See forum rules)">Home</a></li> <li>About the Office <ul> <li><a href="">Meet Dr. Toolson </a></li> <li><a href="">Meet the Team</a></li> <li><a href="">Office Tour</a></li> <li><a href="">Location</a></li> </ul> </li> <li>About Orthodontics <ul> <li><a href="">Adults</a></li> <li><a href="">Children</a></li> </ul> </li> <li>Life with Braces</li> <li>Contact Us <ul> <li><a href="">Contact Information</a></li> <li><a href="">Request Appointment</a></li> <li><a href="">Location</a></li> </ul> </li> </ul> </div> </div> <div id="container2"> <div id="container4"> <p class="style3">Contact Information Form</p> <form action="(URL address blocked: See forum rules)" method="post" class="style4"> <span class="style1"> <label>Name <br> <input type="text" name="Name"> </label> </span> <span class="style1"> <br> <br> <label>Email <br> <input type="text" name="Email Address"> </label> </span> <span class="style1"> <br> <br> <label>Phone Number <br> <input type="text" name="Phone Number"> </label> </span> <span class="style5"> <br> <br> <label><span class="style4">Description (if neccessary)</span> </label> </span> <span class="style4"> </span> <label><br> <textarea name="Description" rows="5"></textarea> </label> <label> <br><br> <input name="Submit" type="submit" class="style1" value="Submit"> </label> <label> <input name="Reset" type="reset" class="style1" id="Reset" value="Reset"> </label> <input name="recipient" type="hidden" id="recipient" value="jeff@dinorestoration.com"> <input name="redirect" type="hidden" id="redirect" value="(URL address blocked: See forum rules)"> </form> </div> </div> <div class="style1"> Copyright Toolson Orthodontics 2009 </div> <p> </p> </body> </html> Hi friends, I'm trying to center this page with CSS, but no idea where my code is wrong? in screen resolution 800 it looks fine but in 1024 and above it remains on left side of the page. Here is a page url http://gooo.ueuo.com/ and CSS code is given below. Code: <style type="text/css"> #container{ margin-left: auto; margin-right: auto; } #logo { position:absolute; left:-1px; top:-2px; width:200px; height:60px; background-color: #003399; } #description { position:absolute; left:19px; top:140px; width:760px; height:530px; z-index:1; } #Layer5 { position:absolute; left:243px; top:151px; width:395px; height:45px; z-index:4; } .style2 { font-family: Geneva, Arial, Helvetica, sans-serif; font-weight: bold; color: #990066; font-size: 18px; } #paragraph { position:absolute; left:243px; top:206px; width:397px; height:200px; } .style3 {font-family:Verdana, sans-serif; font-size: 11px; color:#000000; line-height: 18px; padding: 6px; } #system { position:absolute; left:29px; top:379px; width:200px; height:80px; z-index:5; } .style4 { font-family: Verdana, sans-serif; font-size: 12px; } .style5 {font-size: 10px;} .style6 {font-size: 10px;} #footer {position:absolute; left:0px; top:680px; width:799px; height:175px; background-color:#0D75D2; } .style7 { font-family: Verdana, sans-serif; font-size: 10px; list-style-type: none; } .style9 { font-family: Verdana, sans-serif; font-size: 11px; } .style10 { font-weight: bold; font-size: 14px; font-family: Verdana, sans-serif; color: #990066; } </style> I am trying to center the blocks into the middle of the page but all the traditional methods seem to be failing. I've tried centering the body, making a wrapper and aligning and many other methods but the page still clings to the left of the page. If anyone could give help it would be appreciated. It probably requires the most simple of solutions but, as a relatively new user of CSS, even these seem to be hard to discover... CSS Code Code: /* Usual Selectors */ div.wrapper { margin-left: auto; margin-right: auto; height: 100%; text-align: center; } body { font-family: Georgia, "Times New Roman", Times, serif; font-size: 14px; color: #FFFFFF; background-color: #000000; text-align: center; } p { width: 100%; text-align: left; } h1 { font-family: Georgia, "Times New Roman", Times, serif; font-size: 18px; font-weight: bold; color: #FFFFFF; } h2 { font-family: Georgia, "Times New Roman", Times, serif; font-size: 16px; font-weight: bold; color: #FFFFFF; border-bottom: 1px solid #E0E0E0; } /************************* Identification *************************/ #header { position: absolute; width: 950px; height: 46px; margin: 0; margin-top: 50px; padding: 0 0 50px 0px; /*top right bottom left*/ text-align: left; } #footer { width: 950px; text-align: center; } #t_navigation { position: absolute; z-index: 10; width: 50%; height: 50px; margin: 0; margin-top: 68px; padding: 0 0 50px 250px; /*top right bottom left*/ font-weight: normal; text-align: left; } #search_frame { position: absolute; z-index: 10; margin: 0; margin-top: 35px; padding: 0 0 0 250px; /*top right bottom left*/ width: 740px; text-align: left; } #search_box { background-color: #FFFFFF; height: 28px; text-align: left; } #search_box #s { float: left; padding: 0; margin: 6px 0 0 6px; border: 0; background-color: #FFFFFF; font-color: #000000; width: 70%; text-align: left; } #search_box #go { float: right; margin: 3px 4px 0 0; font-color: #000000; text-align: left; } #l_navigation { position: absolute; z-index: 10; width: 210px; height: 600px; margin: 0; margin-top: 100px; padding: 0 0 50px 0px; /*top right bottom left*/ border-right: 1px solid #E0E0E0; font-weight: normal; text-align: left; } #centerDoc { position: absolute; z-index: 15; padding: 0 0 50px 250px; /*top right bottom left*/ margin-top: 100px; margin-right: 10%; text-align: left; width: 740px; } Thanks. Hi, I am wanting a site that is vertically and horizontally centered. I have achieved to vertically center in both FF and IE but now I am having horizontal centering problems which is usually the easy part. I have tried many different methods and I am not able to center it in FF but I am able to center in IE. If someone could help me that would be great. Here my page: jacenta.com/TESTING/ Here is the code: Code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <head> <title>Welcome Canada - Immigration Services Inc.</title> <style type="text/css"> body, html { height:100%; } body { background-color:#dddddd; } #outer { display:table; height:100%; #position:relative; overflow:visible; } #inner { #position:absolute; _top:50%; display:table-cell; vertical-align: middle; text-align:center; } #inner2 { #position:relative; #top:-50%; } #container { width:100%; } #box { background-color:#FFFFFF; width:700px; height:500px; text-align:left; } </style> </head> <body> <div id="outer"> <div id="inner"> <div id="inner2"> <div id="container"> <div id="box"> Text </div> </div> </div> </div> </div> </body> </html> I'm working on my first website. Its a simple portfolio site. I have it mostly completed, but i would like to center all the content in the browser. I found several soulutions to this and I can not seem to get any of them to work. I think it might be stemming from my use of absolute posistioning, but idk, just a newbie here. here is the html; Code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>Rot</title> <link rel="stylesheet" type="text/css" href="style.css"> <style type="text/css"> </style> <link rel="shortcut icon" href="favicon.ico" type="image/x-icon" > </head> <body> <div id="wrapper"> <div id="logo"><a href="index.html"><img border="no" src="text/logo.png" alt="logo"></a></div> <div id="rot"><a href="index.html"><img border="no" src="text/rot.png" alt="rot"></a></div> <a href="info.html" class="info" title="info"><span class="displace">info</span></a> <div id="work"><a href="index.html"><img border="no" src="text/worksolid.png" alt="work"></a></div> <a href="projects/dreaming_again.html" class="thumb1" title="thumb1"><span class="displace">project1</span></a> <a href="projects/futility.html" class="thumb2" title="thumb2"><span class="displace">project2</span></a> <a href="projects/grid_dreams.html" class="thumb3" title="thumb3"><span class="displace">project3</span></a> <a href="projects/transgress.html" class="thumb4" title="thumb4"><span class="displace">project4</span></a> <a href="projects/curls.html" class="thumb5" title="thumb5"><span class="displace">project5</span></a> <a href="projects/city_sleeps.html" class="thumb6" title="thumb6"><span class="displace">project6</span></a> <a href="projects/inner_turmoil.html" class="thumb7" title="thumb7"><span class="displace">project7</span></a> <a href="projects/transitions.html" class="thumb8" title="thumb8"><span class="displace">project8</span></a> <a href="projects/detritus.html" class="thumb9" title="thumb9"><span class="displace">project9</span></a> <a href="projects/emerald_city.html" class="thumb10" title="thumb10"><span class="displace">project10</span></a> </div> </body> </html> and here is the CSS Code: #wrapper { text-align: left; width:990px; margin:0px auto; /* Right and left margin widths set to "auto" */ text-align:left; /* Counteract to IE5/Win Hack */ padding:0px; border:1px dashed #333; background-color:#eee; } a { outline: none; } #logo{ position:absolute; top:15px; left:645px; } #rot{ position:absolute; top:30px; left:733px; } #work{ position:absolute; top:375px; left:15px; } #info{ position:absolute; top:285px; left:15px; } a.info { position: absolute; top:285px; left:15px; display: block; width: 75px; height: 75px; text-decoration: none; background: url("text/info.png"); } a.info:hover { background-position: 0 -75px; } .displace { position: absolute; left: -5000px; } a.work { position: absolute; top:375px; left:15px; display: block; width: 75px; height: 75px; text-decoration: none; background: url("text/work.png"); } a.work:hover { background-position: 0 -75px; } .displace { position: absolute; left: -5000px; } /* * thumb1+++++++++++++++++++++++++++++++++++ */ a.thumb1 { position: absolute; top:105px; left:105px; display: block; width: 615px; height: 75px; text-decoration: none; background: url("images/thumbs/dreaming_again.jpg"); } a.thumb1:hover { background-position: 0 -75px; } .displace { position: absolute; left: -5000px; } /* * thumb2+++++++++++++++++++++++++++++++++++ */ a.thumb2{ position: absolute; top:195px; left:105px; display: block; width: 615px; height: 75px; text-decoration: none; background: url("images/thumbs/futility.jpg"); } a.thumb2:hover { background-position: 0 -75px; } .displace { position: absolute; left: -5000px; } /* * thumb3+++++++++++++++++++++++++++++++++++ */ a.thumb3{ position: absolute; top:285px; left:105px; display: block; width: 615px; height: 75px; text-decoration: none; background: url("images/thumbs/grid_dreams.jpg"); } a.thumb3:hover { background-position: 0 -75px; } .displace { position: absolute; left: -5000px; } /* * thumb4+++++++++++++++++++++++++++++++++++ */ a.thumb4{ position: absolute; top:375px; left:105px; display: block; width: 615px; height: 75px; text-decoration: none; background: url("images/thumbs/transgress.jpg"); } a.thumb4:hover { background-position: 0 -75px; } .displace { position: absolute; left: -5000px; } /* * thumb5+++++++++++++++++++++++++++++++++++ */ a.thumb5{ position: absolute; top:465px; left:105px; display: block; width: 615px; height: 75px; text-decoration: none; background: url("images/thumbs/curls.jpg"); } a.thumb5:hover { background-position: 0 -75px; } .displace { position: absolute; left: -5000px; } /* * thumb6+++++++++++++++++++++++++++++++++++ */ a.thumb6{ position: absolute; top:555px; left:105px; display: block; width: 615px; height: 75px; text-decoration: none; background: url("images/thumbs/city_sleeps.jpg"); } a.thumb6:hover { background-position: 0 -75px; } .displace { position: absolute; left: -5000px; } /* * thumb7+++++++++++++++++++++++++++++++++++ */ a.thumb7{ position: absolute; top:645px; left:105px; display: block; width: 615px; height: 75px; text-decoration: none; background: url("images/thumbs/inner_turmoil.jpg"); } a.thumb7:hover { background-position: 0 -75px; } .displace { position: absolute; left: -5000px; } /* * thumb8+++++++++++++++++++++++++++++++++++ */ a.thumb8{ position: absolute; top:735px; left:105px; display: block; width: 615px; height: 75px; text-decoration: none; background: url("images/thumbs/transitions.jpg"); } a.thumb8:hover { background-position: 0 -75px; } .displace { position: absolute; left: -5000px; } /* * thumb9+++++++++++++++++++++++++++++++++++ */ a.thumb9{ position: absolute; top:825px; left:105px; display: block; width: 615px; height: 75px; text-decoration: none; background: url("images/thumbs/detritus.jpg"); } a.thumb9:hover { background-position: 0 -75px; } .displace { position: absolute; left: -5000px; } /* * thumb10+++++++++++++++++++++++++++++++++++ */ a.thumb10{ position: absolute; top:915px; left:105px; display: block; width: 615px; height: 75px; text-decoration: none; background: url("images/thumbs/emerald_city.jpg"); } a.thumb10:hover { background-position: 0 -75px; } .displace { position: absolute; left: -5000px; } howdy, i've been workin on a site using some good CSS for the first time. i usually get fed up but it seems to be working pretty well this time. i have one little problem http://www.bnymusic.com/lairsite/ when i check it in firefox, safari and IE on mac there's a little offset between the text area and the main image.... any clue on what is happening and how to fix it? also noticed that in IE on pc the hover over Home doesn't extend into the padded area....but it works sometimes...crazy hopefully this ls small and i will continue to convert to CSS...sadly my photo area stumped me on the CSS and i used a table....oh well. prethanks, B |