Please help with a Style Sheet question

  • Thread starter Thread starter newboy18
  • Start date Start date
N

newboy18

I have am creating a small website using Frames, each
frame has a different font size, font color and
background color.
I have also created an external Style sheet but can I use
the same style sheet for all the frames or will I need a
new sheet for each frame, Top, Left and Bottom?
If so how, has anyone got an example that is easy to
follow?
 
You can use the same style sheet for all pages
Format Style Sheet Links (select yours) and apply to all pages

CSS cascades so one style will rule over another. The order of priority is:
HTML Tag Attributes (font / body etc) - overrules all CSS styles
Inline styles - style="..." attribute w/i a html tag
Embedded styles (<style>....<.style in HEAD section)
External Style sheet links (in reverse sequence applied)

Note if you are using a theme applied using CSS it will always be applied as the last thing before the </head> tag

--




| I have am creating a small website using Frames, each
| frame has a different font size, font color and
| background color.
| I have also created an external Style sheet but can I use
| the same style sheet for all the frames or will I need a
| new sheet for each frame, Top, Left and Bottom?
| If so how, has anyone got an example that is easy to
| follow?
 
Thanks but how do I progam the Style Sheet to distinguish
between setting the background of the Left Frame to
Black, the background of the Center Frame to red and the
background of the Main Frame to yellow for instance?

-----Original Message-----
You can use the same style sheet for all pages
Format Style Sheet Links (select yours) and apply to all pages

CSS cascades so one style will rule over another. The order of priority is:
HTML Tag Attributes (font / body etc) - overrules all CSS styles
Inline styles - style="..." attribute w/i a html tag
Embedded styles (<style>....<.style in HEAD section)
External Style sheet links (in reverse sequence applied)

Note if you are using a theme applied using CSS it will
always be applied as the last thing before the said:
--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (- ;
To find the best Newsgroup for FrontPage support see:
http://www.net-sites.com/sitebuilder/newsgroups.asp
_____________________________________________


"newboy18" <[email protected]> wrote
in message news:[email protected]...
 
Hi,
background colour is set in the body rule of your stylesheet
body{
background-color:red;
}
so you'll need seperate stylesheets for each frame.

--
Jon
Microsoft MVP - FP

newboy18 said:
Thanks but how do I progam the Style Sheet to distinguish
between setting the background of the Left Frame to
Black, the background of the Center Frame to red and the
background of the Main Frame to yellow for instance?

-----Original Message-----
You can use the same style sheet for all pages
Format Style Sheet Links (select yours) and apply to all pages

CSS cascades so one style will rule over another. The order of priority is:
HTML Tag Attributes (font / body etc) - overrules all CSS styles
Inline styles - style="..." attribute w/i a html tag
Embedded styles (<style>....<.style in HEAD section)
External Style sheet links (in reverse sequence applied)

Note if you are using a theme applied using CSS it will
always be applied as the last thing before the said:
--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (- ;
To find the best Newsgroup for FrontPage support see:
http://www.net-sites.com/sitebuilder/newsgroups.asp
_____________________________________________


"newboy18" <[email protected]> wrote
in message news:[email protected]...
| I have am creating a small website using Frames, each
| frame has a different font size, font color and
| background color.
| I have also created an external Style sheet but can I use
| the same style sheet for all the frames or will I need a
| new sheet for each frame, Top, Left and Bottom?
| If so how, has anyone got an example that is easy to
| follow?


.
 
Since style sheets cascade (see the sequence in my prior post), don't set them in your style sheet (or set your colors in your style
sheet for say the "main" content frame - say the Main frame), then apply either an embedded style, or body tag colors in your Left
and Center frame pages (or add a second unique style sheet after the default one in just your other 2 frames.

--




| Thanks but how do I progam the Style Sheet to distinguish
| between setting the background of the Left Frame to
| Black, the background of the Center Frame to red and the
| background of the Main Frame to yellow for instance?
|
|
| >-----Original Message-----
| >You can use the same style sheet for all pages
| >Format Style Sheet Links (select yours) and apply to all
| pages
| >
| >CSS cascades so one style will rule over another. The
| order of priority is:
| >HTML Tag Attributes (font / body etc) - overrules all
| CSS styles
| >Inline styles - style="..." attribute w/i a html tag
| >Embedded styles (<style>....<.style in HEAD section)
| >External Style sheet links (in reverse sequence applied)
| >
| >Note if you are using a theme applied using CSS it will
| always be applied as the last thing before the </head> tag
| >
| >--
| >
| >_____________________________________________
| >SBR @ ENJOY (-: [ Microsoft MVP -
| FrontPage ]
| >"Warning - Using the F1 Key will not break anything!" (-
| ;
| >To find the best Newsgroup for FrontPage support see:
| > http://www.net-sites.com/sitebuilder/newsgroups.asp
| >_____________________________________________
| >
| >
| in message | >| I have am creating a small website using Frames, each
| >| frame has a different font size, font color and
| >| background color.
| >| I have also created an external Style sheet but can I
| use
| >| the same style sheet for all the frames or will I need
| a
| >| new sheet for each frame, Top, Left and Bottom?
| >| If so how, has anyone got an example that is easy to
| >| follow?
| >
| >
| >.
| >
 
Back
Top