yet ANOTHER iframe question *sigh*

admin

Administrator
Staff member
hi guys,

at work so cant really test, but was wondering if this is possible for styling iframes (postion of iframe etc)

<iframe id="iframe">

#iframe{
top: 60px;
left:60px;
}

(you get the idea)

is this the best way (if it works) to postions these things?

if not what does anyone else do?

Thanks!

cheers.sure, if you only have one you can use an id and # to match them

if you have a group of elements that you need to look the same, define a class but using a . instead of #, then you can reserve the id tag for use by javascript.

So...

in the css file:

.button{
background:url(buttonback.jpg);
color: #AAAAEE;
font-family:Verdana;
}

then in the htm file:

<input type="button" id="btnAdd" class="button" value="Add">
<input type="button" id="btnRemove" class="button" value="Remove">
<input type="button" id="btnSearch" class="button" value="Search">

that way, all the button can have the same appearancethanks for the reply and the good tips!

very helpful
 
Back
Top