Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CSS Name for iFrame frameborder 1

Status
Not open for further replies.

gwar2k1

Programmer
Apr 17, 2003
387
GB
Any one know how i change the frame border (frameborder in standard tag) of an iFrame using CSS? border, frameborder and frame-border don't work

~*Gwar3k1*~
"To the pressure, everything's just like: an illusion. I'll be losing you before long..."
 
do a workaround. insert the iframe in a table and give the change the table border color... :)

Known is handfull, Unknown is worldfull
 
.main { background-color: #000000; }
iframe { height: 100%; width: 100%; }

...

<table class=&quot;main&quot;>
<tr>
<td><iframe name=&quot;content&quot; src=&quot;initial.html&quot;></iframe></td>
</tr>
</table>

Everything is fine except i cant get rid of the frame's border.

~*Gwar3k1*~
&quot;To the pressure, everything's just like: an illusion. I'll be losing you before long...&quot;
 
<iframe name=&quot;content&quot; src=&quot;initial.html&quot; frameborder='0'></iframe>

?

Known is handfull, Unknown is worldfull
 
I want the css property for it

~*Gwar3k1*~
&quot;To the pressure, everything's just like: an illusion. I'll be losing you before long...&quot;
 
well arent u happy with tables?

Known is handfull, Unknown is worldfull
 
its for ease of use. if i was happy with just using tables i don't think id be asking for help with iframes. sorry if this seems short tempered but your last two replies have barely been relevant to what Im asking.

I ask for the CSS property for frameborder, a html property I have already identified.
You provide me with the html property again...

Thanks for attempting but if it isnt going to help, id rather not waste Tek-tip's resources

~*Gwar3k1*~
&quot;To the pressure, everything's just like: an illusion. I'll be losing you before long...&quot;
 
Why don't you just use

<style type=&quot;text/css&quot; media=&quot;screen&quot;>
.frmstyle{border-style: groove;border-width:0.16em;margin:0px;padding: 0px }
</style>
<body>
<iframe class=&quot;frmstyle&quot; src=&quot;
You can then set the border to any of the standard css types
regards
Ian

Infinity exists! - I just haven't worked out a way to get there yet.

| |
 
Sorry Vbkris
Thanks ne4x4

~*Gwar3k1*~
&quot;To the pressure, everything's just like: an illusion. I'll be losing you before long...&quot;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top