View Full Version : CSS Solution for Framespacing

12-14-2005, 08:48 PM
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?


12-14-2005, 09:08 PM
There is no CSS solution. CSS cannot modify framesets. You will have to stick with framespacing and live with it.

12-14-2005, 09:20 PM
Alright, thanks. Strange that the HTML 4.01 Frameset doctype doesn't support the framespacing attribute, yet doesn't offer an alternative to it. :confused: