Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-14-2005, 07:48 PM   PM User | #1
TheShaner
Senior Coder

 
TheShaner's Avatar
 
Join Date: Sep 2005
Location: Orlando, FL
Posts: 1,125
Thanks: 2
Thanked 40 Times in 40 Posts
TheShaner will become famous soon enoughTheShaner will become famous soon enough
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
TheShaner is offline   Reply With Quote
Old 12-14-2005, 08:08 PM   PM User | #2
_Aerospace_Eng_
Supreme Master coder!


 
_Aerospace_Eng_'s Avatar
 
Join Date: Dec 2004
Location: In a place far, far away...
Posts: 19,292
Thanks: 2
Thanked 1,044 Times in 1,020 Posts
_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light
There is no CSS solution. CSS cannot modify framesets. You will have to stick with framespacing and live with it.
_Aerospace_Eng_ is offline   Reply With Quote
Old 12-14-2005, 08:20 PM   PM User | #3
TheShaner
Senior Coder

 
TheShaner's Avatar
 
Join Date: Sep 2005
Location: Orlando, FL
Posts: 1,125
Thanks: 2
Thanked 40 Times in 40 Posts
TheShaner will become famous soon enoughTheShaner will become famous soon enough
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
TheShaner is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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 +1. The time now is 05:33 AM.


Advertisement
Log in to turn off these ads.