CSS - My First Table-less Layout Is Giving Me Problems
I'm so excited! I recently decided to try again (the third time) to see if I could convert my horrid table layout to divs.
I was finally able to make something reletivly good in most browsers, but I am still having alot of browser-related problems! Normally I would have given up by now...but i found that my table layout was at 28 seconds over 56.6 ( :O ) and once i converted it it was only 3 seconds over (double :O ) Anyway, pretty much everything validates (including the css) when I put in the doctype, but when the doctype is in it looks like a mess in all browsers. I've been using transitional xhtml. When I take it out it looks better in all browsers, but is still really bad in all but IE. I have put together on my site two pages with the same code except one has the doctype and the other doesn't. The css for both is: Code: body { background: #EFF7FF url(bg.gif); text-align:center; padding:0; } #outer { border:5px double #234B77; width:650px; padding:0px; margin:0px; } #hdr { width:650px; height:151px; background: #21558C; } #bar { width: 650px; height:90px; background: #ADD7EF url(rainbowsitedesign_2x1.gif); border:solid #000000; border-width:0px; padding-top: 37px; text-align:left; } #bodyblock { position:relative; background: #ADD7EF url(backgroundforsite.gif); width:650px; padding:0; } #l-col { float:left; background: #ffffff url(white.gif); color: #333333; width:140px; border-left: 1px solid #234B77; border-right: 1px solid #234B77; border-top: 1px solid #234B77; border-bottom: 1px solid #234B77; margin-top:10px; margin-bottom:10px; margin-left:5px; margin-right:5px; } #coltop { height: 42px; background: #3971B5 url(tabletop.gif); color: #000; text-align: center; padding:10px; font-size: 105%; font-weight: bold; color:#1A3958; } #cont { width:485px; background: #ffffff url(white.gif); border-left:1px solid #234B77; border-right:1px solid #234B77; border-top:1px solid #234B77; border-bottom:1px solid #234B77; text-align:left; margin-top:10px; margin-bottom:10px; margin-right:5px; font-size: 100%; font-weight: normal; color:#1A3958; } #contentop { width:485px; height:42px; background: #3971B5 url(tabletop.gif); color: #333333; border-left:0px solid #234B77; border-right:0px solid #234B77; border-top:0px solid #234B77; border-bottom:1px solid #234B77; margin:0px; text-align: center; padding:10px; font-size: 105%; font-weight: bold; color:#1A3958; } #ftr { width:650px; height:25px; background:#346EB4; color: #333333; border: 0px solid #000000; margin:0; } #ftr2 { width:650px; height:25px; background:#346EB4; border: 0px solid #000000; margin:0; } #ftr3 { width:650px; height:99px; background: #346EB4 url(websitedesign.gif); border: 0px solid #000000; margin:0; padding-top: 20px; } #home { width:50px; height:10px; border: 1px solid #000000; margin:0; } p:first-letter { font-size: 120%; font-weight: bold; } a.red:link { text-decoration: none; color: #234B77; } a.red:visited { text-decoration: none; color:#ff0000; } a.red:hover { text-decoration: underline; color:#ff0000; } a.orange:link { text-decoration: none; color: #234B77; } a.orange:visited { text-decoration: none; color: #ff6600; } a.orange:hover { text-decoration: underline; color:#ff6600; } a.yellow:link { text-decoration: none; color: #234B77; } a.yellow:visited { text-decoration: none; color: #ffff00; } a.yellow:hover { text-decoration: underline; color:#ffff00; } a.green:link { text-decoration: none; color: #234B77; } a.green:visited { text-decoration: none; color: #009900; } a.green:hover { text-decoration: underline; color:#009900; } a.blue:link { text-decoration: none; color: #234B77; } a.blue:visited { text-decoration: none; color: #0000ff; } a.blue:hover { text-decoration: underline; color:#0000ff; } a.violet:link { text-decoration: none; color: #234B77; } a.violet:visited { text-decoration: none; color: #660066; } a.violet:hover { text-decoration: underline; color:#660066; } #ftr2 a:link { text-decoration: underline; color: #152F4D; } #ftr2 a:visited { text-decoration: line-through; color: #ccc; } #ftr2 a:hover { text-decoration: none; color: #88B2DC; } Here are the two pages: With doctype: http://rainbowsitedesign.com/withdoctype.html Without it: http://rainbowsitedesign.com/nodoctype.html How can I fix both my browser problems and my doctype problems? Any help is app! Similar TutorialsHi I have a master page in my .net project that has a template. In this template it has a line for all links a:link { color......} So all my pages get this style sheet. Now I have a jquery tab plugin that has a theme and it also uses a:link{} but it uses white but the a:link in my master page is overriding this. When I look with firebug at the css the color from the jquery theme is crossed out. How can I stop this from being crossed out? Hi all, I noticed that when I give the text-align style as "justify", the words are unevenly spaced to justify the alignment. But it looks really weird if there are only two long words in a sentence and many small letter words in the next line. Can any1 suggest a way to align the text inside a <p> to be evenly spaced as well as justified. How to make the text to hyphenate (i.e split words with a '-' and display it in the next line). Is there a CSS property to accomplish this. I wud be grateful to recieve comments. Thanks in Advance. - John Hi All, I am trying to make my table do the attached, where it has a border around the entire table but has a 2px space edge... Like the attched image, any ideas? 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. 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! Resolved. 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 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 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 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 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: Can anyone tell me why www.thecharliepoweragency.com wont auto stretch in firefox, it also has layout problems in ie5mac and safari. 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 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. OK, first off from a bad experience on another CSS Forum , I will have to begin with a disclaimer: The blog you're about to view is my original content. I did not steal this work. I did however use Photoshop brushes that were made by others to create my work. The credit is properly given to those people on my active blog. The blog that I'm having CSS/HTML problems with is INCOMPLETE, so you will not see any credits their yet. It is NOT MY REAL BLOG. I change the template there about every month with new experiements. It's sad that I have to take up so much time to write a disclaimer because too many people out their jump on the "YOU PLAGIARIZER - YOU DID IT" bandwagon. So, I was told by a very presumptious group of forum members to write a disclaimer in the future. Whew! Now that I got that outa the way......... I need help. This is the site I'm having trouble with. Main Index Template Sidebar Stylesheet I've been working on this same template for a week now. I'm not the type to ask for help. I'm very stubborn and prefer to do things on my own because it's usually faster and easier. But now I'm tearing my hair out - not able to figure out what I'm doing wrong. My blockquote is bleeding off the screen. I'll start with that for now. I've tried div's, widths, margins, paddings. Believe me, I've toyed with every possibility out there. Not only that, but I can't tell you how many "CSS/HTML" (including the w3 schools) help pages I've read out there. None of them have supplied what I need to know to fix my layout. If any of you have the slighest clue, please help. I'd really appreciate it!! |