Results 1 to 2 of 2

Thread: xhtml-css layout

  1. #1
    Join Date
    May 2008
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default xhtml-css layout

    hi guys,
    i have been developing a web page. i started it without a doctype and it was right.. then i added a doctype and the layout broke though xhtml and css validator return me no error.. i'm sorry for the english. i'm italian.
    Last edited by darkcoderITA; 05-31-2008 at 03:28 PM.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    You probably shouldn't be using XHTML or xml. HTML 4.01 strict (example blank page):

    HTML Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <html>
    <head>
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    
    </head>
    <body>
    
    </body>
    </html>
    Is generally the best to use. However, that probably won't fix your problems. Things just layout differently in strict mode.

    The bottom line is, start your new pages with the DOCTYPE you intend to use. If you have a page that works fine without a DOCTYPE, leave it alone.

    You can upgrade to a valid page, but it usually will require a bit of redesign/recoding. How exactly this needs to be done depends upon the page itself. If you want more help:

    Please post a link to the page on your site that contains the problematic code so we can check it out.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •