Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Senior Coder TheShaner's Avatar
    Join Date
    Sep 2005
    Location
    Orlando, FL
    Posts
    1,126
    Thanks
    2
    Thanked 40 Times in 40 Posts

    CSS Solution for Framespacing

    Ok, I've done some searching and have not been able to find this anywhere.

    I'm working on updating a site's code. Its doctype is currently HTML 3.2 and completely in tables! It's horrendous. I'm first getting it to HTML 4.01 Frameset before updating it more, because it uses frames (not my choice). For now, I must stick with the frames until I can get approval to remove them. But until then, I'd like it to validate to the frameset doctype.

    My problem is that framespacing isn't supported in HTML 4.01 Frameset, so I need a CSS solution. What do I do? I've put margin, padding, and border to zero, but there is still about 5px of space between the two frames. If I put in framespacing="0" for the frameset, the space vanishes like I want, but then I'm back to being invalid.

    I created an id for the frameset and that is where I'm putting my CSS attributes in. Is this correct?

    -Shane

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    There is no CSS solution. CSS cannot modify framesets. You will have to stick with framespacing and live with it.

  • #3
    Senior Coder TheShaner's Avatar
    Join Date
    Sep 2005
    Location
    Orlando, FL
    Posts
    1,126
    Thanks
    2
    Thanked 40 Times in 40 Posts
    Alright, thanks. Strange that the HTML 4.01 Frameset doctype doesn't support the framespacing attribute, yet doesn't offer an alternative to it.

    -Shane


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •