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 01-12-2003, 03:06 PM   PM User | #1
ScottInTexas
Regular Coder

 
Join Date: Nov 2002
Posts: 567
Thanks: 2
Thanked 4 Times in 4 Posts
ScottInTexas is on a distinguished road
Can't kill IFrame border.

I am positioning a menubar in an IFrame and I dont want the IFrame to be apparent. It continues to show up as an inset frame.

style sheet looks like this.
.menuFrame{
frameborder:0;
width:100%;
height:25px;
marginwidth:0px;
marginheight:0px;
padding:0px;
background-color:#1efefe;
width:100%;
border-style:none;
scrolling:no;
}
and the HTML looks like this
<iframe class="menuFrame" ID="menubar"></iframe>
If you want to see it you can go to www.ssscuba.com/testindex.html

I want the table to show up as if there were no frame there. When I tried to use the Div tag it wipes out the current page and puts the menubar neatly at the top of the page.

Thanks for your help.
__________________
Scott Stewart
Always happy to learn from pros.
ScottInTexas is offline   Reply With Quote
Old 01-12-2003, 03:26 PM   PM User | #2
meow
Regular Coder

 
Join Date: Jan 2003
Posts: 680
Thanks: 0
Thanked 0 Times in 0 Posts
meow is an unknown quantity at this point
Hi!

Oops! To start with these aren't CSS properties

frameborder:0;
marginwidth:0px;
marginheight:0px;
scrolling:no;

they are HTML attributes. 'border: none', or as you have it, 'border-style: none' should take care of the border but alas it doesn't work with iframe in IE5.x (not sure about 6). IE5 won't let you style the background of the iframe either.

I suggest that you simply use <iframe frameborder="0">
__________________
(o<
//\ &nbsp; &nbsp; &nbsp; =^..^=
&nbsp; &nbsp; $!
meow is offline   Reply With Quote
Old 01-12-2003, 03:42 PM   PM User | #3
ScottInTexas
Regular Coder

 
Join Date: Nov 2002
Posts: 567
Thanks: 2
Thanked 4 Times in 4 Posts
ScottInTexas is on a distinguished road
Thanks much Meow,

I had tried everything and I wanted to keep it all in a nice clean style sheet, but it is killing me on what works, what's allowed, and when. Your solution was exactly right and I appreciate your VERY fast response.

Hope I can help you sometime.
__________________
Scott Stewart
Always happy to learn from pros.
ScottInTexas is offline   Reply With Quote
Old 01-12-2003, 03:57 PM   PM User | #4
meow
Regular Coder

 
Join Date: Jan 2003
Posts: 680
Thanks: 0
Thanked 0 Times in 0 Posts
meow is an unknown quantity at this point
Glad I could help.
Yes, the browsers are a pain. You could do it in CSS though if you can accept a border in IE5.x (and maybe 6).
__________________
(o<
//\ &nbsp; &nbsp; &nbsp; =^..^=
&nbsp; &nbsp; $!
meow is offline   Reply With Quote
Old 01-13-2003, 03:06 PM   PM User | #5
redhead
Regular Coder

 
Join Date: Jun 2002
Location: United Kingdom Confused: Often
Posts: 859
Thanks: 0
Thanked 0 Times in 0 Posts
redhead is an unknown quantity at this point
<iframe ... frameborder="0"> should do it
__________________
redhead
redhead 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 02:30 AM.


Advertisement
Log in to turn off these ads.