CSS - Div Incorrectly Showing Incorrectly In Firefox, As Desired In Ie Or Chrome
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. Similar TutorialsI 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!!! 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 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'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> Hi, 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. 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) 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 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. one line of text isn't in the position that i want it to be for ff and ie. Chrome is able to read the css code: chrome: Code: p1 { line-height: 1.3em; font-size: 1.2em; font-weight: bold; display: block; -webkit-margin-befo 5.4em; -webkit-margin-after: 1em; -webkit-margin-start: 220px; -webkit-margin-end: 0px; } ff,ie: p1{ line-height: 1.3em; font-size: 1.2em; font-weight: bold; } I want the " learning from questions" at the bottom right of the logo. Thanks for helping! site link: http://www.nyitforums.com/ Hey, Just making a site for a friend and I have run into a block with the Hover tag. It works fine in IE but for some reason other browsers aren't working properly... Any ideas? I have put my source underneath, sorry its squashed up. I have also loaded the site to the domain but won't put the link - not sure if I'm allowed. 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> <title>Innovate Photography - Home</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="StyleSheet" href="style.css" type="text/css" media="screen" /> </head> <body> <div id="wrap"> <div id="header"> <img src="images/logo2.png" alt="logo - Innovate photography" width="780" height="62" /> </div> <ul id="nav_bar"> <li><b href="index.html">Home</b></li> <li><a href="about.html">About Us</a></li> <li><a href="gallery.html">Gallery</a></li> <li><a href="disability.html">Disability</a></li> </ul> <div id="slideshow"> <img src="images/index_page/1.jpg" alt="Slideshow Image 1" class="active" /> <img src="Images/index_page/2.jpg" alt="Slideshow Image 2"/> <img src="Images/index_page/3.jpg" alt="Slideshow Image 3"/> <img src="Images/index_page/4.jpg" alt="Slideshow Image 3"/> </div> <!--Java image gallery - Index Page --> <script type="text/javascript" src="jquery-1.2.6.min.js"></script> <script type="text/javascript"> /*** Simple jQuery Slideshow Script Released by Jon Raasch (jonraasch.com) under FreeBSD license: free to use or modify, not responsible for anything, etc. Please link out to me if you like it :) ***/ function slideSwitch() { var $active = $('#slideshow IMG.active'); if ( $active.length == 0 ) $active = $('#slideshow IMG:last'); // use this to pull the images in the order they appear in the markup var $next = $active.next().length ? $active.next() : $('#slideshow IMG:first'); var $sibs = $active.siblings(); var rndNum = Math.floor(Math.random() * $sibs.length ); var $next = $( $sibs[ rndNum ] ); $active.addClass('last-active'); $next.css({opacity: 0.0}) .addClass('active') .animate({opacity: 1.0}, 1000, function() { $active.removeClass('active last-active'); }); } $(function() { setInterval( "slideSwitch()", 5000 ); }); </script> <div id="content"> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut et mi magna, non sodales augue. Aliquam porta, risus id euismod egestas, lacus velit tincidunt quam, in sodales enim urna et dui. Duis interdum libero at dolor aliquet nec ultricies lacus interdum. Proin non consequat erat. Sed varius, libero id bibendum aliquam, arcu augue ultrices dui, placerat laoreet dolor nibh et nunc. Ut dui magna, semper quis sagittis sed, faucibus ac ante. Nulla imperdiet tempor orci vel varius. Aliquam porta placerat tortor, non dignissim libero elementum ac. Mauris in magna in ligula tincidunt viverra non vestibulum elit. Etiam hendrerit leo non mauris consectetur nec blandit orci auctor. Sed felis felis, facilisis nec posuere ac, accumsan nec est. Aenean sapien magna, commodo ut sagittis gravida, varius eget magna. Etiam ligula sem, faucibus eget tristique quis, hendrerit vitae justo. Maecenas fermentum sollicitudin sodales. Ut non aliquet neque. Mauris sagittis gravida purus nec consequat. Sed in quam leo.</p> <p>Phasellus quis orci ligula. Curabitur quis neque ultricies ante adipiscing vehicula. Morbi blandit, purus dictum pharetra feugiat, magna ipsum lobortis velit, eu blandit turpis ipsum at arcu. Vestibulum non mauris felis. Curabitur viverra arcu eget tortor pellentesque a laoreet mauris mattis. Sed et ligula tortor, eget laoreet mauris. Integer nunc enim, tristique eu tempus at, vehicula non enim. Maecenas sed porttitor lorem. Nam ultricies, nisl rutrum vulputate facilisis, enim purus commodo elit, sed pretium tortor ligula quis lectus. Aliquam erat volutpat. Duis euismod placerat nisi ac adipiscing. Fusce varius pellentesque sapien, eu placerat neque mattis pharetra. Aenean mollis neque sed mi pretium sodales. Aenean fringilla rhoncus tincidunt. Sed vel odio et sem condimentum iaculis.</p> <p>In mollis posuere tortor, at euismod sem fermentum nec. Aenean euismod, neque sit amet tincidunt mattis, risus nunc bibendum mi, non malesuada purus eros ut urna. Donec accumsan sagittis nibh, auctor ultricies massa tincidunt et. Phasellus quam nunc, pretium eu dictum at, porttitor a dolor. Etiam nec odio felis, nec aliquam nibh. Sed eleifend, odio faucibus venenatis vulputate, orci neque mattis augue, sed consectetur tellus lorem a lacus. Aliquam diam ipsum, consectetur et tempus non, suscipit nec orci. Donec dignissim lobortis gravida. Integer ornare diam vitae elit tristique a auctor lorem condimentum. Sed sapien nisi, ullamcorper at gravida vitae, mollis vel mauris. In non tortor ante, nec scelerisque elit. Etiam tristique, magna quis tristique ultrices, nunc tellus tempus lorem, a suscipit tortor magna at dui.</p> </div> </div> </body> </html> Code: /* Index Markup */ * { padding: 0px; margin: 0px; } body { background-color: #ffffff; margin:0; padding:0; border:0; min-width:700px; font-size:100%; } #wrap { width:750px; margin:0 auto; padding-top: 20px; } #header {width: 200px; padding-left: 0px;} #nav { margin:0 auto; font:Palatino; } #nav_bar { width: 100%; float: left; margin: 0 0 3em 0; padding: 0; list-style: none; font:Palatino; padding-left: 190px; } #nav_bar li { float: left;} #nav_bar li a { display: block; padding: 8px 15px; text-decoration: none; font-weight: bold; color: #069; border-right: 1px dotted #000; font:Palatino; } #nav_bar li b {display: block; padding: 8px 15px; text-decoration: none; font-weight: bold; color: #069; border-right: 1px dotted #000; font:Palatino; border-left: 1px dotted #000; } #nav_bar a:hover {color: #000;} #nav_bar b:hover {color: #000;} #nav_bar:hover {color: #000;} h2 { font:Palatino; font-size:15px; text-decoration: none; } /*** Slideshow positioning **/ #slideshow { position:relative; width: 570px; height: 400px; padding-bottom: 10px; } #slideshow IMG { position:absolute; top:55px; right: -40px; z-index:10; } #slideshow IMG.active { z-index:10; opacity:1.0; } #slideshow IMG.last-active { z-index:9; } #content { position: relative; width: 670px; padding-top: 20px; font:Palatino; font-size:12px; color: #1e54ef; padding-bottom: 20px; padding-left: 30px; } #photo { } #index_style { position:absolute; left:50px; top:150px;} #index_button { position:absolute; left:750px; top:400px; } #index_button a { font-size: 30px; font:Palatino; } #index_button a:hover {color: #1e54ef} #index_button a:link {text-decoration: none; font-family:Georgia,serif;} Hi All, I am new to this forum and to CSS and Web Development as a whole. I am a notch up from "total n00b". I can't post links so the website is www (dot) authenticimpressions (dot) com I built this site for my wife using Wordpress, some plugins, and some themes I bought. The Galleries all look great in Chrome and Firefox on PC, and in Firefox and Safari on Mac. But in IE7 on PC, I get a 4 or 5px white border on the bottom and the left in each of the galleries. I've played and played with the stylesheets and cannot figure this one out. What other information should I post or provide to get some help? Thanks in advance, I really appreciate it. Hi, okay I am working on a website for a friend, and it is peak-performance.biz I want the background image to fill up the page and be unscrollable. I made it work and look very good in chrome but it only takes up half the page in firefox. I was wondering if anyone have any ideas how to fix this. Thanks for your advice in advance. I have used html{ background-color:#000000; background-image:url(images/background.jpg); background-repeat:no-repeat; background-size:1300px; height:1000px; background-attachment:fixed; } and html{ background-color:#000000; background-image:url(images/background.jpg); background-repeat:no-repeat; background-size:100%; background-attachment:fixed; } Hello all, I have bumped into some strange problems. Chrome seems to be viewing my fonts alot thinner/smaller than Safari and Firefox. Is there a method to create consistency and ignoring the webbrowsers standards? Its creating a mess, specially with my text which is using text-shadow. The blur looks like disaster. Thanks in advance. Chrome and Firefox aren't styling any of the span elements I have-in IE they load fine. For example the css..I'll check back in this book I have and online to see if I can find the issue. I appreciate any help. For example heres a span I have. Code: .title {background-color:CCCCCC; font-family:Verdana; margin:0px; padding:0px; border:2px double blue; height:70px; width:200px; } the html.. Code: <div id="menu"> <span class="button"> <a href="www.google.com">home</a> </span> <span class="button"> <a href="www.google.com">home</a> </span> </div> <div id="content"> <div id="sidebar"> <p>sidebar to the right</p> <h2>text</h2> </div> <span class="title"> <h2>Title of something</h2> </span> <p>some text sdfdsdsfdsf</p> </div> It may be that the divs and spans are conflicting because of their properties or that they are not properly nested or named..? Here's my whole css document. Code: #container {margin-left:25%; margin-right:25%; } #header {text-align:center; background-color:grey; border:solid; border-width:2px; border-color:black; margin-bottom:20px; } #menu {background-color:white; border:solid; border-color:black; border-width:1px; font-family:Verdana; padding:8px; margin:0px; } .button {background-color:#FFFFCC; margin:3px; width:90px; border:solid; padding:2px; border-width:1px; border-color:black; text-decoration:none; color:grey; text-align:center; font-family:Verdana; font-size:small; } #content{background-color:white; font-family:Verdana; padding-left:20px; padding-top:0px; padding-bottom:0px; border:1px solid grey; margin-right:0px; margin-top:20px; height:900px; } .title {background-color:#CCCCCC; font-family:Verdana; border:2px double #000000; height:70px; width:200px; } #footer{align:center; background-color:grey;font-size:.60em;} #sidebar {float:right; width:150px; height:900px; background-color:white; border-left:1px double grey; margin-left:0px; padding:8px; } I do relatively simple websites and I did a simple one for a client of mine and have a problem selecting text in a column. The website is, jeffwalterssafety.com I can't seem to even touch the text. It acts like an "image" when looking at it in Firefox/Chrome but I can select it in IE 7. Be gentle in the site's criticism... Also let me know if it's necessary to have my CSS file here. Thanks Hey guys, I'm in need of some help here. Okay, so. My site looks the way I want so far on google chrome and safari (mac). And right now I'm at the stage of getting it to display like the two. If anyone who decides to help doesn't have access to certain browsers, I'll further explain, but I think it's easiest said to see for yourself. Right now I'm focusing on ie6, ie7, ff3. The markup in some areas is whacky, I know, but I decided to pick up where I left off on this project (which I first began building awhile ago) instead of starting completely over with a good template. http://thecheckoutplace.com/compute...eOneNetbook.php If anyone can offer a hand, it means a lot. Cheers guys. |