NameSilo

Iframe and css

Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
SpaceshipSpaceship
Watch

g5604

New Member
Impact
0
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
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
the page that the <iframe> tag is in needs to have the css attached then just do


class='iframe'
 
0
Close
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
Close
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
Close
CatchedCatched

We're social

Escrow.com
Spaceship
CryptoExchange.com
Domain Recover

NamePros updates

Quick replies: search, your most used replies, and more on every post
Quick replies are easier to find and use now. The quick reply menu has a search box. Type a few letters to find the reply you want. A...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back