...

View Full Version : Iframe attributes



Mzungu
01-08-2004, 09:14 PM
Hi

I've found the attributes of <iframe> on w3c but I cannot find its attributes for use in css.

Can anyone help?

I want to write the frameborder attribute in my css file..

Thanks
Mz

me'
01-08-2004, 09:18 PM
Use border.

Most CSS properties apply to all elements. There aren't individual sets of properties that apply to only certain elements, which is probably why you couldn't find it.

Mzungu
01-08-2004, 09:22 PM
The border is just placed around the iframe and thus is not the same as the html:frameborder.


Any other ideas?



Mz

realisis
01-09-2004, 04:58 AM
Mzungu,

You are right in that the two borders are distinct. You'll prolly find that you have to kluge what you want by first setting

<iframe frameborder="no"></iframe>

... to completely suppress the default "chrome" border, and then styling your custom border as desired, emulating the chrome border if need be, and changing whatever attributes you want, eg:

iframe { border:3px inset #C0C0C0; }

me'
01-10-2004, 02:26 PM
That should frameborder="0":
<!ELEMENT iframe %Flow;>
<!ATTLIST iframe
%coreattrs;
longdesc %URI; #IMPLIED
name NMTOKEN #IMPLIED
src %URI; #IMPLIED
frameborder (1|0) "1"
marginwidth %Pixels; #IMPLIED
marginheight %Pixels; #IMPLIED
scrolling (yes|no|auto) "auto"
align %ImgAlign; #IMPLIED
height %Length; #IMPLIED
width %Length; #IMPLIED
>

bazz
01-13-2004, 04:13 PM
hi. dunno if this will hell you but this is how I have done my iframe in the css.

.facilitiesiframe {
width : 100%;
height : 325px;
border : 0;
overflow : hidden;
background-color : transparent;
margin-top : 15px;
}

se how the iframe displays here (http://www.ireland-info.com/cgi-bin/introduction.pl?dpt=marlfield_dpt)

The iframe is the bulletted text betwen the main image and the taxi logo/ad at the bottom. They're both in the left div.

hth



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum