Hey do any of you guys know where im going wrong with this code i thought i was doing ok with creating the web page in CSS, i viewed it on a screen with res 1152 x 864 and it was fine.
Then viewed it on 1280 x 800 screen res and the 1st paragraph of text spills out of the div area.
please help hope it a simple adjustment, code is:->>
HTML 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>testtext :: having a go at dfivs</title> <style type="text/css"> <!-- #container #header { color: #0033CC; } #container { color: #010000; background-color: #FFFFFF; padding: 50px; } #leftcolumn { width: 400px; float: left; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; } #rightcolumn { width: 250px; float: right; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; } .clear { clear: both; } h2 { font-family: Arial, Helvetica, sans-serif; color: #000000; font-weight: lighter; font-size: 17px; } .design { color: #FFFFFF; } body { margin-left:15%; margin-right: 15%; background-color: #e17333; } a:link { text-decoration: none; border: 0; color: #44372D; } a:visited { border: 0; text-decoration: none; } a:active { border: 0; text-decoration: none; } p { font-family: Arial, Helvetica, sans-serif; color: #666666; font-size: 13px; } .brown { color: #403831; } .organge { color: #E17333; } h1 { font-family: Arial, Helvetica, sans-serif; color: #E17333; font-weight: normal; font-size: 25px; line-height: 27px; } a:hover { color: #C1B0A2; } #header { background: #403831; width: 444px; float: left; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; height: 231px; padding-right: 70px; font-weight: lighter; } #navigation { width: 162px; float: right; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; height: 231px; } --> </style> </head> <body> <div id="container"> <div id="header"><img src="http://forums.x10hosting.com/images/missing" alt="header here" width="444" height="231" /></div> <div id="navigation"> <h2 class="brown">SERVICES 1<br /> <span class="organge">SERVICES 2</span><br /> SERVICES3<br /> <span class="organge">SERVICES 4<br /> </span> SERVICES 5<br /> <span class="organge">SERVICES 5 </span>SERVICE 6<span class="organge"><br /> </span>& MORE </h2> </div> <div id="article"> <h1>This is the amount of text i will be putting here. Problem is it spills out of it intended div area when view on a screen 1280 x 800 res.</h1> <p>a bit of text about the site what its for band where is going blah blah blah a bit of text about the site what its for band where is going blah blah blah a bit of text about the site what its for band where is going blah blah blah a bit of text about the site what its for band where is going blah blah blah a bit of text about the site what its for band where is going blah blah blah de end </p> </div> <div class="contact" id="leftcolumn"> <h2><span class="organge">TELEPHONE</span> <span class="brown">00000 000 000<br /> </span><span class="organge">EMAIL </span><span class="brown"><a href="mailto:something@hotmail.com">something@hotmail.com</a></span> <span class="organge"><br /> WEB</span> <span class="brown">[url]WWW.FACEBOOK.COM[/url] </span></h2> </div> <div class="organge" id="rightcolumn"> <h2 class="design">text </h2> </div> <div class"clear"></div> <p> </p> <p> </p> <p> </p> </div> </div> </body> </html>


LinkBack URL
About LinkBacks
Reply With Quote
icon below! (this is even better than "liking" a post)
