...

CSS and frameset?

I have an XHTML 1.0 Frameset doctype .html document and I use the following code:

<frameset rows="20%, 80%" border="1"> ... </frameset> 

When placing the above .html code in the W3C Validator, I get the following error:

there is no "border" attribute in the frameset .

What can I do to prevent this error? I tried to create a css file using

 frameset { border: 1px; } 

but doesn't seem to work.

Please do not comment / do not tell me how bad the frames are (I know myself).

+4
source share
2 answers

Short answer, use this instead:

 <frameset ...> <frame frameborder="xx"/> </frameset> 

[cm. http://www.codingforums.com/archive/index.php/t-10259.html ]

+1
source

What if you assigned your frameset to a class and then put the class in a stylesheet?

0
source

Source: https://habr.com/ru/post/1340880/


All Articles