NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page Iframe and css

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 09-03-2003, 03:47 AM THREAD STARTER               #1 (permalink)
New Member
Join Date: Aug 2003
Posts: 5
g5604 is an unknown quantity at this point
 



Iframe and css


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
g5604 is offline  
Old 09-03-2003, 09:18 AM   #2 (permalink)
Senior Member
Join Date: May 2003
Posts: 2,187
adam_uk is a jewel in the roughadam_uk is a jewel in the roughadam_uk is a jewel in the rough
 


Breast Cancer
the page that the <iframe> tag is in needs to have the css attached then just do


class='iframe'
adam_uk is offline  
Old 09-03-2003, 05:48 PM   #3 (permalink)
Senior Member
Join Date: Aug 2002
Posts: 1,255
deadserious has a spectacular aura aboutdeadserious has a spectacular aura about
 



Re: Iframe and css


Quote:
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
????: NamePros.com http://www.namepros.com/programming/15200-iframe-and-css.html

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.
deadserious is offline  
Old 09-04-2003, 05:52 AM   #4 (permalink)
NamePros Member
Join Date: Jul 2003
Posts: 118
web guru is an unknown quantity at this point
 



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;

}
web guru is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Liquid Web Smart Servers  
All times are GMT -7. The time now is 09:19 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger