CSS - Blog Layout Problems
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!! Similar TutorialsSorry I can't be more descriptive about my problems, but I am really not that great at CSS/PHP/coding in general. I barely passed my Matlab/C++ class freshman year of college, lol. Anyway...my friend and I just started a blog but neither of us know anything about CSS. I followed a tutorial for creating Wordpress Themes using PHP and CSS. I've been working on the blog (hosted locally) for a while now, and finally decided to FTP it to my host server to do the browser snaps on it, etc. thepennydreadful.com That's the URL and right now there is a gigantic white gap between the footer and the container....I thought if I adjusted the padding it might fix the problem because that's how I fixed it when there was a gigantic white gap between the header and the container...but yeah. I've heard from my friend that in his browser (latest vers of firefox) that the sidebar doesn't go to the side like it's supposed to either. I'm using the latest version of Google Chrome, if that matters. Any help or suggestions on how to fix the problem would be greatly appreciated. I've been following the W3 school's pages on CSS too, but I haven't had any formal instruction on CSS so most of what I am doing is pretty much just poking around in the dark. :'( PS: I did validate my CSS like it says to do in the sticky at the top of the forum page and it validates alright.... Code: /* Theme Name: The Penny Dreadful Theme URI: http://www.thepennydreadful.com Description: The layout for the gothic and lolita blog "The Penny Dreadful." Version: 1.0 Author: Kate Bartlett Author URI: http://nozomiwhitewolf.livejournal.com/ */ body{ margin-left: 0; margin-right: 0; margin-top: 0; margin-bottom: 0; font-family: Arial, Helvetica, Georgia, Sans-serif; font-size: 12px; text-align:left; vertical-align: top; /* background-color: #29001E; */ } div#content{ padding:180px; width: 400px; float:left; } /*Header, Container, Footer*/ div#header{ background-image: url('Top.png'); background-repeat:no-repeat; height: 519px; } div#container{ background-image: url('Middle.png'); background-repeat: repeat; margin-right: 639px; height: 476px; text-align: left; padding: 1px; } div#footer{ background-image: url('Bottom.png'); background-repeat:no-repeat; clear:both; float: left; width: 1050px; text-align: left; padding: 160px; height: 360px; } /* End of file. */ 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. 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 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 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: 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 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 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 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! 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 Can anyone tell me why www.thecharliepoweragency.com wont auto stretch in firefox, it also has layout problems in ie5mac and safari. Resolved. Resolved. Mods please delete! Thanks. 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, I'm trying to constuct what, in real terms, is a simplistic page layout using CSS-P. Maybe I'm being stupid - but here goes... I am trying to constuct a page as follows: header (viewport width) leftMenu (width 150px) content (as wide as necessary) - top aligned with top of leftMenu footer (viewport width) - underneath the "tallest" of "Left Menu" and "Content" Easy huh? But, as soon as any content is greater than [viewportWidth - 150] (150=width of leftMenu), the content (depending, of course, on the CSS implementation) either slips below the leftMenu, disappears altogether(?), or has the footer right underneath the header with everything else below. I could do this with a simple table construct in under a minute. So please - CSS gurus, can you advise me how to achieve this in CSS, as it seems impossible (10 hours+)? I thought CSS was supposed to make design easy; If I'm not missing something and CSS can't achieve this (common) basic layout - what hope is there? All comments truly appreciated, HEX. I am having some problems laying out a center-aligned container with 3 columns within it. I am sure the issue is with float, but I can't figure out how to get around it. Actually, it does work, but only if the center column is longer than the other two columns. Otherwise, they wrap over the footer and extend outside the container. Here is the CSS: Code: body { margin:0px 0px 10px 0px; background-image : url(image_name.gif); background-repeat:repeat-x; text-align: center; } A { color: #0066CC; text-decoration: none; font-weight:bold; } A:link { color: #0066CC; text-decoration: none; } A:visited { color: #0066CC; text-decoration: none; } A:active { color: #3399ff; } A:hover { color: #3399ff; } h1, h2, h3 { margin: 0px; padding: 0px; } #container { position: relative; margin: 0 auto; width: 622px; text-align: left; padding: 0px; border: 1px solid blue; } #topnav { width: 622px; border: 1px solid black; } #topnav_text { width: 622px; height: 92px; border: 1px solid black; } #banner { width: 622px; border: 1px solid black; padding: 10 0 20 0; } #footer { width: 622px; border-top: 1px solid silver; padding: 5 0 0 0; text-align: left; border: 1px solid black; } #homepix { width: 235px; float: left; border: 1px solid green; padding: 0 5 0 5; } #homejournal { margin-left: 248px; width: 215px; border: 1px solid red; padding: 0 5 0 5; background:#fff; padding-bottom:20px; } #homeshows { float: right; width: 135px; border: 1px solid blue; padding: 0 5 0 5; background:#fff; padding-bottom:20px; } .homeblog { padding-left:15px; padding-bottom:15px; padding-right:15px; } .homeblogbody { font-family:verdana, arial, sans-serif; color:#333; font-size:x-small; font-weight:normal; background:#FFF; line-height:110%; padding-left:5px; padding-right:5px; } .homeblogbody a, .homeblogbody a:link, .homeblogbody a:visited, .homeblogbody a:active, .homeblogbody a:hover { font-weight: normal; text-decoration: underline; } } .title { font-family: verdana, arial; font-size: small; color: #003366; text-transform: uppercase; font-weight:bold; } .homeside { font-family:verdana, arial, sans-serif; color:#333; font-size:x-small; font-weight:normal; background:#FFF; line-height:140%; padding:2px; } .side a { font-family:verdana, arial, sans-serif; font-size:x-small; background:#FFF; line-height:140%; } And here is a sample page: Code: <html> <head> <meta http-equiv="content-type" content="text/html;charset=iso-8859-1"> <title>Page Title</title> <link rel="stylesheet" type="text/css" href="styles.css"> <!--#include virtual="/inc/functions.js" --> </head> <body> <div id="container"> <div id="topnav"> Navigation row goes up here </div> <div id="homepix"> Generally an image goes here </div> <!-- end navcol --> <div id="homeshows"> <div class="homeside"> <strong>Upcoming Events Calendar</strong><br> Events...<br><br> Events...<br><br> Events...<br><br> Events...<br><br> Events...<br><br> Events...<br><br> Events...<br><br> Events...<br><br> Events...<br><br> Events...<br><br> Events...<br><br> Events...<br><br> Events...<br><br> Events...<br><br> Events...<br><br> Events...<br><br> Events...<br><br> Events...<br><br> Events...<br><br> <a href="/shows/">All events...</a> </div> </div> <div id="homejournal"> <div class="homeblogbody"> Yadda Yadda Yadda.... Yadda Yadda Yadda.... Yadda Yadda Yadda.... Yadda Yadda Yadda.... Yadda Yadda Yadda.... </div> </div> <!-- end content div --> <div id="footer"> <!--#include virtual="/inc/footer.inc" --> </div> </div> <!-- end container div --> </body> </html> I am pretty much a css newbie, but I get everything that I have learned so far. The only problem I have is understanding how floating for layout works. I want to create a 3 column layout, with the nav menu on the left, content in the middle, and sidebar on the right. I just can't get them to align where I want them to. How would I go about in doing this? I have followed many tutorials and tried doing it on my own, and just can't get it right. I've tried various methods such as floating left and right, clearing left and right, padding, added width and negative margins. It's really frustrating. Can someone please help me out? Thanks in advance! 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 |