Thread: CSS Issues
-
September 28th, 2010, 04:36 PM #1Junior Member
- Join Date
- Sep 2010
- Posts
- 8
CSS Issues
Hello,
I am working on a school project which requires me to make a four page site for a band using the same external CSS style sheet; all of which I have to write from scratch. For some reason my CSS doesn't seem to want to work properly. I have it posted below in hopes that someone can point out to me an error in the code that I am overlooking as well as the html code linking to it.
HTML:
CSS: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>The Go Team</title> <link rel="stylesheet" type="text/css" href="css/styles.css"/> </head> <body> <div id="mainContain"> <div id="header"><img src="images/header.jpg" /></div> <div id="navBar">Navagation Bar</div> <div id="centerContent">Stuff</div> <div id="footer">Footer</div> </div> </body> </html>
To clarify a little. The problem that I am having here is that the div tags nested inside the mainContain div tag are not displaying at their proper heights and weren't even visible until I put text inside them.Code:@charset "UTF-8"; /* CSS Document */ body,p,h1,h2,h3,h4 { padding:0px; margin:0px; text-decoration:none; } .clear { clear:both; } #mainContain { width:800px; height:600px; margin-right:auto; margin-left:auto; border: 2px solid #333; } #header { width:800; height:140; } #navBar { width:800px; height:20px; background-color:#9F806B; } #centerContent { width:800; height:340; } #footer { width:800; height:100; clear:both; background-image:url(../images/footer.jpg); }
-
September 28th, 2010, 05:07 PM #2Junior Member
- Join Date
- Sep 2010
- Posts
- 8
It helps to put 800px instead of 800 etc etc. It's fixed now but thanks for looking if you did.
-
September 29th, 2010, 06:17 AM #3
CSS
Well, I would suggest you need to use Dream-weaver CS4 which allows you to create CSS compatible for all browsers. Good Luck.
-
September 29th, 2010, 07:31 AM #4Junior Member
- Join Date
- Sep 2010
- Posts
- 8
I actually code in CS5. I just prefer to do my coding by hand because it helps me to remember things. Thank you for the suggestion though.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
help with css
By Bob The Great in forum Webmastering and ProgrammingReplies: 0Last Post: September 2nd, 2005, 04:41 PM -
css
By sr71000 in forum Webmastering and ProgrammingReplies: 11Last Post: August 10th, 2005, 03:39 PM -
css
By ryanredbaron in forum General Gaming DiscussionReplies: 3Last Post: September 4th, 2004, 05:15 AM -
Cross Browser CSS Issues?
By Cyberlore in forum Webmastering and ProgrammingReplies: 6Last Post: January 14th, 2004, 05:36 PM



LinkBack URL
About LinkBacks



Reply With Quote

Ermm, I don't know? :L They have the SLI bridge on the and that's all I know and on MSI afterburner it shows GPU1 and GPU2 for all like core clock and temps.
New Pc