No replies
rln1001
Offline
newbie
Last seen: 12 years 8 weeks ago
Joined: 2004-07-13
Posts: 1
Points: 0

I'm having a difficult time reconciling code so that it both validates and works on Opera (I've got version 7.23). Basically if I don't use the border="0" attribute on the first frameset tag, then Opera displays the frames with a border. If I do use the border attribute, then the page won't validate (I'm using <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN">). Supposedly if I call the border attribute in a stylesheet, then the code should validate, but Opera doesn't seem to be paying any attention to the stylesheet!

My HTML code is

<frameset rows="95,*">
<frame src="menu.html" name="menu" scrolling="no" noresize frameborder="0" marginwidth="0" marginheight="0" title="sitewide navigation bar">
<frameset cols="145,615*">
<frame src="submenu.html" name="submenu" frameborder="0" scrolling="no" noresize marginwidth="0" marginheight="0" title="subsection navigation bar">
<frame src="mainframe.html" name="main" scrolling="auto" frameborder="0" marginwidth="20" marginheight="0" title="main frame">
</frameset>

And my CSS code is:

frameset { border: 0; }
frame { border: 0; }

I've also tried using border-width: 0 and border: no, but they didn't work either! The HTML page is definitely pointing at the CSS file, so it's not that the link is broken. Any ideas would be very gratefully received!