html frames issue

Discussion in 'Software' started by PeterK2003, Oct 19, 2006.

  1. PeterK2003

    PeterK2003 Private E-2

    check out my page here:
    http://krumkast2.krum.name:8080/test/

    notice the the white border that goes around the frames!

    I can get rid of it but then it won't pass the XHTML 1.0 Frameset validation!
    How do i get rid of it so that it will pass the validation?

    Thanks,

    ~peter
     
  2. matt.chugg

    matt.chugg MajorGeek

    I have a memory like a seive but did I help you with the top of your site before, it looks vaguly familiar.

    Personally I don't like frames, and many search engines have issues with them. (when spidering)

    Have you considered not using frames and using a table or divs ?

    I think the problem you are seeing with the white borders is beacuse of margins. Appply some css styles to your td and tr tags and see if that helps:

    Code:
    <td style="margin:0px 0px 0px 0px; border-width:0px;"></td>
    
    Whilst I appreciate this is a table tag I think there must be a way of appplying margins etc to frames too, I just can't think what it is at teh second.

    See if the above helps if not I will have a deeper look :)
     
  3. PeterK2003

    PeterK2003 Private E-2

    yeah i think your the person that helped me with the top.

    ummm what TD/TR tags?

    i agree that it probably has something to do with margins but i can't seem to change them and i don't really want to use a table to do it b/c that is frowned upon as i understand it.

    i can get it to work if i put "frameborder="0"" in the first frameset tag but then it doesn't pass the validation test.

    Thanks!
     
  4. matt.chugg

    matt.chugg MajorGeek

    What validation test are you using ?

    td and tr tags are the tags that make up a table, I think you'll find that using a table isn't so bad and far less frowned upon than using frames ;)
     
  5. PeterK2003

    PeterK2003 Private E-2

  6. PeterK2003

    PeterK2003 Private E-2

    if anyone is still looking at this i changed it so that it looks right on the page so i'll post the code:

    <frameset rows="176,*" frameborder="0">
    <frame id="banner" name="banner" scrolling="no" noresize="noresize" src="top.php" frameborder='0' marginwidth="0" marginheight="0"/>
    <frameset cols="160,*">
    <frame id="side" name="side" src="side.php" scrolling="no" frameborder='0' noresize="noresize" marginwidth="5" marginheight="0"/>
    <frame id="main" name="main" src="mainFrame.php" scrolling="auto" frameborder='0' marginwidth="0" marginheight="0"/>
    </frameset>
    <noframes>
    <body>

    <p>This page uses frames, but your browser doesn't support them.</p>

    </body>
    </noframes>
    </frameset>

    The red code is what makes it work correctly but makes it fail the validation.

    I would really like if i could stay away from using a table but if i were to use one how would i get the "main frame" to be as large as it needed to be(ie it would need to vary it's size based on the size of the page it was displaying).
     
  7. matt.chugg

    matt.chugg MajorGeek

    you can use % of a page to set the table size. Using that it will always take up a certain percentage (or all if you want) of the page.
     
  8. PeterK2003

    PeterK2003 Private E-2

  9. matt.chugg

    matt.chugg MajorGeek

    I don't see anything on the page excepot the top banner image.
     
  10. PeterK2003

    PeterK2003 Private E-2

    try it again. What browser are you using?
     
  11. matt.chugg

    matt.chugg MajorGeek

    It loads a lot of stuff but I can't see it.

    I'm using Maxthon., unfortunatly its sent my IE a bit screwy at the moment so I can't really view in anything else. If am on on another computer later I will give you a shout here. Sorry about that. :( Hopefully someone else can help you in the mean time
     
  12. PeterK2003

    PeterK2003 Private E-2

    i've never head of that browser.
     
  13. matt.chugg

    matt.chugg MajorGeek


MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds