Results 1 to 3 of 3

Thread: Sliding doors menu won't work when doctype defined

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

    Default Sliding doors menu won't work when doctype defined

    1) Script Title: Sliding Doors Tabs Menu (horizontal)


    2) Script URL (on DD): http://www.dynamicdrive.com/style/cs...ors-tabs-menu/

    3) Describe problem:

    This has been driving me mad for a couple of hours tonight, and I'm about to give up and go to bed!

    I've added the sliding doors tab menu to my website, but it doesn't work - the left hand tab image doesn't appear. I've finally worked out that if I remove the DOCTYPE def from my page, then the tabs appear fine. But removing the DOCTYPE messes up the rest of my page.

    What can I do?

    The doctype I'm using is:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">


    Any help really gratefully received

    PS: I've tried creating a new page which just contains the Sliding Doors CSS and html, and get the same problem - as soon as I add my DTD, it doesn't work

  2. #2
    Join Date
    Jan 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Fixed!

    I fixed this by changing the doctype to: <!doctype HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

    Was going to delete the thread, but couldn't work out how!

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

    Default

    That DOCTYPE:

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    really shouldn't be a problem, were there validation errors?

    In any case, I just set up a local copy of sliding doors with that DOCTYPE and after validating the page (even before), it worked fine in FF, IE, and Opera. So there must be some other problem.

    However, HTML 4.01 strict is generally the DOCTYPE one should be using for all web content anyway.
    - 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
  •