Go Back   Dynamic Drive Forums > General Coding > HTML
Search Dynamic Drive Forums:

Reply
 
Thread Tools Search this Thread
  #1  
Old 10-09-2007, 02:49 PM
hinchb hinchb is offline
Junior Coders
 
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
Reply With Quote
  #2  
Old 10-09-2007, 03:28 PM
boogyman boogyman is offline
Elite Coders
 
Join Date: Jul 2006
Location: just north of Boston, MA
Posts: 1,789
Thanks: 12
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'?>
__________________

This is a forum system not a PM system for questions. please treat it appropriately
Reply With Quote
  #3  
Old 10-09-2007, 03:40 PM
hinchb hinchb is offline
Junior Coders
 
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
Reply With Quote
  #4  
Old 10-09-2007, 03:54 PM
boogyman boogyman is offline
Elite Coders
 
Join Date: Jul 2006
Location: just north of Boston, MA
Posts: 1,789
Thanks: 12
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>
__________________

This is a forum system not a PM system for questions. please treat it appropriately
Reply With Quote
  #5  
Old 10-09-2007, 04:00 PM
hinchb hinchb is offline
Junior Coders
 
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.
Reply With Quote
  #6  
Old 10-09-2007, 04:07 PM
boogyman boogyman is offline
Elite Coders
 
Join Date: Jul 2006
Location: just north of Boston, MA
Posts: 1,789
Thanks: 12
Thanked 72 Times in 72 Posts
Default

3 sizes? umm why do you say that?
__________________

This is a forum system not a PM system for questions. please treat it appropriately
Reply With Quote
  #7  
Old 10-09-2007, 04:23 PM
hinchb hinchb is offline
Junior Coders
 
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.
Reply With Quote
  #8  
Old 10-09-2007, 04:31 PM
boogyman boogyman is offline
Elite Coders
 
Join Date: Jul 2006
Location: just north of Boston, MA
Posts: 1,789
Thanks: 12
Thanked 72 Times in 72 Posts
Default

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

This is a forum system not a PM system for questions. please treat it appropriately
Reply With Quote
  #9  
Old 10-09-2007, 04:38 PM
hinchb hinchb is offline
Junior Coders
 
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.
Reply With Quote
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:25 AM.

Home - Contact Us - Archives - Link to DD - Top 

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.