CSS - Problems With Multi-box Layout
I want to make a liquid layout with 4 boxes in this shape:
[ 100% ] [50%][50%] [ 100% ] I have tried several solutions, but run into troubble with the bottom box all the time. This is what the problem looks like: http://www.student.uib.no/~st11920/...page_split.html If I comment out the bottom box the two middle boxes look fine: http://www.student.uib.no/~st11920/...outcomment.html Any help would be most welcome. Cheers Jan Terje Bakken / TankBoy Similar TutorialsI'm having a problem where IE is breaking my layout dropping my third column to the bottom, every other browser handles it fine. here's a link http://www.uww.edu/npa/crisis/intltravel/ thank you in advance. Hi I have sucessfully created a 4 column 2 row layout which works fine in IE, FireFox & Opera. The problem i have is that search1 needs to span the width of search and vote as opposed to just the width of search. (I have included the html allowing you to see what i mean). Any ideas on how i would achieve this? - its driving me insane <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <style> div.container{position:absolute;left:0px;top:283px; width:751px; background-color:#CC3300; } div.panelmain { float:left; width: 191px; background-color:#999999; } div.panelmain1 {float:left; width: 191px; background-color:#0000FF; } div.panelmain2 {float:right;width: 170px; background-color:#CCFFFF; } #featured{ width:170px; border-top-width: 0px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; border-color:a6b7db; float:left ; border-right: 1px solid #cccccc; border-bottom: 1px solid #cccccc; } #vote{ width:191.3px; border-top-width: 0px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; border-color:a6b7db; float:left; border-right: 1px solid #cccccc; border-bottom: 1px solid #cccccc; } #vote1{ width:191.3px; border-top-width: 0px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; border-color:a6b7db; clear:both; border-right: 1px solid #cccccc; border-bottom: 1px solid #cccccc; } #members{ width:191.3px; border-top-width: 0px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; border-color:a6b7db; float:left; border-right: 1px solid #cccccc; border-bottom: 1px solid #cccccc; } #members1{ width:191.3px; border-top-width: 0px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; border-color:a6b7db; clear:both; border-right: 1px solid #cccccc; border-bottom: 1px solid #cccccc; } #search{ width:191.3px; border-top-width: 0px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; border-color:a6b7db; float:left; border-right: 1px solid #cccccc; border-bottom: 1px solid #cccccc; } #search1{ width:191.3px; border-top-width: 0px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; border-color:a6b7db; clear:both; border-right: 1px solid #cccccc; border-bottom: 1px solid #cccccc; } #content{ float: left; width: 55%; } </style> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body> <div class="container"> <div class="panelmain"> <div id="members"> members</div> <div id="members1"> <p>members1sssssssssssssssssss</p> <p>s</p> <p>ss</p> </div> </div> <div class="panelmain1"> <div id="search"> <p>Search</p> <p>d</p> <p>d</p> <p>dd</p> </div> <div id="search1"> search1 <p>s</p> <p>s</p> <p>d</p> <p>d</p> <p>ds</p> <p>s</p> <p>s</p> </div> </div> <div class="panelmain"> <div id="vote"> <p>Vote</p> <p>ss</p> <p>s</p> <p>ss</p> </div> </div> <div class="panelmain2"> <div id="featured"> <p>featured</p> <p>ss</p> <p>sss</p> <p>ss</p> <p>sss</p> <p>ss</p> <p>ss</p> <p>s</p> <p>s</p> <p>s</p> <p>s</p> <p>s</p> <p>s</p> </div> </div> </body> </html> Hi, I have a multi-column layout where I want every column to always be the same height. Any one of the columns may be the longest on any given page, so the other columns have to automatically adjust to match that height. Usually I'd just use the faux column technique where you repeat a background image, but that won't work because of two elements on this page: 1. each column has a border all the way around it. 2. one column resizes with the page. I've read the articles on liquid layouts with faux columns, but as far as I can tell those techniques won't work if your columns have borders. Does anyone know any technique that would work here? Thanks. I am working on the new home page which is based on a template. The left sideColumn is working fine, however I am having a few problems with the mainColumn layout. Here is a static image to show what I want it to look like Here are the problems I am having: 1) The #scroll box is place where I want it in IE but in foxfire it is right up against the left side of the #sideColumn partially hidden. There will be text that scrolls into this box and stops. I haven't started on the part yet - in case that makes a difference. Not my choice, but that is what the bosses want. 2) I want the image centered horizontal within the #mainColumn. Here is what I have for the css: #home img { margin: 5px auto 5px auto; } which I thought would do the trick, but it's not. 3) I want the p text to have a 40px margin on the right and left side like the .large does. Here is what I have for the css: #home p, .large { margin: auto 40px auto 40px; } It works for the .large (Welcome to Vitalograph), but not for the text below it. At one point I had it working, but after addtional changes fixing other problems, now it doesn't and I can't figure out why. Here is the xhtml starting at the 2 column part (wrapper): Code: <!--begin wrapper--> <div id="wrapper"> <!--begin side column --> <div id="sideColumn"> <span class="category">Products</span> <ul> <li><a href="/products/spirometers.html">Spirometers</a></li> <li><a href="/products/clinical_trials.html">Clinical Trials</a></li> <li><a href="/products/asthma_copd.html">Asthma & COPD</a></li> <li><a href="/products/smoking_cessation.html">Smoking Cessation</a></li> <li><a href="/products/resuscitaion.html">Resuscitation</a></li> </ul> <span class="category">Resources</span> <ul> <li><a href="/resources/contact_us.html">Customer Support</a></li> <li><a href="/resources/training_services.html">Training & Services</a></li> <li><a href="/resources/exhibitions.html">Exhibitions</a></li> <li><a href="/resources/newsletters.html">Newsletters</a></li> <li><a href="/resources/downloads.html">Downloads</a></li> <li><a href="/resources/useful_links.html">Useful Links</a></li> <li><a href="/resources/industry_information.html">Industry Information</a></li> <li><a href="/resources/industry_information.html">Sitemap</a></li> </ul> </div> <!--end of side column --> <!--begin main column --> <div id="mainColumn"> <!-- InstanceBeginEditable name="Main_Section" --> <div id="home"> <div id="scroll"><span>scrolling news will go hear and stop</span></div> <img src="/images/boys_bubbles.gif" width="485" height="333" alt="boys and bubbles" /> <span class="large">Welcome to Vitalograph</span> <p>Vitalgraph offers a wide range of spirometers along with other asthma management equipment with over 40 years experience. From simple hand-held units to sophisticated Windows based spirometry systems, we have it all. Check out our full line of respiratory equipment under the product category.</p> <p><a href="/about_us/about_us.html">more about us...</a></p> </div> <!-- InstanceEndEditable --> </div> <!--end of main column --> </div> <!--end of wrapper--> Here is the vitalograph_master.css: Code: body { font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 12px; text-align: center; background-color: #ffffff; color: #515151; margin:0px; padding:10px; } /*page container settings*/ #page { width: 750px; height: 600px; border: 1px solid #5094F9; background-color: #FFFFFF; overflow: hidden; margin: auto; padding: 10px 10px 10px 10px; text-align: left; } /*logo header and tag settings*/ #header { margin: 0; padding-bottom: 5px; width: 450px; height: 36px; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; color: #5094F9; text-align: left; } #header img { vertical-align: -7px; } .tagline { color: #5094F9; font-size: 16; font-style: italic; font-weight: bold; display: inline; clear: both; line-height: 20px; margin-left: 10px; } /*top bar settings*/ #topbar { float: top; height: 20px; background-color: #5094f9; clear: both; padding-left: 10px; text-align: left; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; color: #FFFFFF; font-size: 12px; font-weight: bold; } #topbar a:link, #topbar a:visited { background-color: inherit; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; text-decoration: none; color: #FFFFFF; font-size: 12px; font-weight: bold; } #topbar a:hover, #topbar a:active { background-color: #FFFFFF; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; text-decoration: none; color: #5094F9; font-size: 12px; font-weight: bold; } #topbar ul { list-style: none; margin: 0; padding-top: 2px; } #topbar li { display: inline; margin-right: 160px; } /*Main Section two columns under top section*/ #wrapper{ padding: 10px 10px 10px 0px; width: 100%; height: 100%; } #sideColumn { float:left; width:155px; height: 78%; background-color: #5094F9; padding-top: 50px; padding-left:10px; padding-bottom:10px; pading-right: 10px; margin-right: 10px; text-align: left; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; color: #FFFFFF; font-weight: bold; line-height: 20px; } .category { font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; color: #FFFFFF; font-size: 16px; font-weight: bold; letter-spacing: 5px; } #sideColumn a:link, #sideColumn a:visited { background-color: inherit; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; text-decoration: none; color: #FFFFFF; font-size: 12px; font-weight: bold; } #sideColumn a:hover, #sideColumn a:active { background-color: #FFFFFF; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; text-decoration: none; color: #5094F9; font-size: 12px; font-weight: bold; } #sideColumn ul { list-style: none; padding: 15px 0px 15px 10px; margin: 0px; } #mainColumn { padding: 0px; } /*footer*/ .footer { font-family: "Times New Roman", Times, serif; font-size: 9px; color: #999999; } /*text*/ .large { font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; color: #5094F9; font-size: 18px; font-weight: bold; margin-bottom: 15px; } Here is the home.css: Code: /*home page*/ #home { margin: auto; } #home img { margin: 5px auto 5px auto; } #home p, .large { margin: auto 40px auto 40px; } #home a:link, #home a:visited { background-color: inherit; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; text-decoration: none; color: #5094F9; font-size: 12px; font-weight: bold; } #home a:hover, #home a:active { background-color: inherit; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; text-decoration: none; color: #990099; font-size: 12px; font-weight: bold; } #scroll { width: 560px; padding: 5px; background-color: inherit; border: 1px solid #5094F9; margin-bottom: 5px; } Any help or suggestions are greatly appreciated. Resolved. Mods please delete! Thanks. This may be a wordpress issue or it may be an issue with my coding that I've modified in my css/settings for the theme, but I can't get the site to display consistently across all three major browsers (Firefox, IE, Chrome). My site: www(.)cinemasight(.)com For some reason, Firefox is adding a margin (20px maybe?) to the "Content" div. This isn't present in IE and Chrime is adding an image to the background of the "Content" div that isn't present in any of the CSS that I can find. Similarly, in the upper right hand section, with the Facebook, RSS and Twitter links, the Google Search bar is displaying entirely differently on all three browsers. Code posted below: ok i have a problem, i have the layout working as i want perfectly in IE and it looks good :P but it does not work at all in firefox, im a complete newb when it comes to css, havn't' done much work with it at all :P heres my site, it has waht i have so far up on it for you guys to have a look to see waht the problem is www.zombies-ate-my-brain.com heres the jist of it URL all my images on the site are all backgrounds to the css divs, all the content is in its own div and i will be ontop of all the images, but im trying to get it, that as i add more content in teh content div the div with the bar addon bit will just keep repeating, if that makes sence, if you look on my site using IE you will see it works, but if you look using firefox you see it wont, lemme post my code for you.. Code: <!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> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Zombies-Ate-My-Brain.com - Brainless Since 1993</title> <link rel="stylesheet" type="text/css" href="stylesheets/stylesheet.css" title="styles" /> </head> <body> <div id="content_layout"> <div id="texttop"> This Site is a high bandwidth site, Fast connection required.<br/> This site is best viewed at 1024x768.</div> <div id="title"> </div> <div id="bg_interface_top"> </div> <div id="bg_interface_repeat"> <div id="bg_interface_middle"> <div id="text"> <?PHP include("cutenews/show_news.php"); ?> </div> </div> </div> <div id="bg_interface_bottom"> </div> </div> </body> </html> NOW THE CSS SHEET which you can find here >> www.zombies-ate-my-brain.com/stylesheets/stylesheet.css Resolved. Hello all, Its my first post here so you'll have to bear with my ignorance for code! (im just a lowly designer struggling to learn HTML) Heres the site im having problems with http://www.madewithpixels.co.uk ive been hammering away at this over the last two weeks trying to sort out all sorts of cross browser problems... the aim being to get the whole thing rendering exactly the same on all browsers / all platforms... Ive sorted the cross browser issues... but am having problems with layout of the page on MAC Internet Explorer 5.2 (everything is a-ok in safari) The problem is (for those of you without access to a mac) the main navigation links in the top frame. they are aligned perfectly well on my PC in all browsers... but in MAC IE5.2 the alignment is all over the place.... I was originally using <span>'s to set the line spacing / padding of each line, but to ensure cross browser support I had to swith to using <DIV>'s inside a .container style in the CSS.... i am positive that this is where the problem lies as the text lined up perfectly on the MAC before i switched from <SPAN> to <DIV>'s ANY help at all here would be greatly appreciated... i am soooo close yet so very far away! thanks Mike **edit** ive just been playing around with this for an hour and found that changing the text size within IE MAC to say 90% and then changing it back to 100% seems to correct the problem.... curious, now im even more baffled than before! hey guys, I am learning how to design a website right now, and to get started I take layouts that still exists and replacet them. I want to create a layout such such as that: http://www.girlfriendnyc.com My code looks like that Code: #global { background: none repeat ,#262626; display: block; height: 99px; left: 0; position: absolute; top: 0; width: 100%; } #global .nav-wrapper { background-color: #222222; height: 99px; margin: auto; width: 1200px; } Code: <html> <head> <link rel="stylesheet" type="text/css" href="anna.css" /> </head> <body> <div id="global"> <div class="nav-wrapper"> <ul> <li> <h2> Contact us </h2> </li> <li> <h2> Follow us </h2> </li> <li> <h2> Read our blog </h2> </li> </ul> <ul> <li> <h2> Learn about us </h2> </li> <li> <h2> See our portfolio</h2> </li> </ul> </div> </div> <body> </html> My Problem is why do these 2 Boxes do not fit together? greetings and thx in advance Can anyone tell me why www.thecharliepoweragency.com wont auto stretch in firefox, it also has layout problems in ie5mac and safari. This picture((URL address blocked: See forum rules) ) will show you the page layout at the moment, Here you can see a lot of lines in paint i did. Edit2: The picture damaged page formatting so here it is: img206.imageshack.us/img206/107/57260190dy8.png The Pink lines are what i ideally want to happen, however, my "posts" are overlapping into my right hand navigations (the red dotted lines). I fixed this with a z-index for now but i really need a solution to this Id prefer it if i had some kind of Div tag which Held the two content areas seperate (as posts will wrap around the navigations) this is displayed in the orange boxes. If anyone could offer some help id greatly appreciate it its just annoying me .... and ive only just learnt CSS layouts so i can only fix so much Code was a bit long, but as i cant Link to it for some reason ill spam it he Code: body{ background-color: #1c1c1c; padding: 0; margin:0; color: #A2E700; } #topBar{ height:50px; background-color: #666666; color: #A2E700; overflow: hidden; border-bottom: 5px solid #B4E67F; background-image: url(topBarBG.png); } .topNav{ margin: 0; padding: 0; height: 100%; background-color: #666666; float: left; } .topNav img{width: 20px; height: 20px; text-align: center; border: 0; margin: 0;} .topNav li a{ float: left; color: #FFFFFF; padding: 0px 10px 0px 10px; text-align: center; border-top: 5px solid #EEEEEE; height: 100%; text-decoration: none; border-right: 1px solid #EEEEEE; background-color: #90D900; } .topNav li{display: inline;} .topNav li a:hover{ background-color: #B4E67F; } #IntroBox{ width: 100%; height: 200px; background-color: #EEEEEE; border-bottom: 2px solid #B4E67F; } .IntroHeader{position: absolute; text-indent: 150px; top:85px; font:normal 400% georgia,Verdana,Arial,Sans-serif;} #contentArea{ width: 100%; } #rightIntro{ float:right; width: 380px; height: 100%; background: url(needles.jpg); border-width: 0px 0px 0px 5px; border-color: #B4E67F; border-style: solid; position: relative; } #leftIntro{color: #90D900;} #content{position: relative;} #MenuRR, #MenuRL{ z-index: 2; position: relative; float:right; width: 190px; height:250px; border-width: 0px 0px 5px 1px; border-color: #B4E67F; border-style: solid; text-align: center; } #MenuRL{background-color: #EEEEEE;} #MenuRR{background-color: #EEEEEE;} #MenuRR img{padding: 5px 0px;} #MenuRL ul { list-style: none; border:0; padding:0; margin:0; } #MenuRL li { margin: 0; } #MenuRL li a { display: block; padding: 0 5 0 0; background-color: #B4E67F; text-decoration: none; color: #666666; border-bottom: 1px dashed #90D900; font: normal 75% georgia,Verdana,Arial,Sans-serif; width: 190px; height: 20px; text-align: center; } #MenuRL li a:hover{ background-color: #90D900; letter-spacing: 4px; } #MenuRL h4, #MenuRR h4{text-align: center; color: #EEEEEE; background-color: #666666; width: 100%; padding:0; margin: 0;} .post{z-index: 1; border-bottom: 1px dashed #CCCCCC; position:relative;} .post h3 { margin: 0; padding:0; color: #A7B78D; font: 24pt fantasy; } .postContent{color:#A2E700;} .postInfo{padding: 0; margin:0;color: #336699; top:-15px; left:10px; position:relative; font: 75% georgia;} #footer{clear:both; width: 100% height: 25px; background-color: #666666; text-align:center; color: #CCCCCC;} and HTML: 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" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" title="main" href="style.css" /> <link rel="alternate stylesheet" type="text/css" href="alternate.css" title="other" /> <title>test Page 2</title> </head> <body> <div id="topBar"> <ul class="topNav"> <li><a href="#"><img src="home.png"/><br>Home</a></li> <li><a href="#"><img src="about.png"/><br>About</a></li> <li><a href="#"><img src="email.png"/><br>Contact Us</a></li> </ul> </div> <div id="IntroBox"> <div id="rightIntro"> </div> <div id="leftIntro"> <!-- next tables in here (in div form ;))--> <span class="IntroHeader">Welcome!</span> <img src="laptop.png" />To the portfolio for XXXXXXXXX, A Bsc Computing student at Portmouth. </div> </div> <!--END ALL TOP STUFF - ABOVE = INTRO, BELOW = Content--> <div id="contentArea"> <div id="MenuRR"> <h4 class="navTitle">:: Linkpad ::</h4> <a href="http://www.spreadfirefox.com/?q=affiliates&id=0&t=219"><img border="0" alt="Firefox 2" title="Firefox 2" src="http://sfx-images.mozilla.org/affiliates/Buttons/firefox2/ff2b80x15.gif"/></a> <br /><img src="w3c_xhtml11_valid.gif" /> <h4 class="navTitle">:: Poll Booth ::</h4> Stuff </div> <div id="MenuRL"> <h4 class="navTitle">:: Navigation :: </h4> <ul> <li><a href="#">Home</a></li> <li><a href="#">About</a></li> <li><a href="#">Portfolio</a></li> <li><a href="#">Forum</a></li> <li><a href="#">Contact</a></li> </ul> </div> </div> <div id="content"> <div class="post"> <h3>Automated, Anyone?</h3><span class="postInfo">Posted By: Rich on 01/12/07 in Category: General</span> <div class="postContent"> Welcome to the first proper post on my portfolio, this system will all be automated through a php and SQL backend. At the moment this text is just a placeholder for whats to come. As are half the ****ty graphics that are yet to be replaced! </div> </div> <div class="post"> <h3>Random</h3><span class="postInfo">Posted By: Rich on 29/11/07 in Category: General</span> <div class="postContent"> Blah Blah Blah!Blah Blah Blah!Blah Blah Blah!Blah Blah Blah!Blah Blah Blah!Blah Blah Blah!Blah Blah Blah!Blah Blah Blah!Blah Blah Blah!Blah Blah Blah! <br> <br> lollololo lollololo lollololo lollololo lollololo lollololo lollololo lollololo lollololo lollololo lollololo lollololo lollololo lollololo lollololo lollololo lollololo lollololo lollololo lollololo lollololo lollololo lollololo lollololo lollololo lollololo lollololo lollololo lollololo lollololo lollololo lollololo lollololo <br><br> </div> </div> </div> <div id="footer"> <img src="info.png" />Design by XXXXXXXXXXX. Optimized for 1024 x 768 or above resolutions operating in 32bit colour and above. </div> </body> </html> Footnotes: it's not 100% valid XHTML, and i know this... but from experience i know it doesnt have to be 100% valid for the CSS to work fully... as long as its Hi there I have done my first CSS based design, it has bassed w3c validation both for the html and css. It looks exactly how I want in firefox, but in IE7 it is all messed up. I would be really grateful if someone could take a look and let me know where I am going wrong. There are two issues in IE7 1. Content seems to go under the footer and lose the correct background. 2. Horizontal navigation menu button look weird. You can view the page at 82(dot)147(dot)22(dot)10/~ifasouth/ as I have not redireceted DNS yet Hey everyone, first time poster here as I just found this site. Hope someone can help me fix my css problems I'm having on the site. http://intlops.orbisblue.com/testing2/ What I'm looking to do is to have the IOPS logo sitting just ontop of the content box centered. Then the two pictures, Americas and Africa within the content box spaced evenly side by side with the text below them that is bulleted. Any help / tips/ corrections would be greatly useful and appreciated. Thank you. Code: <!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> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>International Operational Protection Services</title> <link rel="stylesheet" href="styles.css" type="text/css" media="all" /> </head> <body> <div id="floater"></div> <div id="centered"> <div id="content"> <img src="logoFullWhiteSmall.png" /> <div id="left"> <img src="americas.png" /> <ul> <li>Critical Infrastructure Program (CIP)</li> <li>Maritime Security Consulting</li> <li>Training</li> </ul> </div> <div id="right"> <img src="africa.png" /> <ul> <li>Anti-Piracy / Maritime Security</li> <li>Coastal Patrol</li> <li>Training</li> </ul> </div> </div> </div> <div id="bottom"> <p> 2011 C International Operational Protection Services </p> </div> </body> </html> Code: html, body { margin:0; padding:0; height:100%; } body { background:url('page_bg.jpg') 50% 50% no-repeat #4a4a4a; font-family:Georgia, Times, serifs; color: #FFF; } #floater { position:relative; float:left; height:50%; margin-bottom:-250px; width:1px; } #centered { position:relative; clear:left; height:500px; width:80%; max-width:800px; min-width:400px; margin:0 auto; background:url('SiteSelectorMap.png') no-repeat #4a4a4a; border:1px solid #e9ab59; -webkit-border-radius:8px; -moz-border-radius:8px; border-radius:8px; } #bottom { position:absolute; bottom:0; right:0; } #content { position:absolute; left:0; right:0; top:0; bottom:0; overflow:auto; height:460px; padding:10px; margin:10px; display:block; margin-left: auto; margin-right: auto; } #bottom { padding:10px; font-size:0.7em; color:#666; } #left { width:200px; float:left; padding-left:5px; } #right { width:400px; float:right; padding-left:5px; } Hello. I am 2 problems with my site. In firefox everything is ok in IE6 & IE 7 is is broken. Here are the problems. 1. The search bar. It should look like this(Firefox): URL But in IE it looks like this: URL The HTML code is: Code: <div class="search_menu_banner"> <div class="search_background"> <div class="searchname">Search</div> <form id="searchform" method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>"> <div class="searchbox"> <label> </form> <input type="text" class="searchtextbox" name="s" id="searchtextbox" /> </label> </div> <div class="searchbox"> <input type="image" style="float: left; display:inline; position:relative;" src="<?php bloginfo('template_url'); ?>/images/go.png" alt="Search" /> </form> </div> And the CSS: Code: .search_menu_banner { margin: 0px; padding: 0px; float: left; height: 38px; width: 1004px; } .search_background { background-image: url(images/search.png); background-repeat: no-repeat; padding: 0px; float: left; height: 38px; width: 363px; margin-top: 0px; margin-right: 74px; margin-bottom: 0px; margin-left: 25px; } .searchname { font-family: Arial; font-size: 12px; font-weight: bold; color: #9a2500; text-decoration: none; float: left; height: 20px; padding-top: 12px; padding-right: 8px; padding-bottom: 0px; padding-left: 50px; margin: 0px; } .searchtextbox { font-family: Arial; font-size: 12px; font-weight: normal; color: #333333; text-decoration: none; margin: 0px; padding: 0px; float: left; height: 19px; width: 200px; border: 1px solid #CCCCCC; } .searchtextbox:hover { font-family: Arial; font-size: 12px; font-weight: normal; color: #333333; text-decoration: none; margin: 0px; padding: 0px; float: left; height: 19px; width: 200px; border: 1px solid #999999; } #searchform { margin: 0px; padding: 0px; overflow: hidden; } .searchbox { font-family: Arial; font-size: 12px; font-weight: bold; color: #9a2500; text-decoration: none; float: left; height: 20px; padding-top: 8px; padding-right: 8px; padding-bottom: 0px; padding-left: 0px; margin: 0px; } And the second problem involves multiple column lists. In FF it looks like this: URL But in IE it only shows the last column: URL The HTML for these is: Code: <ul> <li class="col1"><b>Ale Noastre</b></li> <li class="col1"><a href="http://viatadestudent.com/category/video/">Video</a></li> <li class="col1"><a href="http://viatadestudent.com/category/poze/">Poze</a></li> <li class="col1"><a href="http://viatadestudent.com/category/articole/">Articole</a></li> <li class="col1"><a href="http://viatadestudent.com/upload-2/">Upload</a></li> <li class="col2 coltopper"><b>Compania</b></li> <li class="col2"><a href="http://viatadestudent.com/despre-noi/">Despre Noi</a></li> <li class="col2"><a href="#">Advertising</a></li> <li class="col2"><a href="#">Termeni</a></li> <li class="col2"><a href="http://viatadestudent.com/contact/">Contact</a></li> <li class="col3 coltopper"><b>Mai Multe</b></li> <li class="col3"><a href="#">Concurs</a></li> <li class="col3"><a href="#">Anunturi</a></li> <li class="col3"><a href="http://feeds.feedburner.com/vds" target="_blank">Abonament</a></li> <li class="col3"><a href="#">Evenimente</a></li> <li class="col4 coltopper"><b>Coloana4</b></li> <li class="col4"><a href="#">In Curand</a></li> <li class="col4"><a href="#">In Curand</a></li> <li class="col4"><a href="#">In Curand</a></li> <li class="col4"><a href="#">In Curand</a></li> <li class="col5 coltopper"><b>Prieteni</b></li> <li class="col5"><a href="http://www.incomplex.ro/" target="_blank">In Complex</a></li> <li class="col5"><a href="http://www.wnmag.net/" target="_blank">Web News Magazine</a></li> <li class="col5"><a href="http://www.incomplex.ro/" target="_blank">In Complex</a></li> <li class="col5"><a href="http://www.incomplex.ro/" target="_blank">In Complex</a></li> <li class="col6 coltopper"><b>Parteneri</b></li> <li class="col6"><a href="http://www.cadrix.ro/" target="_blank">Cadrix Media</a></li> <li class="col6"><a href="http://www.tecvortex.com/" target="_blank">TecVortex</a></li> <li class="col6"><a href="http://www.cadrix.ro/" target="_blank">Cadrix Media</a></li> <li class="col6"><a href="http://www.cadrix.ro/" target="_blank">Cadrix Media</a></li> </ul> And the CSS: Code: #footer ul { padding: 0px 0px 0px 0px; font-size: 11px; list-style: none; } #footer li { line-height: 1.3em; margin: 0px; padding: 0px 0px 0px 0px; background-repeat: no-repeat; list-style: none; } #footer li.reset { margin-top: -6.5em; } #footer html ul li { position: relative; } #footer li.col1 {margin-left: -35em;} #footer li.col2 {margin-left: -20em;} #footer li.col3 {margin-left: -5em;} #footer li.col4 {margin-left: 10em;} #footer li.col5 {margin-left: 25em;} #footer li.col6 {margin-left: 40em;} #footer li.coltopper {margin-top: -6.5em;} #footer li.a { color: #FFFFFF; text-decoration: none; } #footer li.a:visited { color: #FFFFFF; text-decoration: none; } #footer li.a:hover { text-decoration: underline; } Yo ucan see the problems on the site: http://www.viatadestudent.com Please help. Thanks Hey, I'm new to this board and CSS design in general. I have a question that I couldn't figure out or find anywhere. projecthoods. com/clients/bpa (minus the space before com) (FF) Although I set the div width to 666 (not intentional), why is the background color only appearing in IE? FF doesn't display the bg. I'm assuming it has something to do with the unordered list, because it all works fine if I replace the list with text, however, I can't find a solution because I need the list in there. Any ideas? Thanks guys. CSS Code: body { margin: 0 0 0 4em; padding: 0; background: #384c7f url(images/bg.gif); font-family: Verdana,Arial,"Times New Roman",sans-serif; font-size: small; color:#484848; text-align: justify; } a:link { color: #384c7f; } a:visited { color: #384c7f; } a:hover { color: #6173a3; } ul { margin: 0 0 0 25px; } h3 { font-family: Georgia,"Times New Roman",Verdana,sans-serif; margin: 0 0 0 0; } #header { margin: 0 0 0 0; padding: 0 0 0 0; } #eprnavigation { color: #f2f2f2; background: #4b5f92; margin: 0 0 0 0; padding: 0 0 0 0; width: 666px; } #nav a { color:#f2f2f2; background: #4b5f92; text-decoration: none; font-weight: bold; padding: 5px 5px 5px 5px; } #nav a:hover { color: #f2f2f2; background: #6173a3; padding: 10px 5px 10px 5px; } #nav { list-style: none; color: #f2f2f2; margin: 0 0 0 0; padding: 0 0 0 0; font-size: .8em; background: #4b5f92; width: 666px; } #nav li { float: left; margin: 0 0 0 0; padding: 10px 10px 10px 10px; color: #f2f2f2; background: #4b5f92; } #content { background: #e5e5e5; color:#484848; width: 666px; margin: 0 0 0 0; } #footer { background: #6173a3; height: 15px; width: 656px; color: #f2f2f2; font-size: .7em; padding: 5px 5px; text-align: center; } acronym { color: #4a5c8b; background: #e5e5e5; border-bottom: 1px dotted; cursor: help; } /* Finish Style Formatting */ /* Start Layout Structuring */ #picture { text-align: center; } #footer { clear: both; } #left { padding: 10px; float: left; width: 200px; } #right { padding: 10px; float: right; width: 400px; } /* End Layout Structuring */ Hi everyone, Please take a look at this site: http://174.122.106.156/~johanna/php The layout is fine in FF3.6, Chrome9, IE7 and IE8, but in IE6, the layout is buggered. Can anyone tell me what's wrong and why? Also, what is a good way to debug/troubleshoot layout problems in IE6? Currently, I use IETester to "view" pages in different versions of IE, but I can't poke around with the IE Developer Plugin or FireBug and know exactly what's the offending code. How do you guys find and fix IE6-specific layout issues? Thanks. hi all! so i'm working on a redesign of our corporate site but i'm having a few problems with this menu i'm coding. http://washsq.com/test/index.html if you take a look at this there are 3 problems i can't seem to fix, no matter what i try. 1. why does the padding each menu button extend over the border for the entire div? 2. how can i get the gap between each button to be 0? 3. how can i float this entire menu to the right of the div? i've tried a lot but nothing seems to work. thanks! |