Results 1 to 5 of 5

Thread: Glossy Horizontal Menu (floating right for some resoan)

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

    Default Glossy Horizontal Menu (floating right for some resoan)

    Hi guys hope your all having a great day i am doing a website for a friend and he wants me to use Glossy Horizontal Menu - http://www.dynamicdrive.com/style/cs...rizontal_menu/

    However for some resoan it is floating right when it should be left
    I have not changed any of the code so i dont know what is wrong please help

    http://www.hypnosiswa.com/index.php

    Thanks
    The web in one word.

  2. #2
    Join Date
    Feb 2008
    Location
    Cebu City Philippines
    Posts
    1,160
    Thanks
    17
    Thanked 277 Times in 275 Posts

    Default

    Highlighted causes the mess
    Code:
    div.logo {display:block; float:left; position:relative; background-image:url(images/logo.png); text-align:left; line-height:37px; height:112px; width:462px; margin:0 auto 2ex; padding:0;}
    Remove that part in highlighted

    Quick side note,,,you don't have a DTD in your page...without it...your're pushing IE into quirksmode.

    ...Also, <style type="text/css">, add the higlighted

    See if it helps
    Learn how to code at 02geek

    The more you learn, the more you'll realize there's much more to learn
    Ray.ph!

  3. #3
    Join Date
    May 2006
    Posts
    266
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Thanks for your help, the resoan why i dont have DTD is because i dont know which one to use its all so confusing...

    I have never bothered with DTD and all my sites work fine. but if you can help me here is the basic

    HTML - or it could be xhtml as i dont use table just all divs
    PHP
    Mysql
    CSS files
    The web in one word.

  4. #4
    Join Date
    Feb 2008
    Location
    Cebu City Philippines
    Posts
    1,160
    Thanks
    17
    Thanked 277 Times in 275 Posts

    Default

    If I were to ask, I would use between the two:
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
    "http://www.w3.org/TR/html4/strict.dtd">
    The earlier is for XHTML, and the later is for HTML

    BTW, has my suggestion in Post#2 resolved the issue
    Learn how to code at 02geek

    The more you learn, the more you'll realize there's much more to learn
    Ray.ph!

  5. #5
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    Quote Originally Posted by queerfm View Post
    Thanks for your help, the resoan why i dont have DTD is because i dont know which one to use its all so confusing...

    I have never bothered with DTD and all my sites work fine. but if you can help me here is the basic

    HTML - or it could be xhtml as i dont use table just all divs
    PHP
    Mysql
    CSS files

    When in doubt use the HTML 4.01 Strict DTD. Most XHTML sites are only using HTML syntax just using some XHTML techniques (like closing image tags, etc...).

    Here is a more general overview: http://www.webstandards.org/learn/ar...skw3c/oct2003/

    But you 100% should include a DTD and validate your markup. The stress on standards complaint markup isn't just web nerds being super anal. It makes a real functional difference in how browsers render your page. You say that all your sites work fine without a DTD but that suggests to me that either (1) the markup is coded in quirks mode or (2) that you haven't tested in all relevant browsers

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
  •