CSS - Why Does My Page Not Render Properly W/ Safari /opera?
Hi folks
Hoping a CSS expert out there might be able to assist. I am relatively new to css and have produced a site with fluid css to render on windows and mac at 800x600 and 1024x768. The site looks fine in IE (5.5, 6 & 7), Firefox & Navigator. In Opera, it is fine at 800x600, but does not render properly at 1024x768 Also, I have tested the site with browsershots and it doesn't appear to render properly on mac / safari. I am guessing it is something to do with #text ? Do I need to clear: or something like that? If you can help, I would be grateful. Thanks in advance Sol www. waihekemagicmassage.com And: /magic.css Similar Tutorialshey i was just wondering how i can fix the left menu to display properly in Opera. it works in Moziila and i have a seperate style sheet for IE but Opera is no go. are there any hacks that will fix the positoning? the site is located at: http://studentwork.qantm.com.au/pking/Website/ and css is at: http://studentwork.qantm.com.au/pking/Website/ptwm.css any help would be great cheers I have this problem on and off in different web sites I have designed. Somehow I get around it, however, I really do not understand why I have the problem, and how I solve it. here is the link: http://mizuedesign.com/0000.html in IE7, my #mainContainer extends as I put in some other divs etc. (there is a border around it.) However in FF, Safari, and Opera the same DIV does not extend. I am trying to achive the results I see in IE7. Any help would be greatly appriciated. S. Boztepe Hi there, I have just made a website using css to pop-out my menus, and they dont seem to work in safari, yet work fine in ie and firefox. The website is overload.net.nz, and the two pop-out tabs are the 'newsletter' tab, and the 'tips' tab. I have used css layers, and is wondering is that is the problem? And I dont have safari to test any changes in, does anyone know of a successful safari pc version yet? Hi, While testing our webpage, we found that in all browsers the CSS menu works fine except in Safari, on browsing the child nodes of the menu. The menu just closes on the second or third select. I would greatly appreciate any help to fix this bug. The CSS code is below. Regards, Sharon. Code : <style type="text/css" media="screen"> /**************** menu coding *****************/ #menu { width: 100%; background: #eee; float: left; } #menu ul { list-style: none; margin: 0; padding: 0; width: 12em; float: left; } #menu a, #menu h2 { font: bold 11px/16px arial, helvetica, sans-serif; display: block; border-width: 1px; border-style: solid; border-color: #ccc #888 #555 #bbb; margin: 0; padding: 2px 3px; } #menu h2 { color: #fff; background: #000; text-transform: uppercase; } #menu a { color: #000; background: #efefef; text-decoration: none; } #menu a:hover { color: #a00; background: #fff; } #menu li {position: relative;} #menu ul ul { position: absolute; z-index: 500; } #menu ul ul ul { position: absolute; top: 0; left: 100%; } div#menu ul ul, div#menu ul li:hover ul ul, div#menu ul ul li:hover ul ul {display: none;} div#menu ul li:hover ul, div#menu ul ul li:hover ul, div#menu ul ul ul li:hover ul {display: block;} </style> <!--[if IE]> <style type="text/css" media="screen"> #menu ul li {float: left; width: 100%;} </style> <![endif]--> <!--[if lt IE 7]> <style type="text/css" media="screen"> body { behavior: url(csshover.htc); font-size: 100%; } #menu ul li a {height: 1%;} #menu a, #menu h2 { font: bold 0.7em/1.4em arial, helvetica, sans-serif; } </style> <![endif]--> I have a website (www.fullforcecreative.com) that displays properly on I.E. and Firefox. I just recently pulled it up in Google Chrome, and it appears no style sheets are being imported. I then thought "that is strange, but Safari is based on the same thing (kinda), so I'll load it in Safari." Same issue. No style sheets. Has anyone seen anything like this before? I link to one style sheet in the header. Code: <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css; charset=utf-8" media="screen" /> This style sheet linked to from that line: Code: @charset "UTF-8"; @import url(yaml/core/base.css); @import url(css/navigation/nav_shinybuttons.css); @import url(css/screen/basemod.css); @import url(css/screen/content.css); @import url(yaml/print/print_003.css); All the other stylesheets open with the Code: @charset "UTF-8"; @media all { insert css here } The site is using YAML (http://www.yaml.de/en/) as a framework for the CSS. The only issue I could find relativly close to it was this: http://www.davidroessli.com/logs/2007/03/safari_utf8_rendering_glitch_f/ I made the change listed there (because the CSS stylesheets are in UTF-8), but it made no difference. Does anyone have any ideas? This is driving me up the wall. It does display properly in I.E. and firefox. Thanks, seth You can check this problem in the pink square with curvy corners that I have in the url metatradersoftware com(I cannot mention it because of forum fules). How I am supposed to show you my code if you do not know the url where it is?This post is just for asking a question. Thus, I hope there is nothing wrong with it. If you check the site with firefox, opera or safari everything will be alright, though. Do you have any idea why internet explorer 6 above all and 7 make this mess? For the time being, I still do not have any concrete idea about the reasons of this different behavior in these browsers from Microsoft. I would appreciate any suggestion. Thanks in advance I've made a site for someone and it was center aligning and it worked in all 3 main browsers (IE, FF and Opera) so when I was tinkering with ideas for redoing the look of my site, I used the CSS sheet I used for his site as a base for mine. Unfortunately it's only center align in IE7 with my site. My site is admittedly a bit more complex, at the moment, with more divs, it should still work. Mind you I'm probably just too tired to spot the obvious. Can anyone see what's stopping it from center aligning in FF and Opera? The template: http://www.toadwarrior.com/temp/index.php The CSS: http://www.toadwarrior.com/temp/mark_h_walker_journalist.css Thank you in advance. OK, So I have put together what I thought was a reasonably basic xhtml page outline. I'm using a Win2k box. I checked it in Opera 7 and IE6 and it looks fine (more or less). I've also validated the xhtml and css codes. However, when I look at the page in Netscape 7.1 or Firefox, the menu kind of hangs a bit in limbo. Otherwise the rest of the page render's fine. I've included my code below. Does anyone have any suggestions since it's likely that if it doesn't work in Netscape/Firefox, it won't work in many other browsers either. Thanks! Shawn PS I'm not saying there is anything wrong with Firefox/Netscape, but likely my code URL: http://www.raisetheratesottawa.org/xhtml/ ===== CSS ===== HTML { PADDING-RIGHT: 0px; MARGIN-TOP: 0px; PADDING-LEFT: 0px; BACKGROUND-COLOR: #FF99CC; MARGIN-BOTTOM: 20px; PADDING-BOTTOM: 0px; COLOR: #000000; PADDING-TOP: 0px } BODY { PADDING-RIGHT: 0px; MARGIN-TOP: 0px; PADDING-LEFT: 0px; BACKGROUND-COLOR: #FF99CC; MARGIN-BOTTOM: 20px; PADDING-BOTTOM: 0px; COLOR: #000000; PADDING-TOP: 0px } #upper { width:700px; margin:0px auto; text-align:left; padding: 0px; border: 5px solid #FFFFFF; BACKGROUND-COLOR: #000000; PADDING-RIGHT: 0px; MARGIN-TOP: 0px; PADDING-LEFT: 0px; MARGIN-BOTTOM: 10px; PADDING-BOTTOM: 0px; PADDING-TOP: 0px } /* Horizontal nav */ #menu { width:700px; margin:0px auto; padding: 0; } #menu ul { border: 0; margin: 0; padding: 0; list-style-type: none; text-align: center; clear: left; } #menu ul li { display: block; float: left; text-align: center; padding: 0; margin: 0; } #menu ul li a { background: #000000; width: 175px; /* was 'height: 2em; */ height: 24px; padding: 0; /* was 'margin: 0 0 10px 0; ' this affects the margin between upper menus*/ margin: 0 0 0 0; color: #FF0000; text-decoration: none; display: block; text-align: center; font-weight: bold; letter-spacing: 1px; /* was 'line-height: 2em; */ line-height: 24px; /* was 'font-size: x-small; ' */ font-size: 10px; font-size: 10px; /* was 'FONT: 8px Verdana, Arial, Helvetica, Sans-Serif;*/ } #menu ul li#one { width: 46px; } #menu ul li#two a { width: 154px; } #menu ul li#three a { width: 105px; } #menu ul li#four a { width: 85px; } #menu ul li#five a { width: 56px; } #menu ul li#six a { width: 57px; } #menu ul li#seven { width: 147px; } #menu ul li a:hover { color: #000000; background: #FF0000; } #menu a:active { background: #c60; color: #fff; } #content { width:700px; margin:0px auto; text-align:left; padding:0px; border:5px solid #FFFFFF; background: url(/xhtml/graph/rtr-logo-bk.gif) #FF99CC; } ====== XHTML ====== <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Test</title> <link rel="stylesheet" href="graph/rtrcss2.css" type="text/css" /> <meta http-equiv="Content-type" content="text/html; charset=iso-8859-1" /> <meta http-equiv="Content-Language" content="en-us" /> <meta name="ROBOTS" content="No Index" /> <meta name="Copyright" content="Copyright (c) 2004" /> <meta http-equiv="imagetoolbar" content="no" /> <meta name="MSSmartTagsPreventParsing" content="true" /> <meta name="description" content="" /> <meta name="keywords" content="" /> <link rel="help" href="about.php" title="Site info." /> <meta name="Rating" content="General" /> <meta name="revisit-after" content="2 Days" /> <meta name="doc-class" content="Living Document" /> </head> <body> <div id="upper"> <div id="header"> <img src="graph/top-right2.jpg" width="700" height="78" alt="" /> </div> <div id="menu"><ul> <li id="one"> </li> <li id="two"><a href="link1.php" title="Link 1.">Link 1</a></li> <li id="three"><a href="link2.php" title="Link 2.">Link 2</a></li> <li id="four"><a href="link3.php" title="Link 3.">Link 3</a></li> <li id="five"><a href="link4.php" title="Link 4.">Link 4</a></li> <li id="six"><a href="link5.php" title="Link 5.">Link 5</a></li> <li id="seven"> </li> </ul></div> </div> <div id="content"> <p>Here is some text</p> <p>Here is some more text </p> </div> </body> </html> I've been working on a css zen garden and I've only got one more roadblock untill it is complete... The site works perfectly in IE 6 but all the other browsers don't like it so much. I suspect the problem lies in the positioning of the preamble and the supporting text, but I've tried nearly everything...I can make the site work in other browsers but then resizing the text causes the page to break. Plz help me make the site look and behave the way it does in IE accross all browsers. Here is the page- http://phobos.ramapo.edu/~chdonnel/zenie/ here is the css- http://phobos.ramapo.edu/~chdonnel/zenie/sample.css also the site closely follows the layout methods of this page http://csszengarden.com/?cssfile=/179/179.css&page=1 Thanks, Chris I am just muddling through tweaking my weblog at the mo - learning as I go. But I have come accross something that I just can't pinpoint the solution for. I was hoping someone here could look at it with a fresh [and more knowledgeable] perspective. I have been googling, reading, researching, experimenting and generally pulling my hair out for about 12 hours now and am still no closer. The problem is that I have a div (with the id of "left bar") which I would like to sit on the left hand side of my page. It displays perfectly in firefox but in IE the whole section sits to the extreme right. Here is the link to the SITE Here is a link to some SCREENSHOTS The code:CSS Code: /*left bar */ #left_bar { float: left; position: absolute; padding-left: 2px; margin: 160px 12em 0px 0px; width: 200px; display: inline; } #left_bar ul { color: #336666; font-weight: bold; text-transform: lowercase; list-style-type: none; margin: 0; padding-left: 1px; } #left_bar ul li { font: italic normal 100% 'Times New Roman', Times, serif; text-align: right; letter-spacing: 0.1em; margin-top: 10%; margin-right: 10%; float: none; padding-bottom: 2px; } #left_bar ul ul { font-variant: normal; font-weight: normal; line-height: 100%; text-align: left; list-style-type: none; margin: 0; padding: 0; } #left_bar ul ul li { font: normal normal 70%/115% 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; letter-spacing: 1px; border: 0; margin-top: 0; padding: 0; padding-left: 8px; } #left_bar ul ul li a { color: #996699; text-decoration: none; } #left_bar ul ul li a:hover { border-bottom: 1px solid #660066; } The code: html Code: <div id="left_bar"> <ul> <li id="calendar"> <?php require( dirname(__FILE__).'/_calendar.php' ); ?> </li> </ul> <ul> <li> <?php require( dirname(__FILE__).'/pophis.php' ); ?> </li> </ul> <br /> <ul> <li> <ul> <li> <?php require( dirname(__FILE__).'/misc.php' ); ?> </li> </ul> </li> </ul> </div> Any thoughts, help, suggestions..... anything...... would be v much appreciated! Thanks for taking the time to read my question. I have 2 types of pages. One with 2 colums and one with 3. If I have only one row, it all works out fine. When I add subsequent rows, the page gets all messed up. Why? How do I make "contentleft" always be on the lefthand side? CSS Code: body { text-align:center; margin-top: 0px; background-color: #d8d8d8; } a:visited { color:#c0c0c0; } a:hover { color:red; } a { color:white; } #frame { width: 640px; text-align: center; } #main { background-color: #6699cc; width: 640px; } #main p.pagetitle { color: white; font-size: 32; } #main p.title { color: white; font-size: 22; text-align: left; text-decoration: underline; font-weight: bold } #sub { background-color: #6699cc; width: 640px; padding-left: 20px; padding-right: 20px; } #sub p.titleleft { float: left; color: #000073; font-size: 15; width: 160px; padding: 5px; text-decoration: underline; } #sub p.titlecenter { float: left; color: #000073; font-size: 15; width: 160px; padding: 5px; text-decoration: underline; } #sub p.titleright { float: left; color: #000073; font-size: 15; width: 280px; padding: 5px; text-decoration: underline; } #sub p.contentleft { float: left; color: #000073; font-size: 15; width: 160px; padding: 5px; } #sub p.contentcenter { float: left; color: #000073; font-size: 15; width: 160px; padding: 5px; } #sub p.contentright { float: left; color: #000073; font-size: 15; width: 280px; padding: 5px; } #sub p.titlerightright { float: left; color: #000073; font-size: 15; width: 299px; padding: 5px; text-decoration: underline; } #sub p.titleleftleft { float: left; color: #000073; font-size: 15; width: 299px; padding: 5px; text-decoration: underline; } #sub p.contentrightright { float: left; color: #000073; font-size: 15; width: 299px; padding: 5px; } #sub p.contentleftleft { float: left; color: #000073; font-size: 15; width: 299px; padding: 5px; } html: 3 colum example. Code: <html> <!-- Generated by AceHTML Freeware http://freeware.acehtml.com --> <!-- Creation date: 10/15/04 --> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title></title> <meta name="description" content=""> <meta name="keywords" content=""> <meta name="author" content="bradsonorus@hotmail.com"> <meta name="generator" content="AceHTML 5 Freeware"> <link rel="StyleSheet" type="text/css" href="test.css"> </head> <body> <div id="frame"> <div id="main"> <img src="C:/Lisa/images/topbar.png" width="640" height="30" alt=""> <img src="C:/Lisa/images/highburyschool.jpg" width="166" height="104" alt="Highbury School, Winnipeg, Manitoba, Canada"> <span> </span> <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="500" height="100" id="LisasNavBar" align="middle"> <param name="allowScriptAccess" value="sameDomain" /> <param name="movie" value="C:/Lisa/LisasNavBar.swf" /> <param name="quality" value="high" /> <param name="bgcolor" value="#6699cc" /> <embed src="C:/Lisa/LisasNavBar.swf" quality="high" bgcolor="#6699cc" width="500" height="100" name="LisasNavBar" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> </object> <p class="pagetitle">TESTS</p> <p class="title">Tests:</p> </div> <div id="sub"> <p class="titleleft">Test Topic / Subject</p> <p class="titlecenter">Test Date</p> <p class="titleright">Suggestions</p> <p class="contentleft">Math: Long Division Test</p> <p class="contentcenter">Tuesday, October 15, 2004</p> <p class="contentright">Review pages 31 to 40 in Math text.</p> <p class="contentleft">English: Spelling Test</p> <p class="contentcenter">Tuesday, October 22, 2004</p> <p class="contentright">Practice all the 17 syllable words, they will be on the test.</p> <p class="contentleft">Phys. Ed.</p> <p class="contentcenter">Tuesday, November 5, 2004</p> <p class="contentright">Full Marathon. Those that don't make it under the 5 hour limit will fail.</p> <p><hr width="80%"></p> <p><a href="C:/Lisa/home.htm">Home</a> | <a href="C:/Lisa/homework.htm">Homework</a> | <a href="C:/Lisa/projects.htm">Projects</a> | <a href="C:/Lisa/specialevents.htm">Special Events</a> | <a href="C:/Lisa/tests.htm">Tests</a> | <a href="C:/Lisa/links.htm">Links</a></p> </div> <img src="C:/Lisa/images/bottombar.png" width="640" height="30" alt=""> </div> </body> </html> The middle content column on our page, (code shown below) is not displaying in IE5 and IE6. Any ideas as to why? see page at federalacqusitionservice Code: start code --> </style> </head> <body> <!-- Generated at () --> <div id="container" > <div id="banner" > <div align="left"><img src="(URL address blocked: See forum rules)" width="400" height="63" /><img src="(URL address blocked: See forum rules)" width="60" height="63" /> <script type="text/javascript"><!-- google_ad_client = "pub-3947167825178840"; /* 468x60, created 7/17/08 */ google_ad_slot = "7082054352"; google_ad_width = 468; google_ad_height = 60; //--> </script> <script type="text/javascript" src="()"> </script></div> <h1><a href="()">Home</a> | advertise | about us | Contact US</h1> </div> <div id="outer" > <div id="inner"> <div id="left" > <h2><img src="()" /> </h2> <div align="left"> <script type="text/javascript" src="()"></script> <br /> <table width="195" border="0"> <tr> <td><div align="center"> <script type="text/javascript"><!-- google_ad_client = "pub-3947167825178840"; /* 120x90, created 7/17/08 */ google_ad_slot = "9592010100"; google_ad_width = 120; google_ad_height = 90; //--> </script> <script type="text/javascript" src="(URL address blocked: See forum rules)"> </script> </div></td> </tr> </table> <br /> <img src="()" alt="Featured Links" width="200" height="34" /><br /> <br /> <table width="195" border="0"> <tr> <td> <div align="center"> <img src="()" width="185" height="45" /><br /> <br /> <img src="()" width="185" height="45" /><br /> <br /> <img src="()" width="185" height="45" /><br /> <br /> <script type="text/javascript"><!-- google_ad_client = "pub-3947167825178840"; /* 120x240, created 7/14/08 */ google_ad_slot = "0661630514"; google_ad_width = 120; google_ad_height = 240; //--> </script> <script type="text/javascript" src="()"> </script> </div></td> </tr> </table> <br /> <br /> <br /> </p> </div> </div> <div id="right" > <h2><img src="()" /></h2> <pre class="style1"><h2><a href="()">(URL address blocked: See forum rules)</a><br />Printing, Promo Items, WebSites <a href="http)">()</a><br />Import to the US with confidence <a href="httprules)">linkstodc.com</a><br />Washington, DC business <br />and living directory.<br /><a href="(URL address blocked: See forum rules)">stickerrocket.com</a> custom sticker, stock labels <a href="(rules)">hostingone.ca</a><br />Affordable web hosting <br /> Become a sponsor to federalacqusitionservice.com click here</h2> <br /> <br /><script type="text/javascript"><!-- google_ad_client = "pub-3947167825178840"; /* 120x90, created 7/14/08 */ google_ad_slot = "4200878981"; google_ad_width = 120; google_ad_height = 90; //--> </script> <script type="text/javascript" src="(URL address blocked: See forum rules)"> </script> <br /><br /> <br /> <br /> </div> <div id="content"> <h2><img src="(rules)" width="546" height="34" /><br /> </h2> <table width="543" align="center" style="border-left: 1px solid rgb(192,192,192); border-right: 1px solid rgb(192,192,192); border-top: 0px solid rgb(192,192,192); border-bottom: 1px solid rgb(192,192,192)"> <tr> <td width="268" height="127" valign="top"><table width="234" height="42" border="0" align="center"> <tr> <td width="228" height="38" valign="top"> FederalAcquisitionService.com is the link directory for Federal, State, Local and non-profit contracting sources. </td> </tr> </table> <table width="234" border="0" align="center"> <tr> <td width="134" valign="top">Check back regularly to see an even greater number of Federal acquisition links.</td> <td width="90"><img src="(URL address blocked: See forum rules)" alt="US Link Directory" width="90" height="60" /></td> </tr> </table> </td> <td width="267" valign="top"><table width="234" height="42" border="0" align="center"> <tr> <td valign="top">Reach your clients through sponsored <a href="httpURL address blocked: See forum rules)">text links</a> and <a href="httprules)">featured links</a> on FederalAcquisitionService.com. <br /></td> </tr> </table> <table width="234" border="0" align="center"> <tr> <td width="134" valign="top">Text links start at only $9.95 per month, featured image links start at $99 per year.</td> <td width="90"><img src="(forum rules)" alt="Premium Links" width="90" height="60" /></td> </tr> </table></td> </tr> <tr> <td height="14" colspan="2" valign="top"><div align="center"><script type="text/javascript"><!-- google_ad_client = "pub-3947167825178840"; /* 468x60, created 7/17/08 */ google_ad_slot = "6799108791"; google_ad_width = 468; google_ad_height = 60; //--> </script> <script type="text/javascript" src="(URL address blocked: See forum rules)"> </script > <br /> </div></td> </tr> </table> <img src="(rules)" width="546" height="34" /> <table width="543" align="center" style="border-left: 1px solid rgb(192,192,192); border-right: 1px solid rgb(192,192,192); border-top: 0px solid rgb(192,192,192); border-bottom: 1px solid rgb(192,192,192)"> <tr> <td valign="top"><div align="right"><a href="!!tophits!!"><img src="(rules)" width="82" height="35" border="0" /></a><a href="!!whatsnew!!"><img src="(URL rules)" width="50" height="35" border="0" /></a><a href="!!rgs_login!!"><img src="(rules)" width="57" height="35" border="0" /></a><a href="!!add_url_link!!"><img src="(URL rules)" width="73" height="35" border="0" /></a><a href="!!add_premium_url_link!!"><img src="( See forum rules)" width="136" height="35" border="0" /></a><a href="!!register!!"><img src="(rules)" width="72" height="35" border="0" /></a><br /> <br /> </div> <form method="POST" action="(: See forum rules)"> <p align="center"><input type="text" name="keywords" size="33"><input type="submit" value="Search" name="B1"> <a href="(forum rules)">Advanced</a></p> </form> <div align="left">!!psdata!!<br /> <br /> </div></td> </tr> </table> <h2><br /> <br /> <br /> </h2> </div> </div> <!-- end inner --> </div><!-- end outer --> <div id="footer"><h1 align="center">C federalacquisitionservice.com 2008</h1> </div> </div><!-- end container --> </body> </html> Code: end code Even when there is no text in the div... http://www.megasouldrill.com/test/ When viewed in firefox and IE7, the 'footer' div maintains it's styled height of 15px. In IE6, however, it seems as though the 'footer' div is ignorign the styled height completely. What gives? Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head> <style type='text/css'> body{ background-color: #9e9e9e; } #footer{ background: url('images/footer.gif'); width: 1042px; height: 15px; } </style> <title></title> </head> <body> <div id='footer'></div> </body> </html> EDIT: made problem simpler and gave a better title if you're already viewed this. I have since realized that adding overflow: hidden; to the footer styles fixes this as well as changing the background style to include no-repeat Hey, I use div's to create my page structure (you can see it on the screenshot) http://img144.imageshack.us/img144/...tructurege3.jpg The green part is the navigation and the blue part the contents of the page. But as you see the colors both dont fill up till the bottom of the document. And if i set: height: 100%; then it will fill up to the bottom, but when the contents gets to big and a scrollbar is needed, then the part that you scroll down is not filled up with the colors anymore. Does anybody know how to fix this? Thanks in advance. I'm building a "Coming Soon" page in Dreamweaver. It looks the way I want it to when previewed in Firefox (version 3.6.13), but not in Safari (version 4.1.2). Specifically, my line breaks and the margins on my image are ignored. Here's my code: 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=UTF-8"> <title>Quest Sports Medicine</title> <link href="file://Macintosh HD/Volumes/My GS Drive/global.css" rel="stylesheet" type="text/css" /> <style type="text/css"> <!-- .center-wrap p { font-family: Arial, Helvetica, sans-serif; font-weight: normal; color: #000; font-size: 30px; line-height: 35px; padding: 0px; float: left; margin-top: 15px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; } .center-wrap h2 { font-family: Arial, Helvetica, sans-serif; font-size: 66px; font-weight: bold; color: #942610; text-align: center; line-height: 64px; margin-top: 83px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; } .center-wrap img { margin-top: 47px; margin-right: 0px; margin-bottom: 0px; margin-left: 248px; } } --> </style> </head> <body> <div class="all-wrap"> <div class="center-wrap"> <h2>NEW WEBSITE<br /> COMING SOON</br></h2> <p>For information on the products we sell, how to place an order or any questions regarding recent orders, please call us at (717)-687-7178<br /> or toll-free at 1-800-387-1067. You can also reach us at our new e-mail address, questsports@comcast.net</br></p> <img src="images/qsm-logo.gif" width="436" height="260" alt="Quest Sports Medicine logo" /> </img></div> </div> </body> </html> Any thoughts on what I need to change? Thank you. I just finished an element for a redesign of my website. I open it in Firefox, working. I open it in Safari (for Windows), fine. I open it in IE, I almost cry. My entire page is screwed up! I can't tell if it's the floats, the margins, the lists (I think it's the lists). Anyways, does anyone know whats wrong so I could fix it? http://www.politinks.com/topbar Any help would be appreciated. Thanks! Code: <style type="text/css"> <!-- .inside { background-color: #CC9; border: thin solid #000; margin: 20px; float: left; clear: left; vertical-align: middle; text-align: left; padding-top: 0px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; } .tit { background-color: #FC0; clear: both; float: left; width: auto; margin-top: -10px; border: thin solid #000; font-weight: bold; font-family: "Times New Roman", Times, serif; text-align: center; vertical-align: middle; padding-right: 2px; padding-left: 2px; } .lab { text-align: right; } --> </style> <head> </head> <html> <body> <div class="inside"> <div class="tit"> Size </div> <br /> <table> <tr> <td class="lab">Width:</td><td><input name="pxWidth" type="text" value="250" size="6" /></td> </tr> <tr> <td class="lab">Height:</td><td><input name="pxHeight" type="text" value="80" size="6" /></td> </tr> </table> </div> </body> </html> Could someone tell me why does this piece of code doesn't render the same way in IE as it does in Firefox. In Firefox everything is fine... I think it has something to do with the margin property of the .inside class [Edit] Sorry about the sloppy post. I actually resolved the issue. It had to do with the way IE understands divs. Thanks you for your reply Hi all, Wanted to put this to some experienced devs and just ask, why is IE8 screwing my floats!? :'( So sad.. Here's my file: Code: <html><head> <style media="screen" type="text/css"> body { margin:0; padding:0; border:0; background:#535353; font-family:"Cambria"; text-shadow: 0px 2px 1px #3b3b3b; } #masterwrap { width:100%; } #wrap { margin:2%; border:2px solid #3b3b3b; } h1 { color:#8c8c8c; font-size:2.3em; text-decoration: underline; } h2 { color:#8c8c8c; padding:0; margin:6; } h5 { margin:80; font-size:8em; color:#ffb142; text-shadow: 0px 2px 1px #3b3b3b; } #header { text-align:center; border-bottom:2px solid #3b3b3b; width:100%; height:80px; } #nav{ clear:both; text-align:center; width:100%; height:50px; border-bottom:2px solid #3b3b3b; } #left { float:left; width:50%; border-bottom:2px solid #3b3b3b; } #right { float:left; width:50%; border-bottom:2px solid #3b3b3b; } #fat { clear:both; width:100%; text-align:center; border-bottom:2px solid #3b3b3b; } #bottom { clear:both; text-align:center; width:100%; height:150px; border-bottom:2px solid #3b3b3b; } #footer { clear:both; text-align:center; width:100%; height:50px; } </style> </head> <body> <div id="masterwrap"> <div id="wrap"> <div id="header"><h1>header</h1></div> <div id="nav"><h2>nav</h2></div> <div id="left"><h2>left</h2></div> <div id="right"><h2>right</h2></div> <div id="fat"><h5>fat</h5></div> <div id="bottom"><h2>bottom</h2></div> <div id="footer"><h2>footer</h2></div> </div> </div> </body> </html> just copy paste into a html to view. http://www.santeecooperobgyn.com/obgyn I have just begun to design a website and already I have run into bizarre (to me) behavior. In the horizontal navigation bar, when you run your mouse over it, you can see that the inline element is bigger than the block element container because the background color changes, revealing a small 2px or so size difference. Here is the relevant CSS. Code: * { padding: 0px; margin: 0px; } #navbar { list-style-type: none; margin-left: 0px; background-color: #336633; padding: 0em; height: 2em; margin: 0px; font-size: 10pt; } #navbar li { display: inline; float: left; padding: 0.5em; } #navbar li a { color: white; text-decoration: none; text-transform: uppercase; padding-left: 10px; padding-right: 10px; padding-top: 0.5em; padding-bottom: 0.5em; vertical-align: baseline; line-height: 100%; } #navbar li a:hover { background-color: #669966; I have no idea why this happens, unless the inline element content height is actually determined by factors other than the line-height. It seems like the total height should sum to 2em in both cases. |