Help me pick a doctype, help |
![]() ![]() |
Help me pick a doctype, help |
Apr 26 2008, 07:48 PM
Post
#1
|
|
![]() Senior Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Designer Posts: 5,880 Joined: Nov 2007 Member No: 593,382 |
what doctype do I need to use?
Here is the code: CODE <html> <head> <title>my title</title> <link href="stylesheet.css" rel="stylesheet" type="text/css" /> <meta name="description" content="description" /> <meta name="keywords" content="keywords" /> </head> <body> <div align="center"> <div id="pagewidth"> <br> <div id="header"></div></center> <div class="floatcontainer"> <div id="navigation" > the nav </div> <div id="content" > <h2>Welcome</h2>Hey </div> </div> <div id="footer" > <hr style="height: 5px; border-style: none; background-color: black; color: black; width:80%;"> <br> <u>copy</u> <br><br></div> </div> </div> <br> </body> </html> Do you need to see the css too? And how come any time I put in any doctype it messess up my floating divs in ie6? |
|
|
|
Apr 27 2008, 07:35 PM
Post
#2
|
|
![]() Senior Member ![]() ![]() ![]() ![]() ![]() ![]() Group: Administrator Posts: 2,648 Joined: Apr 2008 Member No: 639,265 |
Looks like you're using XHTML, so maybe XHTML 1.0 Transitional?
CODE <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> You can check out a list of doctypes here. A doctype shouldn't mess up your DIVs. |
|
|
|
![]() ![]() |