CSS - Small Layout Problem
Ok, I have a two column layout. And I'm trying to get the base of the div stacks to match eachother.
Here's the stripped down code I've been playing with to try to create this behavior. Code: <div style="width:600px;"> <div style="width:50%; background-color:#66C; float:right; text-align:center;"> <img src="#" width="150" height="300" alt="Fake Content"/><br /> </div> <div style="width:50%; height:150px; background-color:#0F0;">1</div> <div style="width:50%; height:30px; background-color:#C96;">2</div> <div style="width:50%; height:50px; background-color:#CCC;">3</div> <div style="clear:both;"></div> </div> So the size of div #1 is always fixed, #2 contains dynamic content, and #3 is fixed content but I would like the height of #3 to stretch to match the right column when needed. For the right column, the content is dynamic, and I would like it to stretch to match the bottom of #3 when needed. So basically, the height of both column will vary and I'd like the shorter of the 2 to stretch. I looked around and experimented a bit with some success, but not exactly the behavior I was looking for. The things that have been giving me the most trouble, is that the left column consists of 3 divs, and the right column is floated. From the left, I could probably get away with removing the content from #1 from it's div and let it hang out in the parent div, but the other two really need their own containers. Also, I don't know how else to put the right column on the right side other than to use a float or absolute position (and absolute won't expand the parent div) because both columns are dynamic... Anyhow, I'm searching for suggestions. One thing that sucks is I know this would be a non issue using tables, but this is a page layout and I'm not about to cave now. Similar TutorialsI've got three issues with my CSS on my page that I cannot seem to figure out. I'm stumped again. Any help would be appreciated. Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-type" content="text/html;charset=iso-8859-1" /> <title></title> <style type="text/css" media="screen"><!-- body { background-color: #fff; background-image: url(../images/top_bar_striped.gif); background-repeat: repeat-x; margin: 0; padding: 0 } hr { color: #ccc; background-color: #ccc; width: 100%; height: 1px; border: 0 } #container { background-color: #fff; margin: 0 auto; width: 950px } #main { margin: 0 auto; padding: 0; width: 938px } #top { margin-bottom: 6px; height: 40px } #nav { height: 40px } #banner { height: 212px; overflow: hidden } #body { background-image: url("../images/body_back.gif"); background-repeat: repeat-y; margin-top: 6px; overflow: hidden } #bodyLeft { background-image: url("../images/body_left_top_back.gif"); background-repeat: no-repeat; padding: 30px 20px 20px; width: 200px; min-height: 100px; float: left } #bodyLeft ul { color: #333; font-size: 12px; font-family: Verdana, Arial, Helvetica, sans-serif; text-align: right; list-style-type: none; margin-left: 0; padding: 0 } #bodyLeft li { margin: 12px 0 } #bodyLeft li a { color: #333; text-decoration: none; padding: 4px 6px } #bodyLeft li a:hover { background-color: #a5a687 } #bodyRight { background-image: url("../images/body_right_top_back.gif"); background-repeat: no-repeat; padding: 40px 30px 30px; width: 632px; min-height: 100px; float: right } #introHeading { color: #32508a; font-size: 16px; font-family: Helvetica, Geneva, Arial, SunSans-Regular, sans-serif; font-weight: bold; line-height: 22px } #introText { color: #333; font-size: 13px; font-family: Verdana, Arial, Helvetica, sans-serif; line-height: 18px } #introPullout { color: #c00; font-size: 16px; font-family: Helvetica, Geneva, Arial, SunSans-Regular, sans-serif; line-height: 28px; background-image: url("../images/quote_back.gif"); background-repeat: no-repeat; margin-bottom: 30px; margin-left: 30px; padding-left: 20px; width: 180px; float: right } #featuredProject { margin-top: 30px; clear: both } #featuredPhoto { margin-right: 20px; margin-bottom: 20px; float: left; border: solid 8px #fff; outline: solid 1px #ccc } #featuredTitle { color: #333; font-size: 14px; font-family: Helvetica, Geneva, Arial, SunSans-Regular, sans-serif; font-weight: bold; background-image: url("../images/featured_arrow.gif"); background-repeat: no-repeat; margin: 0 0 10px; padding: 0 0 0 12px } #featuredText { color: #333; font-size: 11px; font-family: Verdana, Arial, Helvetica, sans-serif; line-height: 16px } #footer { background-image: url("../images/body_btm_back.gif"); background-repeat: no-repeat; height: 24px } #copyright { color: #666; font-size: 9px; font-family: Verdana, Arial, Helvetica, sans-serif; line-height: 14px; text-align: right; padding: 20px } --></style> </head> <body> <div id="container"> <div id="main"> <div id="top"> <div id="nav"></div> </div> <div id="banner"></div> <div id="body"> <div id="bodyLeft"> <ul> <li><a href="#">Link 1</a></li> <li><a href="#">Link 2</a></li> <li><a href="#">Link 3</a></li> <li><a href="#">Link 4</a></li> </ul> </div> <div id="bodyRight"> <div id="introPullout"> <p>Text here...</p> </div> <div id="introHeading"> <p>Text here...</p> </div> <div id="introText"> <p>Text here...</p> </div> <div id="featuredProject"> <img id="featuredPhoto" src="photo.jpg" alt="" width="130" border="0"/> <div id="featuredTitle">FEATURED PROJECT</div> <hr/> <div id="featuredText">Text here...</div> </div> </div> </div> <div id="footer"></div> <div id="copyright"></div> </div> </div> </body> </html> 1. How do I make the background color for the links (bodyLeft li a:hover) in the bodyLeft DIV fill the entire width of the DIV? Minus the padding, of course. 2. The text/DIVs inside the bodyRight DIV appear to have too much space above them in Safari (appear too far down). It looks like IE is correct. Any ideas? 3. The text in DIV featuredTitle is supposed to have an arrow on its left side where the text would normally start. It doesn't appear and/or looks like the featuredPhoto is covering it up. How can I make the arrow (background image) appear in the correct spot and slide the text over to the right? Thank you for all your help! 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 */ I am really racking my brain here I know this will end up being a simple fix but after creating this for a few hours straight, I just can't see it. Ok here's the page and the situation... myspace[dot]com[slash]daggersanddiamonds My links at the top of my page are sliced fine and the links do work (in explorer) but somehow in Firefox, they are being hidden by some invisible layer that extends about 800ish pixels in width that hides the clickability. As you can see, the first half portion of "Add to Friends" works but the rest is disabled, and part of the "Vimeo" link works, but not totally.. and ofcourse the middle links are totally dead to click. My question is, whats hiding these links? Any help is super thanked! Well I got sick of reading through tons of <td> and <tr> tags today so I sat down and tried to write my first CSS script ever. I got the basic idea of it and tweaked it using Firefox/Firebug to get it working great. The problem was I checked back in IE (since most people use it =/...) It looked all messed up and I tried changing a lot of things around and I just got frustrated. Since I am new to this whole thing with CSS, I don't know what to look for or change. I know that the top links are messed up but I will fix those after I get my layout working in both browsers. Can anyone help me out? www.etwcweb.com/ETWC.html Here is the CSS code also: Code: /* Main Part */ body { font-family: Arial, Helvetica, sans-serif; background: #333333 url(Images/mainbacknew.png) repeat-y; font-size: 14px; margin: 0px; } h1 { font-size: 115% font-weight: bold; color: #000000; } p, ol, ul { line-height: 145% } a { color: #FFFFFF; font-weight: bold; text-decoration: none; } a:hover { color: #CCCCCC; font-weight: bold; text-decoration: none; } ul { list-style-image:none; list-style-position:outside; list-style-type:none; margin-left:0pt; padding-left:0pt; } ul li { list-style: url(Images/bluearrow.png); padding-left:15px; } img { border:medium none; } img.left { float:left; margin:5px 9px 0pt 0pt; } img.right { float:right; margin:5px 9px 0pt 0pt; } hr { display:none; } /* Floating part of Page */ #main_content { width: 800px; margin: 0pt auto; background: url(Images/bg_content.jpg) repeat; } #main_content a { color: #000000; text-decoration: underline; } #main_content a:hover { color: #666666; } /* The Top Picture */ #top_area { background: url(Images/CSSHeader.png); height: 433px; width: 100%; } #top_area li { display: block; } #top_area a { color: #FFFFFF; display: block; float: left; padding: 40px 20px 0pt; text-decoration: none; } /* Search Form */ .search { float: right; padding-right: 20px; margin-top: 50px; margin-bottom: 50px; } .search h1 { color: #FFFFFF; font-size: 150%; } /* Top Links */ #main_links { /* background-color: #000000; opacity: 0.7; */ width: 800px; margin: 0pt auto; } #main_links ul { list-style-image: none; list-style-position: outside; list-style-type: none; margin-left: 0pt; padding-left: 0pt; } /* Right Side of Floating Page */ #stories { background: transparent url(Images/bg_content.jpg) repeat; width: 535px; padding: 30px; float: right; margin: 0pt auto; } #stories h2 { padding-left: 20px; padding-top: 15px; } /* Left Side */ #left_bar { background: transparent url(Images/bg_content.jpg) repeat; float: left; width: 205px; margin: 0pt auto; } .left { padding-right: 10px; padding-top: 0px; } .left_list { padding: 20px; } .left_list ul li { border-top: 1px solid #CCCCCC; padding: 10px 15px; } #left_bar h1 { background: url(Images/LeftHeaders.png) repeat-x; padding-left: 20px; padding-top: 5px; color: #FFFFFF; } /* Message */ #top_footer { width: 800px; margin: 0pt auto; background-color: #666666; color: #FFFFFF; font-size: 90%; font-weight: bold; padding-top: 4px; padding-bottom: 4px; text-align: center; line-height: 150%; } /* Bottom Links */ #links { width: 800px; margin: 0pt auto; text-align: center; background: #000000; color: #FFFFFF; font-size: 90%; line-height: 160%; padding-top: 8px; padding-bottom: 3px; } #links a, #links a:hover { text-decoration: none; font-weight: bold; } #links .contact { } #links .contact a, #links .contact a:hover { text-decoration: underline; color: #0000CC; } Thanks in advance guys and sorry if this is already posted here, but my brain is frazzled and I couldn't find it with a quick search or three Hi, I'm new to using forums, and need a little help trying to fix an IE6 problem. My code is all valid, and i'm using xhtml strict. my page works fine in all the main browsers (including ie:7/8) just not ie6. Here is the problem i have. I have a div (links) which is 956px wide and i am floating 5 other divs (1-5) within the links div. The widths and padding for all of the 5 divs equals 956px's But for some reason the last div (lower5) is dropping out of alignment, it looks like ie6 thinks there is not enough room for all of the 5 divs to fit within the outer div. As you can see i have tried using line height:0; and that did not help. Here is my code...........Any idea's HTML: <div id="lower-links"> <div id="lower1"></div> <div id="lower2"></div> <div id="lower3"></div> <div id="lower4"></div> <div id="lower5"></div> </div> CSS: #links { margin:0; padding:0; background-color: #FFFFFF; width: 956px; height:374px; float: right; line-height:0; } #lower1,#lower3 { background-color: #FFFFFF; width: 161px; height:308px; float: left; padding-top:33px; padding-left:15px; padding-right:15px; line-height:0; } #lower2,#lower4 { background-color: #FFFFFF; width: 162px; height:308px; float:left; padding-top:33px; padding-left:15px; padding-right:15px; line-height:0; } #lower5 { background-color: #FFFFFF; width: 160px; height:308px; float: right; padding-top:33px; padding-left:15px; padding-right:15px; line-height:0; } Hi, I've been a close watcher of this forum for some time now, and it's now that I've run into a problem I can't figure out. http://donimusic.com/test/ In the above site (currently in progress), I have made the #ctop and #cbottom divs a height of 2px, yet in IE it displays the height much more and thus creates the image to repeat itself. I can't figure out how to fix this (for view wanted - view in FF). Thank you kindly for your help. Stacey Hi everyone, I am new to the forum. I am new to CSS and just trying to learn as much as i can as i go. I am currently working on a website and having a small problem with my drop down menus. It works great in Firefox, but in Safari when i hover over the drop down, it shifts to the left by a few pixels. I haven't added the IE workaround yet because i wanted to get this sorted before doing that so it won't work in IE yet. I would post a link but can't because i'm too new. I'm new to this, so be kind on my coding The code: Code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Center test - "text-align: center" set for body, "text-align: left" for containing div</title> <style type="text/css" media="screen"> body { margin: 0; padding: 0; text-align: center; } div#container { width: 100%; background-color: #EAFBFF; width:760px; height:220px; text-align: left; margin-top: 0px; margin-right: auto; margin-bottom: 0px; margin-left: auto; border-top-width: thin; border-right-width: thin; border-bottom-width: thin; border-left-width: thin; border-top-style: none; border-right-style: solid; border-bottom-style: none; border-left-style: solid; border-top-color: #0066FF; border-right-color: #0066FF; border-bottom-color: #0066FF; border-left-color: #0066FF; } div#container2 { width: 760px; background-color: #ddd; width:760px; text-align: left; margin-top: 0px; margin-right: auto; margin-bottom: 0px; margin-left: auto; border-top-width: thin; border-right-width: thin; border-bottom-width: thin; border-left-width: thin; border-top-style: none; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: #0033FF; border-right-color: #0033FF; border-bottom-color: #0033FF; border-left-color: #0033FF; padding-top: 15px; padding-bottom: 15px; } div#container3 { width: 760px; background-color: #666666; width:760px; text-align: left; margin-top: 0px; margin-right: auto; margin-bottom: 0px; margin-left: auto; border-top-width: thin; border-right-width: thin; border-bottom-width: thin; border-left-width: thin; border-top-style: none; border-right-style: solid; border-bottom-style: none; border-left-style: solid; border-top-color: #0033FF; border-right-color: #0033FF; border-bottom-color: #0033FF; border-left-color: #0033FF; padding-top: 13px; padding-bottom: 10px; } #container { } #Layer1 { position:absolute; width:760px; height:115px; z-index:1; left: 405px; top: 102px; background-color: #0000FF; overflow: scroll; } #container2 { } #Layer2 { position:relative; width:760px; height:600px; z-index:1; left: 405px; top: 102px; background-color: #0000FF; overflow: scroll; } #container4 { font-family: Arial, Helvetica, sans-serif; width: 500px; font-size: 14px; font-style: normal; color: #DDDDDD; text-decoration: none; text-align: left; margin-right: 110px; margin-left: 125px; background-color: #999999; border: thin solid #999999; padding-left: 15px; } #Layer3 { position:relative; width:200px; height:600px; z-index:1; left: 405px; top: 102px; background-color: #0000FF; overflow: scroll; } .style1 { font-family: Arial, Helvetica, sans-serif; font-size: 10px; } .style2 { font-family: Arial, Helvetica, sans-serif; color: #FFFFFF; } #navbar { font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: #FFFFFF; text-decoration: none; background-color: #666666; margin: 0px; padding: 0px; height: 20px; } #navbar ul { padding: 0; margin: 0; list-style: none; } #navbar li { float: left; text-align: center; background-color: #666666; position: relative; width: 130px; } #navbar li ul{ position: absolute; display: none; text-align: center; line-height: 25px; padding-top: 7px; } #navbar li > ul { top: auto; left: auto; } #navbar li:hover ul { display:block; text-align: center; text-indent: 0; } #content { clear: left; } #mainphoto { padding: 0px; float: right; border: 1px solid #0066FF; margin-top: 20px; margin-right: 30px; margin-bottom: 30px; margin-left: 30px; } #container6 { font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: #000000; text-decoration: none; padding-right: 30px; padding-left: 30px; } .style3 { font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold; color: #000000; } .style4 {color: #000000} .style5 {font-family: Arial, Helvetica, sans-serif; font-size: 10px; color: #FFFFFF; } a { font-size: 12px; color: #FFFFFF; } a:link { text-decoration: none; } a:visited { text-decoration: none; color: #FFFFFF; } a:hover { text-decoration: none; color: #CC6600; } a:active { text-decoration: none; color: #CCCCCC; } </style> </head> <body> <div id="container"> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="(URL address blocked: See forum rules)=7,0,19,0" width="760" height="220"> <param name="movie" value="(URL address blocked: See forum rules)"> <param name="quality" value="high"> <embed src="(URL address blocked: See forum rules)" quality="high" pluginspage="(URL address blocked: See forum rules)" type="application/x-shockwave-flash" width="760" height="220"></embed> </object> </div> <div class="style2" id="container3"> <div id="navbar"> <ul> <li><a href="(URL address blocked: See forum rules)">Home</a></li> <li>About the Office <ul> <li><a href="">Meet Dr. Toolson </a></li> <li><a href="">Meet the Team</a></li> <li><a href="">Office Tour</a></li> <li><a href="">Location</a></li> </ul> </li> <li>About Orthodontics <ul> <li><a href="">Adults</a></li> <li><a href="">Children</a></li> </ul> </li> <li>Life with Braces</li> <li>Contact Us <ul> <li><a href="">Contact Information</a></li> <li><a href="">Request Appointment</a></li> <li><a href="">Location</a></li> </ul> </li> </ul> </div> </div> <div id="container2"> <div id="container4"> <p class="style3">Contact Information Form</p> <form action="(URL address blocked: See forum rules)" method="post" class="style4"> <span class="style1"> <label>Name <br> <input type="text" name="Name"> </label> </span> <span class="style1"> <br> <br> <label>Email <br> <input type="text" name="Email Address"> </label> </span> <span class="style1"> <br> <br> <label>Phone Number <br> <input type="text" name="Phone Number"> </label> </span> <span class="style5"> <br> <br> <label><span class="style4">Description (if neccessary)</span> </label> </span> <span class="style4"> </span> <label><br> <textarea name="Description" rows="5"></textarea> </label> <label> <br><br> <input name="Submit" type="submit" class="style1" value="Submit"> </label> <label> <input name="Reset" type="reset" class="style1" id="Reset" value="Reset"> </label> <input name="recipient" type="hidden" id="recipient" value="jeff@dinorestoration.com"> <input name="redirect" type="hidden" id="redirect" value="(URL address blocked: See forum rules)"> </form> </div> </div> <div class="style1"> Copyright Toolson Orthodontics 2009 </div> <p> </p> </body> </html> im making a panel with rounded corners just 4 divs , topLeft, topRight etc... i have them inside 1 container div that is 80% width, the 4 corner div's are all 50% width and 50% height it's all floated left and theres a <BR> between the top en bottom section but it works only in firefox...in IE they just line up below eachother unless i make the width of them 49%....so wheres the 1 ****ing % ? hey just got a small problem i dont know hw to fix, take a look at my site http://funnyguys99.tripod.com/index.htm if u hover over the links on the left side of the page, the border around them is not even. I want the border to end at the same spot when u hover over them, no matter how many more letters there are in the link. Here's the Css for the left bar, please fix it [CODE] div#menubar { padding-right: 0.5em; padding-left: 0.5em; padding-bottom: 20%; margin: 120px 0px 0px 0px; padding-top: 0.5em; left: 0px; width: 8em; top: 0px; height: auto; position:absolute; background:#FFFFFF; border-right:1px solid black; border-bottom:1px solid black; border-top:1px solid black; } div#menubar ul { padding-left:0px; padding-top:0px; list-style:none; line-height: 85%; margin:0px; } div#menubar a { font-weight: bold; text-decoration: none; font-size:0.6em; padding-right:7.5em; padding-top:0px; padding-bottom:0px; } div#menubar a:link { color: #ffa500; } div#menubar a:visited { color:dark red; } div#menubar a:active { font-weight: normal; } div#menubar a:hover { color: white; background:#999999; border:1px solid black; } [CODE] Building a online store website... If you go here, you can see my problem. My problem is, when the product title is longer than a single line, then it moves the transparent box down. I need the transparent box to move up. If anyone can help, thanks! thanks I'm having trouble with overlapping clickable areas when the line height is set smaller than 1em. i.e. Code: <ul style="line-height:0.825em;font-size:60px;"> <li><a href="#">TOO</a></li> <li><a href="#">BIG?</a></li> <ul> live example at: http://www.beechersmithstackhouse.info/buggs.html the buginess being that when you mouse over the lower portion of "TOO" , the "BIG?" is in it's hover state and is clickable. ... ... setting line-height for each item doesn't work. ... help? Hey Everyone, I would greatly appreciate any help. I created a drop down menu and it works perfectly on all browsers except for Internet Explorer. The ONLY issue is that it centers the text on the drop down. It should be LEFT aligned. If you see the menu on any other browser EXCEPT for Internet Explorer, you can see how its supposed to look. The drop down menu items should just be left aligned. See: ratemodifiers.com/menu.htm Thanks for all help!! Id appreciate all help! thank you so much Hi. I have a "small" problem. I am using NiftyCorners (http://www.html.it/articoli/nifty/index.html) and whenever the corner is added to a nav bar at the top of my page, the link in the nav moves down a bit, making it lower than the rest. I have tried playing with padding, margin, etc but can't seem to get the link position to stay put. I am trying to get my nav bar to work like the one in the below link: http://boardreader.com/pop/films/-/-/90.html?o=90 I am guessing it has to do with the fact that the containing div is blocking it? Any ideas how to prevent the shift in the link position? Code below and Image of problem attached.... Thanks! Code: <table style="width: 100%; height: 100px; padding: 10px;" cellspacing="0"> <tr style="width: 100%;"> <td style="width: 100%"> <script type="text/javascript"></script> <form name="searchform" action="/search.aspx" style="margin: 0pt; display: inline;"> <input name="a" value="f" type="hidden"> <input name="z" value="1" type="hidden"> <div id="logo" style="float:left; top:0px;"> <div> <a href="http://www.x.com" tabindex="-1" class="logoimg"><img src="http://pics.x.com/aw/pics/logos/logo_x45.gif" alt="X" border="0" height="45" width="110" /></a> </div> </div> <div id="mastermenu" style="top:16px; left:128px; border-bottom:solid 1px black; right:15px; position:absolute"> <div> <span><script type="text/javascript">//WRITE LOGIC FOR SIGNIN OR REGISTER HERE</script>Hello! <a href="http://www.x.com/singin/signin.aspx">Sign In</a> or <a href="http://www.x.com/registration/register.aspx">Register</a>.</span></div> <ul id="mastertabslist" style="padding-top:9px;"> <li><a href="../today/today.aspx"><span>Home</span></a></li> <li><a href="../looking/looking.aspx"><span>Community</span></a></li> <li><a href="../search/search.aspx"><span>Search Tools</span></a></li> <li class="help"><a href="#nogo"><span>Help</span></a></li> </ul> </div> <script type="text/javascript"> [SNIP...] </script> <div id="search_main" style="float:right; height: 95px; width:350px; border:solid 1px red; padding-top:5px;"> <div style="float:left; width:50px; height:20px; vertical-align:bottom; margin: 0 5%;">Search in:</div> <div id="div_videos" style="float:left; width:50px; height:20px; padding-left:10px;"><a href="#nogo" id="search_videos" class="" style="cursor:pointer;" onclick="switch_search_videos(this.id);"><span>Videos</span></a></div> <div id="div_images" style="float:left; width:50px; height:20px; background-color:#6699CC;" class="is_menu"><span style="padding-bottom:5px; vertical-align:top; margin-bottom:5px;"><a href="#nogo" class="l_link" id="search_images" style="cursor:pointer;" onclick="switch_search_images(this.id);">Images</a></span></div> <div id="div_profiles" style="float:left; width:50px; height:20px; padding-left:5px;" class="is_menu"><a href="#nogo" class="l_link" id="search_profiles" style="cursor:pointer;" onclick="switch_search_profiles(this.id);"><span>Profiles</span></a></div> <div id="div_forums" style="float:left; width:50px; height:20px; padding-left:5px;" class="is_menu"><a href="#nogo" class="l_link" id="search_forums" style="cursor:pointer;" onclick="switch_search_forums(this.id);"><span>Forums</span></a></div> <div id="search_box" style="background-color:#6699CC; position:relative; width:330px; float:left;"> <span> </span> <input class="query" name="q" type="text"> <input class="submit" value="Search" type="submit"> <a class="adv" href="/index.search.aspx?a=a&x=1">Advanced search</a> <br /> </div> </div> </form> </td> </tr> </table> Please have a look in the attached example: the layout works fine (after some testing) in Mozilla. My problem is that the navigation breaks after the fourth button in IE. If i give a width to the list than the whole navigation breaks after the content at the left side. Anyone with some advice? I am having a layout issue where if the contents of the left and right columns change, then the middle column increases or decreases in height. See www.eyeongames.com This is how it should look, but if you increase the font or the right or left columns expand, then the middle column shifts up or down. I want the columns to be even across the top. Thanks in advance! Here is the style sheet code I am using. Code: a { background: transparent; color: #ff8f02; text-decoration: none; } a:hover { color: #fff; } body { background: #550a04; color: #d7cf00; font-family: Verdana, Arial, Sans-serif; font-size: 12px; margin: 10px; padding: 0; } form { margin: 0; } h1,h2,h3,h4,h5,h6 { margin: 0; padding: 0; } hr { background: #abc; border: 0 none; color: #abc; height: 1px; margin: 0; padding: 0; } img { border: 0 none; } p { margin: 5px 0px 5px 0px; padding: 0; } th,td { padding: 2px; } div.leftColumn { background: transparent; border: 0px solid #555; left: 10px; padding: 5px; position: absolute; top: 400px; width: 240px; /* Incorrect IE5 value */ z-index: 2; voice-family: "\"}\""; voice-family: inherit; width: 218px; } html>body div.leftColumn { width: 218px; } div.leftColumn2 { background: transparent; border: 0px solid #555; left: 10px; padding: 5px; position: absolute; top: 143px; width: 240px; /*Incorrect IE5 value */ z-index: 2; voice-family: "\"}\""; voice-family: inherit; width: 218px; } div.topColumn { background: transparent; border: 0px solid #555; margin: 0px 200px 0px 130px; min-width: 200px; padding: 0px; position: relative; width: 600px; z-index: 3; } div.middleColumn { background: transparent; border: 0px solid #555; margin: 0px 200px 10px 240px; min-width: 200px; padding: 5px; position: relative; top: -105px; width: 480px; z-index: 3; } div.middleColumn2 { background: transparent; border: 0px solid #555; top: 0px; margin: 0px 200px 10px 240px; min-width: 200px; padding: 5px; position: relative; width: 480px; z-index: 3; } div.rightColumn { background: transparent; border: 0px solid #555; padding: 5px; position: relative; top: 43px; margin: 0px 0px 0px 742px; width: 240px; /* Incorrect IE5 value */ z-index: 1; voice-family: "\"}\""; voice-family: inherit; width: 218px; } html>body div.rightColumn { width: 218px; } div.logoBlock { background: transparent; border: 0px solid #555; left: 10px; margin: 0; padding: 0; position: absolute; text-align: left; top: 10px; width: 210px; /* Incorrect IE5 value */ z-index: 2; voice-family: "\"}\""; voice-family: inherit; width: 125px; } html>body div.logoBlock { width: 188px; } div.copyrightBlock { background: transparent; margin: 0px 200px 0px 200px; min-width: 200px; padding: 0; position: relative; text-align: center; width: 500px; z-index: 3; } *.newItem { color: #ff5500; } *.oldItem { color: #fff; } Here is part of the code. There are multiple index.tpl files with similar code only the content changes, such as when browsing the games. header.tpl Code: <div class="logoBlock"><--- LOGO IMAGE ---></div> <div class="topColumn"><--- BANNER IMAGE ---></div> <div class="leftColumn"> <h3>{HEADER_BLOCK1_TITLE}</h3> <hr /> <p><--- LINKS EDITED OUT ---></p> <h3>{HEADER_BLOCK2_TITLE}</h3> <hr /> <p><--- MORE LINKS ---></p> <h3>{HEADER_BLOCK3_TITLE}</h3> <hr /> <form><--- FORM CODE ---></form> <h3>{HEADER_BLOCK4_TITLE}</h3> <hr /> <p>{HEADER_BLOCK4_CONTENT}</p> <!-- <hr /> <p>{BACKEND_RSS}</p> <p>{BACKEND_TXT}</p> --> </div> <div class="rightColumn"> <table style="width: 100%;background: #d7cf00;"> <tr> <td align="center"><h3><font color="#550a04">Game Updates</font></h3></td> </tr> </table> <p align="center">{GAME_RSS}</p> <!-- <p align="center">{GAME_TXT}</p> --> </div> footer.tpl Code: <div class="leftColumn2"> <table style="width: 100%;background: #d7cf00;"> <tr> <td align="center"><h3><font color="#550a04">Latest News</font></h3></td> </tr> </table> <p>{BACKEND_RSS}</p> <!-- <p>{BACKEND_TXT}</p> --> </div> <div class="copyrightBlock"> <p><--- COPYRIGHT ---></p> </div> </body> </html> index.tpl Code: <div class="middleColumn"> <table style="width: 100%;background: #d7cf00;"> <tr> <td align="center"><h3><font color="#550a04">News Headlines</font></h3></td> </tr> </table> </div> <!-- <div class="middleColumn"> <p>{BACKEND_RSS}</p> <p>{BACKEND_TXT}</p> </div> --> <!-- BEGIN NEWS_BLOCK --> <div class="middleColumn"> <h3>{NEWS_SUBJECT}</h3> <h5>{NEWS_INDEX_RELEASE}</h5> <hr /> <p><--- NEWS TEXT ---></p> <p>{NEWS_SOURCE}</p> <hr /> <p><--- COMMENTS ---></p> </div> <!-- END NEWS_BLOCK --> <div class="middleColumn"><p>{NEWS_INDEX_PAGES}</p></div> Hi, I am new to using CSS to do my layout rather then tables. So far its working out well, and I can see the advantages in the long run. I am running into a small snag right now, that I was hoping someone might be able to help me out with. The site is succesfully displayed he http://www.yourbeergear.com/group/stackhouse/news.php But I found whenever the CENTER column is NOT the longest, it goes wonky, as seen he http://www.yourbeergear.com/group/stackhouse2/news.php The code I'm using basically runs like this Code: <!-- Header --> <div id="header"> <div align="center">HEADER</div> <!-- end of Header --></div> <!-- center column --> <div id="c-block"> <div id="c-col"> //CONTENT </div> <!-- end of center column --></div> <!-- FOOTER --> <div id="footer" align="center"> <div align="center>FOOTER</div> </div> <!-- end of FOOTER --> <!-- left column --> <div id="lh-col"><br /> <h4 align="center">Left Column</h4> </div> <!-- end of left column --> <!-- right column --> <div id="rh-col"><br /> <h4 align="center">Right Column</h4> </div> <!-- end of right column --> and the CSS file is as follows Code: /* Layout Stylesheet */ body{ margin: 0; padding:0; background:#808080; color: #333333; } #lh-col{ position:absolute; top:62px; left:0; width:140px; z-index:3; background:#c0c0c0; color: #333333;} #rh-col{ position:absolute; top:62px; right:0; width:140px; z-index:2; background:#c0c0c0; color: #333333;} #c-block { width:100%; z-index:1; background:#c0c0c0; color: #333333; height:80%;} #header{ height:60px; border-bottom:1px solid #000000; width:100%; background:#eeeeee; color: #333333; margin:0; } #c-col{ margin:0 142px 0 142px; position:relative; background:#ffffff; color: #333333; z-index:5; border: solid #000000; border-width:0 1px; } #footer { width:100%; height:35px; border: solid #000000; border-width:1px 0; background:#eeeeee; color: #333333; margin:0; } Hello there. I Have a small problem i think. I have an layout which i want to have heights in %. This seems to be difficult. In the attachement i have an example of how it is ment to look. The header should be 135px height. The 2 leftside blocks should be 50% of the page which is left, and not the whole page (viewport). I Don't have an good example, becouse i can't figure it out :S. If someone has an link to somekind of div-builder or fluid design builder etc.. that would be nice . Thx in advanced. Hi, I am trying to create a two sided site with nav and constant info on the right and a dynamic area on the left. I have laid out the right side as I need it but can't get both sides to start at the same point on the page. I think this has to do with the way I need it setup to show the background images I have for each div. The right side always starts after the left has finished depending on how much content is in the left area. I have an example link attached with some of the basic code and the .css file Example Page http://parkesproperties.com/dublin_blues/divtest.html .css file http://parkesproperties.com/dublin_blues/base_mz2.css All images http://parkesproperties.com/dublin_blues/images Is there a work around or have I missed something obvious? Any help is appreciated! Cheers Denis |