HighDots Forums  

multiple bgcolors in frames

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss multiple bgcolors in frames in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
jflechtner
 
Posts: n/a

Default multiple bgcolors in frames - 09-19-2003 , 05:00 AM






Hello,

This "seemingly" obvious CSS inclusion is eluding me. I have a website
with a 20%/80% frameset (menu/body) and want a CSS to display a
different background color in each frame, say menu blue body white. Can
someone tell me the CSS element to use (if any) or point me in the right
direction? Many thanks.

jflechtner


Reply With Quote
  #2  
Old   
andy johnson
 
Posts: n/a

Default Re: multiple bgcolors in frames - 09-19-2003 , 08:08 AM






On Fri, 19 Sep 2003 09:00:12 GMT, jflechtner <none (AT) none (DOT) com> wrote:

Quote:
Hello,

This "seemingly" obvious CSS inclusion is eluding me. I have a website
with a 20%/80% frameset (menu/body) and want a CSS to display a
different background color in each frame, say menu blue body white. Can
someone tell me the CSS element to use (if any) or point me in the right
direction? Many thanks.

jflechtner
After having read Brucies links, try googling for "css two column
layout" and "css templates". I can't think of one valid reason to ever
use frames, even for personal use.
-
Andy

"There would be a lot more civility in this world if people
didn't take that as an invitation to walk all over you"
- (Calvin and Hobbes) (this email addy is never checked...)


Reply With Quote
  #3  
Old   
Keith Bowes
 
Posts: n/a

Default Re: multiple bgcolors in frames - 09-19-2003 , 11:03 AM



jflechtner wrote:
Quote:
This "seemingly" obvious CSS inclusion is eluding me. I have a
website with a 20%/80% frameset (menu/body) and want a CSS to display a
different background color in each frame, say menu blue body white. Can
someone tell me the CSS element to use (if any) or point me in the right
direction? Many thanks.

In header of the menu document:
<style type="text/css">
html { background-color: blue; color: silver }
</style>

In header of the body document:
<style type="text/css">
html { background-color: white; color: black }
</style>


But of course, in this day and age, going for all-CSS instead of frames
is recommended. You can use server-side scripting or an HTML
preprocessor to replace the update-once, include-everywhere nature of
frames. David Dorward has good page on this at
<URL:http://dorward.me.uk/www/frames/>.




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.