xhtml frame borders?

M

mark | r

if id add border="0" to a xhtml frameset it doesnt validate anyone know a
work around?

<style type="text/css">
*{margin:0;padding:0}
frameset,frame{border:none}
</style>
</head>
<frameset rows="10,*">
<frame src="music.asp" name="music" scrolling="no">
<frame src="home.asp" name="content" scrolling="auto">
<noframes>
<body>
 
S

Steve Pugh

mark | r said:
if id add border="0" to a xhtml frameset it doesnt validate anyone know a
work around?

It won't validate as HTML either. The W3C frames code and the frames
code used by browsers have some fundamental differences.

Your options are:
a. Don't use frames
b. Use frames and accept the borders
c. Use frames, get rid of the borders and accept that it won't
validate, and thus accept that your site is not written in HTML/XHTML.
d. Write your own custom DTD with border and validate against that,
and accept that your site is not written in HTML/XHTML.

Steve
 
M

mark | r

Steve Pugh said:
It won't validate as HTML either. The W3C frames code and the frames
code used by browsers have some fundamental differences.

Your options are:
a. Don't use frames
b. Use frames and accept the borders
c. Use frames, get rid of the borders and accept that it won't
validate, and thus accept that your site is not written in HTML/XHTML.
d. Write your own custom DTD with border and validate against that,

back to html4 i go...

mark
 
T

Travis Newbury

mark said:
if id add border="0" to a xhtml frameset it doesnt validate anyone know a
work around?

Which is more important? That is works or that it validates? =
 
T

Toby Inkster

mark said:
if id add border="0" to a xhtml frameset
[...]
<frame src="music.asp" name="music" scrolling="no">
<frame src="home.asp" name="content" scrolling="auto">

Don't you mean />?

Or at least ></frame>?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,540
Members
45,025
Latest member
KetoRushACVFitness

Latest Threads

Top