Results 1 to 9 of 9

Thread: Non CSS menu using IFRAMES - Need Opinion

  1. #1
    Join Date
    Oct 2007
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Non CSS menu using IFRAMES - Need Opinion

    I have coded a Non-CSS menu using IFRAMES which I would like your opinion on.
    It seems to work in all the browsers I've tested. Do you see any disadvantages in using something like this.

    Here is my test site http://webpages.charter.net/hinchb/default.htm


    Thank You for your advice.
    Bob

  2. #2
    Join Date
    Jul 2006
    Location
    just north of Boston, MA
    Posts
    1,806
    Thanks
    13
    Thanked 72 Times in 72 Posts

    Default

    1)
    a) without scaling, the page is still broken in firefox 1.5 and 2.0.0.7 (left nav and footer)
    b) doesnt scale... if you increase the text size, the proportions become cluttered / overlap each other

    2) by using iframes you are preventing the user from EVER bookmarking anything but the first page, causing this person to always need to re-find what it is he/she was looking for, which in most instances defeats the purpose of bookmarking.

    I am not sure if charter.net allows php, but if they do you can use some includes on the pages and create separate header/nav/footer/etcetc..., which will provide both the bookmarkability, but you also will not have to update multiple files if your navigation changes
    PHP Code:
    <?php include('/path/to/file.ext'?>

  3. #3
    Join Date
    Oct 2007
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by boogyman View Post
    1)
    a) without scaling, the page is still broken in firefox 1.5 and 2.0.0.7 (left nav and footer)
    b) doesnt scale... if you increase the text size, the proportions become cluttered / overlap each other

    2) by using iframes you are preventing the user from EVER bookmarking anything but the first page, causing this person to always need to re-find what it is he/she was looking for, which in most instances defeats the purpose of bookmarking.

    I am not sure if charter.net allows php, but if they do you can use some includes on the pages and create separate header/nav/footer/etcetc..., which will provide both the bookmarkability, but you also will not have to update multiple files if your navigation changes
    PHP Code:
    <?php include('/path/to/file.ext'?>
    Thank You for taking the time to look at the page. There is a javascript in the code to select the proper font size, but I can see what you mean. I'll look into your suggestions.
    Thamk you very much

  4. #4
    Join Date
    Jul 2006
    Location
    just north of Boston, MA
    Posts
    1,806
    Thanks
    13
    Thanked 72 Times in 72 Posts

    Default

    when used correctly javscript can greatly enhance a site, however its a good idea, scratch that, its good coding practice, to design your site to work with javascript being unavailable, because of the abuse that some coders have for the language (eg... popup he\_\_).

    now on that note, i didn't even take a look at the site with javascript being disabled, so there is still soemthign in your code that would need fixing, and its best to use CSS stylesheets for text-sizing. and to use percentages of 1 definition. that way if you ever want to change the size you need only to change 1 and the rest change automatically, and it also helps with scalability.

    Code:
    <style type="text/css">
    body {
         font-size: 12pt;
    }
    h1 {
         font-size: 150%;
    }
    </style>

  5. #5
    Join Date
    Oct 2007
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks again, I do have a redirect if javascript is disabled. the main problem I have with font sizes is that only 3 possible sizes can be selected with the css sheets.

  6. #6
    Join Date
    Jul 2006
    Location
    just north of Boston, MA
    Posts
    1,806
    Thanks
    13
    Thanked 72 Times in 72 Posts

    Default

    3 sizes? umm why do you say that?

  7. #7
    Join Date
    Oct 2007
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi,
    There is a JS (selecttestsize.js) after the body tag that checks the screen resolution and selects 1 of 3 style sheets that all have a different font size, the rest of the CSS is the same.

  8. #8
    Join Date
    Jul 2006
    Location
    just north of Boston, MA
    Posts
    1,806
    Thanks
    13
    Thanked 72 Times in 72 Posts

    Default

    why should the screen resolution have anything to do with the font-size?

  9. #9
    Join Date
    Oct 2007
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I use 9px for 800 or less, 12px for 1024, and 15px for larger than 1024 width, this makes it fit the screen better.

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
  •