The application I'm working on requires html frames. The only issue I'm having is that no matter what I do, I can't remove the border of the frames to not display/set to "0px". Here's what I've worked up to:
<frameset id="Frameset1" rows="150px,100%" frameborder="0" style="border-width: 1px; border-style: hidden;">
<frame src="Site_Header.aspx" name="headerFrame" noresize="noresize" frameborder="0" style="border-width: 0px; border-style: hidden" />
<frameset id="InnerFrame" cols="250px,*" frameborder="0" style="border-width: 0px; border-style: hidden">
<frame src="Site_Nav.aspx" name="navigationFrame" noresize="noresize" frameborder="0" style="border-width: 0px; border-style: hidden" />
<frame src="Welcome.aspx" name="contentFrame" noresize="noresize" frameborder="0" style="border-width: 0px; border-style: hidden" />
</frameset>
<noframes>
<i>This web application requires the use of HTML Frames. Please use a newer browser that supports HTML Frames.</i>
</noframes>
</frameset>
Galaxy_Stran...
Member
61 Points
69 Posts
HTML Frameset
Mar 01, 2012 04:48 PM|LINK
The application I'm working on requires html frames. The only issue I'm having is that no matter what I do, I can't remove the border of the frames to not display/set to "0px". Here's what I've worked up to:
<frameset id="Frameset1" rows="150px,100%" frameborder="0" style="border-width: 1px; border-style: hidden;"> <frame src="Site_Header.aspx" name="headerFrame" noresize="noresize" frameborder="0" style="border-width: 0px; border-style: hidden" /> <frameset id="InnerFrame" cols="250px,*" frameborder="0" style="border-width: 0px; border-style: hidden"> <frame src="Site_Nav.aspx" name="navigationFrame" noresize="noresize" frameborder="0" style="border-width: 0px; border-style: hidden" /> <frame src="Welcome.aspx" name="contentFrame" noresize="noresize" frameborder="0" style="border-width: 0px; border-style: hidden" /> </frameset> <noframes> <i>This web application requires the use of HTML Frames. Please use a newer browser that supports HTML Frames.</i> </noframes> </frameset>Is it possible to remove the frame borders?
Galaxy_Stran...
Member
61 Points
69 Posts
Re: HTML Frameset
Mar 01, 2012 06:10 PM|LINK
Update: When I use
frameborder="no", it works in Firefox, but not in IE.Anybody know a workaround?
Danny Gokey
Member
290 Points
56 Posts
Re: HTML Frameset
Mar 02, 2012 12:49 AM|LINK
Hi,
For some practical reasons, the frmaeborder attribute may be better not to specifiy borders, and please use CSS to app border
style instead. see this:
http://www.w3schools.com/tags/att_frame_frameborder.asp
http://www.javascriptkit.com/howto/border.shtml
Hope it helps.
Galaxy_Stran...
Member
61 Points
69 Posts
Re: HTML Frameset
Mar 02, 2012 03:59 PM|LINK
I had also tried using CSS, even ASP controls the styling thusly, to no avail.
I found out that IE 8 was also unaffected, only IE9 would not reflect the changes. This, is the solution that works for each browser I've tested on: