Results 1 to 5 of 5

Thread: Coding issue

  1. #1
    Join Date
    Jan 2007
    Posts
    40
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Coding issue

    Ok I dont exactly know what is happening here. I paste this code:

    Code:
    <!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    At the top of my page and this is what happenes to it. Notice the white on the side over there. That isnt supposed to be there. Its supposed to be black.

    Click for bigger view


    And it only seems to do it on this layout. But i like this layout and dont want to have to change it. What can i do? How do i fix this?

  2. #2
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    Can you please post a link to the entire page or attach the whole code?

  3. #3
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    It's a little more complex than that. Adding in a DOCTYPE will cause browsers to expect your page to be coded properly, and they won't try to correct your mistakes. That white space is what happens when your page is rendered correctly (according to HTML 4.01 Transitional).
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  4. #4
    Join Date
    Jan 2007
    Posts
    40
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by Twey View Post
    It's a little more complex than that. Adding in a DOCTYPE will cause browsers to expect your page to be coded properly, and they won't try to correct your mistakes. That white space is what happens when your page is rendered correctly (according to HTML 4.01 Transitional).
    So dose that mean i cant do any thing about it? Other then changing the layout?

    Maybe some one can figure out how to fix the coding so it dont have the white part on it. If not thats ok. Ill either go with out the code at the top or use a different layout

    http://britneyinthezone.webs.com/old%20layout/index.htm

  5. #5
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    Does your page work in FF with the doctype, because without the doctype it doesn't really work in FF3. I suggest that you add a doctype, try to validate it and then check if you still have problems.

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
  •