CSS - Css - Displaying Incorrectly In Ie
Hi guys,
Im hoping a CSS whizz can find an error in this code as I cannot for the life of me work out why content held in the 'main' div is appearing outside / overlapping the edge of the site design? It loads perfectly in Firefox Code: #wrap { width: 820px; background: #CCC url(content.jpg) repeat-y center top; margin: 0 auto; text-align: left; } #content-wrap { clear: both; width: 760px; padding: 0; margin: 10px auto; } /* Main Column */ #main { float: left; width: 70%; padding: 0; margin: 0 0 0 5px; display: inline; } Any help would be greatly appreciated Similar TutorialsHi, I've just joined these forums as I have a very annoying problem. I have created a webpage which I have checked using the w3c validator - it is valid for XHTML 1.0 Transitional and Strict. It is a simple design; Header 3 Cols Footer It works perfectly in IE7, however in FireFox (2.0.0.14) I am getting some very strange behaviour. On the first, clean load (cache cleared) the page is rendered incorrectly - the Middle and Right columns being rendered below the Left Column. If you then click on the address bar and press enter (thus reloading the page from the cache) it is rendered perfectly. If I clear the cache, go to the address bar, and press enter again it renders incorrectly. Pressing F5 to refresh (ignoring the cache) also results in it being rendered incorrectly. Correct: URL Incorrect: URL I thought it might have been image dimensions not being set - so I went through and set all these to no avail. Code: HTML <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head> <title>Stuff</title> <link rel='stylesheet' type='text/css' href='style.css' /> </head> <body> <div id='outerFrame'> <div id='header'> <div id='banner'> <div id='leftTop'><img style='width: 338px; height: 135px;' src='gfx/banner_Left.gif' alt='Dancewear Central The UK's Number 1 Dancewear Specialist ' /></div> <div id='rightTop'><img style='width: 522px; height: 135px;' src='gfx/banner_Right.png' alt='' /></div> </div> <div id='topNav'> <div class='link'><a href='#'><img style='width: 122px; height: 26px;' src='gfx/btns/btnHome.gif' alt='Home'/></a></div> <div class='link'><a href='#'><img style='width: 122px; height: 26px;' src='gfx/btns/btnCompanyProfile.gif' alt='Company Profile'/></a></div> <div class='link'><a href='#'><img style='width: 122px; height: 26px;' src='gfx/btns/btnProductListing.gif' alt='Product Listing'/></a></div> <div class='link'><a href='#'><img style='width: 122px; height: 26px;' src='gfx/btns/btnBestSellers.gif' alt='Best Sellers'/></a></div> <div class='link'><a href='#'><img style='width: 122px; height: 26px;' src='gfx/btns/btnSpecialOffers.gif' alt='Special Offers'/></a></div> <div class='link'><a href='#'><img style='width: 122px; height: 26px;' src='gfx/btns/btnContactUs.gif' alt='Contact Us'/></a></div> <div class='link'><a href='#'><img style='width: 122px; height: 26px;' src='gfx/btns/btnLatestNews.gif' alt='Latest News' style='margin: 0; float: right;'/></a></div> </div> </div> <div id='innerFrame'> <div id='leftCol'> <div id='searchBox'> <div class='title'><img src='gfx/searchBox_header.gif' style='width: 200px; height: 22px;' alt='Search Dancewear Central'/></div> <div class='body'></div> </div> <div id='newsletterBox'> <div class='title'><img src='gfx/newsletterBox_header.gif' style='width: 200px; height: 22px;' alt='Newsletter Sign Up'/></div> <div class='body'></div> </div> <div id='categoryBox'> <div class='title'><img src='gfx/categoryBox_header.gif' style='width: 200px; height: 22px;' alt='Product Categories'/></div> <div class='body'> <div class='link'><a href='#'>Ladies Leotards</a></div> <div class='link'><a href='#'>Childrens Leotards</a></div> <div class='link'><a href='#'>Urban/Street</a></div> <div class='link'><a href='#'>Examination</a></div> <div class='link'><a href='#'>Ballet Shoes</a></div> <div class='link'><a href='#'>Ballroom Shoes</a></div> <div class='link'><a href='#'>Tap and Character Shoes</a></div> <div class='link'><a href='#'>Jazz Shoes</a></div> <div class='link'><a href='#'>Sneakers</a></div> <div class='link'><a href='#'>Warm-Ups</a></div> <div class='link'><a href='#'>Boys/Mens</a></div> <div class='link'><a href='#'>Tights</a></div> <div class='link'><a href='#'>Underwear</a></div> <div class='link'><a href='#'>Skirts/Tutus</a></div> <div class='link'><a href='#'>Bags</a></div> <div class='link'><a href='#'>Accessories</a></div> </div> </div> <div id='brandBox'> <div class='title'><img src='gfx/brandBox_header.gif' style='width: 200px; height: 22px;' alt='Brand Search'/></div> <div class='body'> <div class='link'><a href='#'>Capezo</a></div> <div class='link'><a href='#'>Roch Valley</a></div> <div class='link'><a href='#'>Bloch</a></div> <div class='link'><a href='#'>Sansa</a></div> <div class='link'><a href='#'>Danskin</a></div> <div class='link'><a href='#'>Wear-Moi</a></div> <div class='link'><a href='#'>Bunheads</a></div> <div class='link'><a href='#'>Danz-ez</a></div> <div class='link'><a href='#'>So-Danca</a></div> <div class='link'><a href='#'>Grishko</a></div> <div class='link'><a href='#'>Kerska</a></div> <div class='link'><a href='#'>Aniluce</a></div> <div class='link'><a href='#'>Kias</a></div> </div> </div> <div id='recommendBox'> <div class='title'><img src='gfx/recommendBox_header.gif' style='width: 200px; height: 22px;' alt='Recommend a Friend' /></div> <div class='body'>asd</div> </div> <div id='ballroomBox'><img src='gfx/ballroomcentral_link.gif' style='width: 200px; height: 46px;' alt='Ballroom Central'/></div> </div> <div id='contentFrame'> <img src='gfx/content_mainimage.jpg' style='width: 444px; height: 269px;' alt=''/> <img src='gfx/content_Header.gif' alt='' style='width: 374px; height: 22px; margin: 20px 0px 0px 7px;'/> <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Quisque nulla. Pellentesque lobortis nulla eget purus. In erat. Maecenas posuere, mauris vel vulputate consecetuer, risus neque aliquet tellus, at imperdiet leo ipsum eu massa. Donec hendrerit. Vestibulum cursus faucibus tellus. Mauris molestie, risus a vulputate auctor, est massa sollicitudin purus, et lacinia pede pede vitae mauris.</p> </div> <div id='rightCol'> <div id='loginBox'> <div class='title'><img src='gfx/loginBox_header.gif' style='width: 200px; height: 22px;' alt='Login to Dancewear Central'/></div> <div class='body'></div> </div> <div id='basketBox'> <div class='title'><img src='gfx/basketBox_header.gif' style='width: 200px; height: 25px;' alt='Shopping Basket'/></div> <div class='body'></div> </div> <div id='discountBox'> <div class='title'><img src='gfx/discountBox_header.gif' style='width: 200px; height: 135px;' alt='Get 10% off with a Dance School Discount at Dancewear Central'/></div> <div class='body'><a href='#'>click here for information</a></div> </div> <div id='bestsellerBox'> <div class='title'><img src='gfx/bestsellerBox_header.gif' style='width: 200px; height: 22px;' alt='Best Sellers'/></div> <div class='body'><br /><br /><br /><br /><br /></div> </div> <div id='bundleBox'> <a href='#'><img src='gfx/bundleBox_gfx.gif' style='width: 200px; height: 139px;' alt='Click here to see some of our amazing bundle deals'/></a> </div> </div> </div> <div id='footer'> <img src='gfx/footer_brands_gfx.gif' style='width: 860px; height: 67px;'alt=''/> <p><a href='#'>Home</a> | <a href='#'>Products</a> | <a href='#'>Company Profile</a> | <a href='#'>Best Sellers</a> | <a href='#'>Special Offers</a> | <a href='#'>Bundles</a> | <a href='#'>Contact</a> | <a href='#'>News</a> | <a href='#'>Dance School Discount</a> | <a href='#'>Site Map</a> | <a href='#'>Statutory Information</a></p> </div> </div> </body> </html> Code: CSS body { margin: 0; padding: 0; background-image: url(gfx/body_bg.gif); background-attachment: fixed; background-repeat: repeat-x; text-align: center; font-size: 11px; font-family: tahoma; border-style: none; } #outerFrame { z-index: 1; width: 900px; background-color: #FFF; height: auto; margin: auto; background-image: url(gfx/outerFrame_bg.gif); text-align: left; } #header { z-index: 2; position: relative; width: 860px; height: 161px; margin: 0px 20px 0px 20px; padding: 0px; background-color: #FFF; } #header #banner { z-index: 3; position: relative; width: 860px; height: 135px; margin: 0; padding: 0; background-color: #FFF; } #header #banner #leftTop { z-index: 4; position: relative; float: left; width: 338px; height: 135px; } #header #banner #rightTop { z-index: 4; position: relative; float: right; width: 522px; height: 135px; } #header #topNav { z-index: 4; position: realtive; width: 861px; height: 26px; background-color: #FFF; } #header #topNav .link { z-index: 5; position: relative; float: left; width: 122px; height: 26px; margin: 0px 1px 0px 0px; padding: 0; } #header #topNav .link img {border-style: none;} #innerFrame { z-index: 6; position: relative; display: table; width: 860px; height: 100%; background-color: #FFF; margin: 10px 20px 0px 20px; padding: 0px; } #innerFrame #leftCol { position: relative; float: left; z-index: 7; width: 200px; height: auto; background-color: #FFF; } #innerFrame #leftCol #searchBox { position: relative; float: left; z-index: 8; width: 200px; height: 121px; background-color: #FFF; margin: 0px 0px 8px 0px; padding: 0px; } #innerFrame #leftCol #searchBox .title { position: relative; z-index: 9; width: 200px; height: 22px; margin: 0px 0px 1px 0px; padding: 0; } #innerFrame #leftCol #searchBox .body { position: relative; z-index: 9; width: 200px; height: 98px; background-image: url(gfx/leftCol_box_bg.gif); } #innerFrame #leftCol #newsletterBox { position: relative; float: left; z-index: 8; width: 200px; height: 110px; background-color: #FFF; margin: 0px 0px 8px 0px; padding: 0px; } #innerFrame #leftCol #newsletterBox .title { position: relative; z-index: 9; width: 200px; height: 22px; margin: 0px 0px 1px 0px; padding: 0; } #innerFrame #leftCol #newsletterBox .body { position: relative; z-index: 9; width: 200px; height: 87px; background-image: url(gfx/leftCol_box_bg.gif); } #innerFrame #leftCol #categoryBox { position: relative; float: left; z-index: 8; width: 200px; height: auto; background-color: #FFF; margin: 0px 0px 8px 0px; padding: 0px; } #innerFrame #leftCol #categoryBox .title { position: relative; z-index: 9; width: 200px; height: 22px; margin: 0px 0px 1px 0px; padding: 0; } #innerFrame #leftCol #categoryBox .body { position: relative; z-index: 9; width: 200px; height: auto; margin: 0; padding: 0; } #innerFrame #leftCol #categoryBox .body .link { position: relative; z-index: 10; width: 200px; height: 20px; margin: 0px 0px 1px 0px; padding: 0; } #innerFrame #leftCol #categoryBox .body .link a { width: 190px; height: 16px; display: block; font-family: tahoma; font-weight: bold; color: #000; font-size: 0.8em; background-color: #e8e8e8; padding: 4px 0px 0px 10px; text-decoration: none; } #innerFrame #leftCol #categoryBox .body .link a:hover {background-color:#fcdf68; text-decoration: underline;} #innerFrame #leftCol #brandBox { position: relative; float: left; z-index: 8; width: 200px; height: auto; background-color: #FFF; margin: 0px 0px 8px 0px; padding: 0px; } #innerFrame #leftCol #brandBox .title { position: relative; z-index: 9; width: 200px; height: 22px; margin: 0px 0px 1px 0px; padding: 0; } #innerFrame #leftCol #brandBox .body { position: relative; z-index: 9; width: 200px; height: auto; margin: 0; padding: 0; } #innerFrame #leftCol #brandBox .body .link { position: relative; z-index: 10; width: 200px; height: 20px; margin: 0px 0px 1px 0px; padding: 0; } #innerFrame #leftCol #brandBox .body .link a { width: 190px; height: 16px; display: block; font-family: tahoma; font-weight: bold; color: #000; font-size: 0.8em; background-color: #e8e8e8; padding: 4px 0px 0px 10px; text-decoration: none; } #innerFrame #leftCol #brandBox .body .link a:hover {background-color:#fcdf68; text-decoration: underline;} #innerFrame #recommendBox { z-index: 10; position: relative; float: left; margin: 8px 0px 0px 0px; padding: 0; width: 200px; height: 106px; background-color: #FFF; } #innerFrame #recommendBox .title{ position: relative; z-index: 11; width: 200px; height: 22px; margin: 0px 0px 1px 0px; padding: 0; } #innerFrame #leftCol #recommendBox .body { position: relative; z-index: 11; width: 200px; height: 83px; background-image: url(gfx/leftCol_box_bg.gif); } #innerFrame #leftCol #ballroomBox { position: relative; z-index: 11; float: left; width: 200px; height: 46px; margin: 8px 0px 0px 0px; padding: 0px; } #innerFrame #contentFrame { position: relative; float: left; z-index: 7; width: 444px; height: auto; background-color: #FFF; margin: 0px 8px 0px 8px; } #innerFrame #contentFrame p { margin: 20px 0px 0px 7px; } #innerFrame #rightCol { position: relative; float: right; z-index: 7; width: 200px; height: auto; background-color: #FFF; } #innerFrame #rightCol #loginBox { z-index: 10; position: relative; float: left; width: 200px; height: 108px; } #innerFrame #rightCol #loginBox .title { position: relative; z-index: 11; width: 200px; height: 22px; margin: 0px 0px 0px 0px; padding: 0; } #innerFrame #rightCol #loginBox .body { position: relative; z-index: 11; width: 200px; height: 87px; background-image: url(gfx/rightCol_box_bg.gif); } #innerFrame #rightCol #basketBox { z-index: 10; position: relative; float: left; width: 200px; height: 123px; margin: 8px 0px 0px 0px; padding: 0; } #innerFrame #rightCol #basketBox .title { position: relative; z-index: 11; width: 200px; height: 25px; margin: 0px 0px 0px 0px; padding: 0; } #innerFrame #rightCol #basketBox .body { position: relative; z-index: 11; width: 200px; height: 98px; background-image: url(gfx/basketBox_body_bg.gif); } #innerFrame #rightCol #discountBox { z-index: 10; position: relative; float: left; width: 200px; height: 165px; margin: 8px 0px 0px 0px; padding: 0; } #innerFrame #rightCol #discountBox .title { position: relative; z-index: 11; width: 200px; height: 135px; margin: 0px 0px 0px 0px; padding: 0; } #innerFrame #rightCol #discountBox .body { position: relative; z-index: 11; width: 200px; height: 20px; background-image: url(gfx/discountBox_body_bg.gif); padding-top: 10px; } #innerFrame #rightCol #discountBox .body a{ color: #FFF; font-weight: bold; text-decoration: underline; margin: 0px 0px 0px 13px; } #innerFrame #bestsellerBox { z-index: 10; position: relative; float: left; width: 200px; height: auto; margin: 8px 0px 0px 0px; padding: 0; } #innerFrame #rightCol #bestsellerBox .title { position: relative; z-index: 11; width: 200px; height: 22px; margin: 0px 0px 0px 0px; padding: 0; } #innerFrame #rightCol #bestsellerBox .body { position: relative; z-index: 11; width: 200px; height: auto; background-image: url(gfx/rightCol_box_bg.gif); } #innerFrame #bundleBox { z-index: 10; position: relative; float: left; width: 200px; height: 139px; margin: 8px 0px 0px 0px; padding: 0; } #innerFrame #bundleBox img{ border-style: none; } #footer { z-index: 12; position: relative; display: table; width: 860px; height: auto; margin: 10px 20px 0px 20px; padding: 0px; background-color: #FFF; } #footer p { text-align: center; color: #6e6e6e; margin-bottom: 10px; } #footer p a { color: #6e6e6e; } Hope someone can help me out! Thanks in advance, Dave. ML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
CSS Help Forums: » Register « | User CP | Games | Calendar | Members | FAQs | Sitemap | Support | User Name: Password: Remember me Dev Shed Forums > Web Design > CSS Help Div incorrectly showing incorrectly in Firefox, as desired in IE or Chrome Discuss Div incorrectly showing incorrectly in Firefox, as desired in IE or Chrome in the CSS Help forum on Dev Shed. Div incorrectly showing incorrectly in Firefox, as desired in IE or Chrome Cascading Style Sheets (CSS) forum discussing all levels of CSS, including CSS1, CSS2 and CSS Positioning. CSS provides a robust way of applying standardized design concepts to your web pages. Earn Your Master Degree in Internet Marketing Receive the tools necessary to be the rock star of your field. Our 12-month program teaches you the evolving world of multi-channel marketing as well as the complex issues and opportunities found in the industry. .NET CASE Tools - Download & Contest ASP Free and Iron Speed Designer are giving away $5,500+ in FREE licenses. Iron Speed's RAD CASE toolset can save up to 80% of your coding time. One free license per week, one perpetual license per month! Download and Activate to enter! Visit Other Sites in Our Network Web development can be a daunting task, even for specialists. There is a lot of information to absorb and a lot of technologies to learn in order to manage a superior website. When trying to learn the ropes, developers need a reliable source to introduce new ideas that can be easily implemented. When working on large projects, even web veterans may run into a technology or an aspect of a technology that they are unfamiliar with. Learn More! Download to Enter | Contest Rules Tutorials | Forums Add This Thread To: Del.icio.us Digg Google Spurl Blink Furl Simpy Y! MyWeb « Previous Thread | Next Thread » Thread Tools Search this Thread Rate Thread Display Modes Dev Shed Forums Sponsor: Viewing: Dev Shed Forums > Web Design > CSS Help > Div incorrectly showing incorrectly in Firefox, as desired in IE or Chrome « Previous Thread | Next Thread » Thread Tools Search this Thread Email this Page Search this Thread: Advanced Search Display Modes Rate This Thread Linear Mode Switch to Hybrid Mode Switch to Threaded Mode Rate This Thread: 5 : Excellent 4 : Good 3 : Average 2 : Bad 1 : Terrible Posting Rules You may not post new threads You may not post replies You may not post attachments You may not edit your posts vB code is On Smilies are On [IMG] code is On HTML code is Off View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox Forum Jump Please select one User Control Panel Private Messages Subscriptions Who's Online Search Forums Forums Home -------------------- Programming Languages PHP Development Perl Programming C Programming Java Help Python Programming Ruby Programming Game Development Programming Languages - More ASP Programming .Net Development Visual Basic Programming Software Design ColdFusion Development Delphi Programming Regex Programming XML Programming Other Programming Languages Web Design HTML Programming JavaScript Development CSS Help Flash Help Photoshop Help Web Design Help Website Critiques Search Engine Optimization Mobile Programming Mobile Programming iPhone SDK Development Android Development BlackBerry Development Web Site Management Business Help Development Software Scripts Databases Database Management DB2 Development MySQL Help PostgreSQL Help Firebird SQL Development MS SQL Development Oracle Development LDAP Programming System Administration Mail Server Help Apache Development Security and Cryptography Antivirus Protection DNS IIS Networking Help FTP Help Operating Systems BSD Help Linux Help UNIX Help Windows Help Mac Help Web Hosting Web Hosting Free Web Hosting Web Hosting Requests Web Hosting Offers Computer Hardware Computer Hardware CPUs Cooling Embedded Programming Motherboards Multimedia Hardware Other Dev Shed Lounge Development Articles Beginner Programming Hire A Programmer Project Help Wanted Latest News Updated Hourly Technology News Business News Science News Forum Information Forum Rules/Guidelines Forum Announcements Dev Shed Gaming Center Go to the Dev Shed Battle Arena Go to the Dev Shed Arcade Games Go to the Legend of the Green Dragon Suggestions & Feedback Forums: » Register « | User CP | Games | Calendar | Members | FAQs | Sitemap | Support | Powered by: vBulletin Version 3.0.5 Copyright ©2000 - 2012, Jelsoft Enterprises Ltd. © 2003-2012 by Developer Shed. All rights reserved. DS Cluster 7 - Follow our Sitemap [-X-] x.Net CASE tools to speed up your development. FREE trial & contest entry w/ activation. I'm somewhat new to CSS, so excuse me if this post sounds noobish. The goal here is to make a simple 3 column layout with a header and a footer. For the most part, I've Googled around and I've got the basics of it down. But theres one problem - the far right column refuses to sit right below the header like it should. Its in its place horizontally - but vertically, it doesn't want to appear until the center column has ended. Heres the CSS I'm using - I hope you can infer what the IDs mean: Code: #header { background-color:#D7D7D7; color:#000000; padding:0; background-image:url(images/headerpng.png); background-repeat:no-repeat; background-position:top center; height:96px; border:2px solid black; width:100%; } #header h1 { padding:0; margin:0; } #leftnav { float:left; width:100px; padding:5px; margin:0px; text-align:center; font-family:Arial; } #centercontent { margin-left:110px; margin-top:5px; margin-right:150px; } #footer { clear:both; text-align:center; font-size:9px; color:#666666; } #rightnav { float:right; width:100px; padding:5px; margin:0px; text-align:center; font-family:Arial; } By the way, I know there are a few unnecessary properties in there, but I haven't cleaned this code up yet - just looking for the solution to my nesting problem. I am having some difficulty getting text to render how I want it. The page in question can be viewed he http://www.cbo4edu.org/who.html The column of text on the left is bolded for some reason and I want it match the text on the right (unbolded). I have setup an External style sheet and the only code I've applied to type is: PHP Code: .footer { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 8pt; } body,td,th { color: #000000; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; } body { background-color: #000000; margin-left: 0px; margin-right: 0px; The HTML code: PHP Code: <th colspan="4" rowspan="24" align="left" valign="top"><p>College Bound Opportunities (CBO) is a not-for-profit organization centered in the five communities within Deerfield and Highland Park High School District 113. CBO identifies high-achieving young people who without support would likely forgo post-secondary education and assists them in applying to and completing college. CBO goals are achieved through a program of one-on-one coaching between volunteers and scholars. Additional aid provided by CBO includes tutoring, training services, laptop computers, and up to $4,000 per year in scholarships. </p> Thanks, Rebecca I am attempting to put together a site with CSS navigation for the first time. Thanks to people much smarter than I, I've been able to stitch other's lessons into something almost workable. THE PROBLEM I have a horizontal menu with a submenu. This submenu should also display horizontally. It does in FF, but not in either IE6 or IE7. In these browsers, it displays vertically. I have tried a lot of things and finally gave up. I validated my code and was given a pass. I've tried narrowing down the problem and have tried searching for the answer but I just can't figure it out. If needed, you can view the problem at www.foundationfitnesscenter.com/schedule (ignore the crappy header image, it's just there to show an idea for now). The CSS where I feel the problem must be: Code: #nav #schedule-sub, #nav #education-sub, #nav #classes-sub { display:none; width:90%; } body.classes #nav ul#classes-sub a, body.schedule #nav ul#schedule-sub a, body.education #nav ul#education-sub a { background-image:none; color:#3300FF; font-size:100%; font-weight:bold; line-height:10px; margin-right:4px; padding:2px 10px 2px 10px; text-decoration:none; } body.classes #nav ul#classes-sub, body.schedule #nav ul#schedule-sub { display:block; position:absolute; left:15px; top:95px; } body.education #nav ul#education-sub { display:block; position:absolute; left:175px; top:95px; } The HTML Code: <ul id="nav"> <li class="home-list"><a href="/index.php">Home</a></li> <li class="classes-list"><a href="../classes/">Classes</a> <ul id="classes-sub"> <li><a href="../classes/pilates.php">Pilates</a></li> <li><a href="../classes/dance.php">Dance</a></li> <li><a href="../classes/gyrokinesis.php">Gyrokinesis</a></li> </ul> </li> <li class="schedule-list"><a href="../schedule/">Schedule</a> <ul id="schedule-sub"> <li><a href="../schedule/class-schedule">View All Classes</a></li> <li><a href="../schedule/enroll-private.php">Enroll - Private</a></li> <li><a href="../schedule/enroll-group.php">Enroll - Group</a></li> </ul> </li> <li class="education-list"><a href="../education/">Education</a> <ul id="education-sub"> <li><a href="../education/pilates/">Pilates</a></li> <li><a href="../education/dance/">Dance</a></li> <li><a href="../education/gyrokinesis/">Gyrokinesis</a></li> </ul> </li> <li class="about-list"><a href="../about/">About</a></li> <li class="contact-list"><a href="../contact/">Contact</a></li> </ul> Hello all, I dont understand why the image placed inside the right column appears incorrect here. Please check the attachment or the following website and you will understand what I am refering. http://www.refinethetaste.com/yk/clients.asp Code: #content { float:left; width: 956px; min-height:800px; background:url(images/bg_content.gif) 0px 0px #e2eceb no-repeat; } #content #lcolumn { float:left; width:401px; } #content #lcolumn .logo { float:left; width:100%; } #content #lcolumn img.logo { float:left; width:401px; height:104px; border:0px } #content #lcolumn .head { float:left; width:100%; height:20px; background:#99adcc; } #content #lcolumn .head .text { float:left; width:100%; text-align:center; font-size: 13px; font-weight:bold; line-height:20px; color:#083684; } #content #lcolumn .main { float:left; width:361px; padding:20px; } #content #lcolumn p { font-size:15px; } #content #rcolumn { float:left; width:555px; height:505px; } #content #rcolumn img { float:left; border:0px; } edit: FIXED! I did a site recently and Im having trouble finding what is causing this weird error. If you go to this gallery using firefox: http://www.mmimageart.com/fineart4.html you will notice that the thumbnails under "saguaro" will display wrongly. IF you dont see the problem just keep refreshing the browser until you get the problem. you will get it. there are problems also in: http://www.mmimageart.com/fineart3.html (everglades) http://www.mmimageart.com/fineart.html (Atlantic Coast) What coding error in css can cause firefox to display the website wrong randomly ? Is this a well known error ? if not, then Ill post the code. Thanks in advanced!!! My page is displaying correctly in IE 6,7,8(CV), but when I view it in Firefox or Safari, it does not display correctly. The problem I'm having is the div #main is not stretching to allow room for the content in it. In IE it stretches fine, but in FF and Safari it doesn't stretch at all. I've been all over the internet searching but I can't find any similar problems/solutions. I've tried whatever I can think of or find. Can somebody please help me or point me in the right direction? Page: <div id="main"> //problem div <div id="sideBar"> <div id="header"> </div> </div> <div id="mainContent"> //contains content that I need to be stretched to the height </div> </div> CSS Code: html { margin: 0; padding: 0; border: 0; } body { background-image: url(img/bg.png); background-repeat: repeat-x; background-color: #008A32; margin: 0; padding: 10px; border: 0; height: 100%; min-height: 100%; } #main { font-family: Arial, Helvetica, sans-serif; padding: 20px; position: relative; border: solid 1px #0C0; width: 760px; margin: 1px auto; background-color: #FFF; } #sideBar { width: 194px; float: left; clear: left; height: auto; min-height: 100%; } #header { width: 194px; height: 344px; clear: both; float: none; background-image: url(img/Logo01.png); } #mainContent { width: 546px; float: right; clear: right; height: auto; min-height: 100%; } Thanks in advance -Mike Just when I think I've finally seen it all, every way these browsers can **** up, there's always one more. This morning I discovered that Netscape 7 / Win does not properly render an a element with image content. My example demonstrates that both IE 6 / Win and Netscape 7 / Win both have issues rendering a elements with text content also. This seems like really basic stuff . . . how, HOW could Netscape 7 not be able to render the a with image content correctly??? (Another good question is why this forum doesn't allow you to upload HTML files . . . WTF?? -- you'll have to rename the file to .html) This problem has been driving me crazy. Long story short, this is what it looks like in Firefox 3. This is the correct way it should look. (ff.jpg) This is the way it looks in both IEs (ie.jpg) The entire third <li> item wraps correctly in firefox, but in ie, the word within the <li> wrap, but not the entire <li> element. Here is the html: Code: <ul class="tabNavSecondary"> <li><a href="#preventionSub1">Prevention</a>|</li> <li><a href="#preventionSub2">xxxxxx</a>|</li> <li><a href="#preventionSub3">xxxxx</a>|</li> <li><a href="#preventionSub4">xxxx</a>|</li> <li><a href="#preventionSub5">xxxx</a>|</li> <li><a href="#preventionSub6">xxx</a></li> </ul> CSS: Code: .tabNavSecondary{ float:left; margin:6px 0 15px -5px; } .tabNavSecondary li{ background:none; display:block; float:left; margin:0; padding:0; } .tabNavSecondary li a, .tabNavSecondary li a:link{ float:left; margin:0 5px; color:#003399; } Any thoughts? I've tried for about an hour with all sorts of different styles. Hi, I'm trying to write a simple website but I can't get it to run correctly in Internet Explorer. It looks fine in Firefox and Safari, but in IE none of the CSS is used, it looks like a regular html document. I've run the Validations for both files and they pass (aside from the html file throwing errors about the css styles). Here is 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>TITLE</title> <link rel="stylesheet" type="text/css" href="style.css"> <!-- Date: 2009-08-10 --> </head> <body bgcolor="#D5D5D5"> <center> <banner> <img src="toptile.jpg" height="150px" width="100%" alt="topbanner"> </banner> <br> <logo> <img src="bannerlogo.png" alt="logo"></logo> <navbar> <img src="navbar.png" width="100%" height="650px" alt="background"> </navbar> <blackbar><img src="black.png" width="100%" height="20px" alt="blackbox"></blackbar> <br> <middle> <table border="0" width="800px" cellpadding="10" bgcolor="#DBFBFF"> <tr> <td width="50%" valign="top"> <br><br><br><br><br> <center> Coming Soon... </center> </td> </tr> </table> </middle> </center> </body> </html> and the CSS: Code: logo { position:absolute; display:block; margin-left: auto; margin-right: auto; top:10px; width:100%; z-index:3; } banner { position:absolute; top:-10px; left:-10px; right:0px; z-index:2; } middle { position:absolute; display:block; top:100px; margin-left: auto; margin-right: auto; width:100%; z-index:1; } navbar { position:absolute; top:140px; left:0px; right:0px; z-index:-1; } blackbar { position:absolute; top:140px; left:0px; right:0px; z-index:4; } I realize I'm probably not using all the best practices, but it displays fine on everything but IE. Can someone please help me out here. Thanks I'm working on a site (here) that has a two column style layout. Everything works fine in almost any browser OTHER than IE... In IE, the main (right) column shifts so that it is below the content length of the left (floated) column. I want them to be side by side... I've been playing with different solutions for several days. Can anyone help? (link to css file). relevant html: Code: <div id="wrapper"> <div id="container"> <div id="content"> <div id="left"> <!-- Left Block Start --> <!-- Left Sidebox Start --> <!-- Left Sidebox End --> <!-- Left Block End --> </div> <div id="main"> <!-- Center Sidebox Start --> <!-- Center Sidebox End --> <!-- BEGIN: Default News-index Article --> <!-- END: Default News-index Article --> </div> </div> </div> <div class="clearing"> </div> </div> relevant css: Code: /* styles to create table-less layout */ #wrapper { padding-top:10px; background-color: white; text-align:center; } #container { width: 770px; height: auto; margin: 0 auto 0 auto; /* sets the left and right margins to auto for everything else */ border-top: 1px solid white; } #content { /*width: 770px; */ text-align:center; } #main { text-align: left; margin-left: 175px; width: 595px; } #left { text-align: left; float: left; width: 160px; } /* utility clearer class */ .clearing { height: 0px; clear: both; } thanks in advance for the help! Hi, I have labels that aren't displaying properly in IE. I have used similar code in many parts of the site without problem. Please see this page in IE6. The label contents don't display If I move the labels outside of the content div it does display... Code: <div id="content"> <div id="tempcontent"> <div id='confirmation'> <p><label>Email address:</label>james@got.com<br></p> <p><label>Duration of stay:</label>2 day(s)<br></p> <p><label>Number of guests:</label>4<br></p> <p><label>Arrival date:</label>2007-01-03 00:00:00<br></p> <p><label>Departure date:</label>2007-01-05 00:00:00<br></p> </div> Code: #content { position:relative; background-color:#ffffff; /* dcba72 */ margin-top: -1em; #tempcontent { margin: 4em 4em; } #confirmation { margin: 2em 8em; border: 1px solid #781351; padding: 1em 3em; } label { width: 15em; float: left; text-align: right; margin-right: 0.5em; display: block; color:black; } Does anyone know what's going on? I've losing my mind on this. When I look at the following layout in IE6, the "matterR" DIV background color is filling up the entire "content" DIV -- as opposed to staying in its container DIV ("columnR") like I need it to. Any idea why it's bigger than it's container DIV? Code: #content { margin-right: 10px; margin-bottom: 5px; margin-left: 10px; width: 780px; overflow: hidden } #columnR { width: 595px; height: 308px; float: right; overflow: auto } #matterR { background: #6d6f71; padding: 20px 20px 40px 70px } <div id="content"> <div id="columnR"> <div id="matterR">Scrolling text content here...</div> </div> </div> Keep in mind that I can't really assign a pixel width to "matterR" -- as its container DIV needs to scroll vertically. It seems if I assign a pixel width, it want to scroll horizontally to compensate for the scrollbar. Any ideas? Thank you! hi i have few questions: 1. when you have a paragraph and the space between the two lines of text, how do you reduce it? 2. similarly say you have a paragraph and then another element underneath it for eg the end of table, a horiz. line etc, how do i reduce the space between that paragraph and that element. 3. I have a DIV but when i put it on the page it appears at the top, is there a way to place it so that it is placed at the bottom. here is the code: Code: <div style="float:left;"> <a href="{U_VIEW_FORUM}">{FORUM_NAME}</a><br /> <b>{L_MODERATOR}: {MODERATORS}<br /><br /> {LOGGED_IN_USER_LIST}</b><br/> <a href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" border="0" alt="{L_POST_NEW_TOPIC}" /></a> <!--<a href="{U_INDEX}">{L_INDEX}</a> -> <a href="{U_VIEW_FORUM}">{FORUM_NAME}</a>--> <a href="{U_INDEX}">Forum</a> -> <a href="{U_VIEW_FORUM}">{FORUM_NAME}</a> </div> <div style="float:right; vertical-align:bottom; margin-top:9%;"> {PAGINATION} <a href="{U_MARK_READ}">{L_MARK_TOPICS_READ}</a> </div> in this the first DIV appears on the left, the second div appears on the right of the first div. HOWEVER it positions itself with the top of first div SOMETHING LIKE: Code: FIRST DIV TEXT SECOND DIV TEXT FIRST DIVE TEXT .... ... however i want it to look like: Code: FIRST DIV TEXT FIRST DIVE TEXT .... END OF FIRST DIV SECOND DIV TEXT now i have two possible sol for this ie: using margin-top to make it go down or use <br/>. is there a css specific tag? Hi there, I have a css drop down menu system, but for some reason, it is only appearing in FF and not IE. This is my code: PHP Code: ul#nav li a:hover, ul#nav li:hover a, ul#nav li.sfhover a{ background:url(../images/nav.gif) no-repeat top center; } ul#nav li:hover li a, ul#nav li.sfhover li a{ background: none; } ul#nav li ul{ position: absolute; margin: 0px; padding: 0px; overflow: visible; left: 0px; display: none; margin-top: hover; text-align: left; border-bottom: solid 1px #a0b0c2; border-right: solid 1px #a0b0c2; border-left: solid 1px #a0b0c2; background: #f0f3f8; width: 150px; } ul#nav li li{ border-top: solid 1px #a0b0c2; background: #f0f3f8; padding: 0px; margin: 0px; float: none; display: block; text-align: left; width: 100%; } ul#nav li li a{ width: auto; display: block; margin: 0px; padding: 3px 0px 3px 20px; background: #f0f3f8; font-weight: normal; font-size: 9px; line-height: 12px; font-family: Arial, Helvetica, sans-serif; color: #677786; text-decoration: none; margin: 0px; letter-spacing: 1px; width: 130px; } ul#nav li li a:hover{ background: #c1c8d3; font-weight: normal; font-size: 9px; line-height: 12px; font-family: Arial, Helvetica, sans-serif; color: #677786; text-decoration: none; } ul#nav li:hover ul, ul#nav li.sfhover ul{ display: block; } Does anyone have any idea why this is not working in IE? Many thanks! I am sure that this is no surprise to many of you and hope that someone kind help me find a solution. I am having trouble displaying a drop down CSS menu in IE7, it seems to work fine in Firefox. Please advise and thank you for all your help with this. I have spent far too much time on this and still can't figure it out. Website is located at: myasvn.org/_/campusrec/temp.php PHP Code: /* Navigation Menu */ ul#menu { background: rgb(63, 69, 76) url('../_media/bk-menu.png') repeat-x; list-style-type: none; list-style-image: none; list-style-position: outside; width: 950px; height: 34px; display: block; line-height: 34px; z-index:2; } ul#menu li a { display: block; color: rgb(255, 255, 255); text-decoration: none; text-align: center; } ul#menu li a:hover, ul#menu li:hover { background-color: rgb(53, 60, 66); } ul#menu li { border-right: 1px solid rgb(53, 60, 66); float: left; } ul#menu li ul { position: absolute; left: -999em; background-color: rgb(238, 238, 238); width: 165px; list-style-type: none; list-style-image: none; list-style-position: outside; } ul#menu li li { border-right: medium none; width: 157px; float: left; line-height: 30px; } ul#menu li li a { border-bottom: 1px solid rgb(210, 210, 210); width: 157px; color: #000000; text-decoration: none; text-align: left; padding-left: 8px; display: block; } ul#menu li li a:hover { color: rgb(255, 255, 255); background-color: rgb(204, 0, 0); } ul#menu li:hover ul { left: auto; } ul#menu li:hover ul, #menu li.sfhover ul { left: auto; } I am using the below CSS to display a photo at the top of my pages. The CSS worked fine with the original photo (using a template) on both firefox and IE. However, when I changed the photo for my own it stops appearing on IE. Firefox displays the picture perfectly, and the div that holds the image is sized correctly (shows as white space on page). Does anyone know why this may be happening? I am using IE 7. The rest of the CSS is working, even the links to other images I use as backgrounds. Code: #header-photo { clear: both; height: 200px; width: 790px; margin: 0 auto; background: #FFF url(header-photo.jpg) no-repeat center center; } I wasn't sure whether I should post here or in the Javascript forum, but it's a display issue, so I'm putting it here. I have a problem with a trivial project that's driving me crazy. I'm using javascript to display a list of the last songs I've listened to. I want that list to display within a div. The problem is that it doesn't at all -- it seems to ignore all CSS positioning altogether. You can see the problem here . You can view the script that's generating the text right here. It's all pretty obvious -- the list of songs that's in the background should be in the "i'm listening to" box. Anyone seen anything like this before? I've searched all over Google and these forums and I can't find anything quite like it. |