Dynadot

Iframe and css

Spaceship Spaceship
Watch
Hi,

is is possible to set varibles of an iframe, such as scrollbars, background colour etc.. from the same stylesheet as my main html file?

cheers,
G
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
the page that the <iframe> tag is in needs to have the css attached then just do


class='iframe'
 
0
•••
Re: Iframe and css

Originally posted by g5604
Hi,

is is possible to set varibles of an iframe, such as scrollbars, background colour etc.. from the same stylesheet as my main html file?

cheers,
G

Yes it is possible!

You can call your style sheet in any page by adding something like this to the head section of your page:
Code:
<link rel="stylesheet" type="text/css" href="/path/css.css" />

You can also use @import

It is alot easier to make a style sheet this way and then be able to add it to the pages you want with one line of code then it is to try and edit each individual file. :)
 
0
•••
As its already been said it is possible. If you add this code to your style sheet or in between your head tags it will change the scroll bar colour. All you have to do is change the colours to what ever you want.

Code:
body 
{

border: 1 solid #0434B1; 
SCROLLBAR-FACE-COLOR: #eeeeff; 
SCROLLBAR-HIGHLIGHT-COLOR: #b8c9dc; 
SCROLLBAR-SHADOW-COLOR: #b8c9dc; 
SCROLLBAR-3DLIGHT-COLOR: #b8c9dc; 
SCROLLBAR-ARROW-COLOR: #b8c9dc; 
SCROLLBAR-TRACK-COLOR: #eeeeff; 
SCROLLBAR-DARKSHADOW-COLOR: #eeeeff;

}
 
0
•••
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back