Results 1 to 4 of 4

Thread: fire fox frameset whitespace problem

  1. #1
    Join Date
    May 2005
    Location
    newcastle, australia
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default fire fox frameset whitespace problem

    hi,

    i've made a frameset in html (see code below) and it works finein IE6.02 on Win98, but has about 10px 'borders' between the frames in FF1 on Win98.

    can anyone see why?

    thanks in addvance.

    <!doctype html public "-//w3c//dtd html 4.01 frameset//en"
    "http://www.w3.org/tr/html4/frameset.dtd">
    <html>
    <head>
    <title>witchybits.com - tarot, palmistry, numerology and more in Newcastle, Australia</title>
    <meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
    <link rel="shortcut icon" href="./images/witchybits.ico">
    </head>
    <frameset rows="100, *" framespacing="0" framepadding="0">
    <frame src="main_banner.htm" name="banner" frameborder="0" noresize marginwidth="10" marginheight="10">
    <frameset cols="200, *">
    <frame src="main_menu.htm" name="menu" frameborder="0" noresize marginwidth="5" marginheight="5">
    <frame src="main_home.htm" name="home" frameborder="0" noresize marginwidth="15" marginheight="15">
    </frameset>
    <noframes>
    <p>your browser does not support frames.
    <br>
    </noframes>
    </frameset>
    </html>

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

    Default

    Firstly, you shouldn't be using absolute pixel values for the frame sizes.
    Secondly, try setting style="border-style:none;border-width:0;" on the frames.
    Thirdly, you might want to close that paragraph at some point.
    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!

  3. #3
    Join Date
    May 2005
    Location
    newcastle, australia
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    thanks for the reply, but i found out what the problem was.

    i had put the frameborder="0" in the frame tags, not the frameset tags, where they should have been. changing the place fixed the problem.

    now, regarding the pixels, you may notice that only two frames have absolute values. the banner frame, and the menu frame. the other frame (content frame that i've name 'home' in the file) is defined with "*" pixels, which means that frame takes up the rest of the space after the first two are defined. this reassures that people with varied screen resolutions can still see the site in the way it was meant to be viewed, and that the menu and banner frames don't change sizes (because the menu has buttons as images that are specific in size)

    second, the <p> tag has an optional close tag, which i've chosen not to use. you are right, though, i should close it because if i apply a style to the <p> element in my css i'll run into strife with some of my code, so thank for reminding me.

    as for the code you suggested, i didn't get a chance to try it b/c of the success i had with my fix. however, seeing as it's a css solution, i will try that too, b/c it would be more efficient.

    thanks for your feed back. :-)

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

    Default

    second, the <p> tag has an optional close tag, which i've chosen not to use.
    The <p> tag is not self-closing. A closing tag is always required.
    now, regarding the pixels, you may notice that only two frames have absolute values. the banner frame, and the menu frame. the other frame (content frame that i've name 'home' in the file) is defined with "*" pixels, which means that frame takes up the rest of the space after the first two are defined. this reassures that people with varied screen resolutions can still see the site in the way it was meant to be viewed,
    But those frames may look odd at different screen resolutions. If you really must make sure they don't change size, I suppose it can't be helped, but it's still something to avoid wherever possible.
    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!

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
  •