difference between style, style sheet, page properties, for background picture

  • Thread starter Thread starter nic34
  • Start date Start date
N

nic34

Anyone have an explanation for the differences, and rules for
overrides, for different combinations of the following, all of which
may specify a background picture, say using a jpg file.

(1) page properties/ background picture and you specifiy some jpg
(2) a style sheet that has body: background-image:url(the jpg file);
(3) the same thing but in the style rather than in a style sheet.

Depending on combinations of one or more of the above, are there
certain rules for one overriding another? Or even for one causing a
background picture not to be used, while another one of the above
specified that one should be used?

Thanks for any info on this topic.
 
Order of precedence (from lowest to highest)
External style sheet *
Internal style *
Inline style
Html tag attribute (overrides all styles)

* If the Internal style in the HEAD section is after the style sheet link the Internal style will cascade over the style sheet
--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
_____________________________________________


| Anyone have an explanation for the differences, and rules for
| overrides, for different combinations of the following, all of which
| may specify a background picture, say using a jpg file.
|
| (1) page properties/ background picture and you specifiy some jpg
| (2) a style sheet that has body: background-image:url(the jpg file);
| (3) the same thing but in the style rather than in a style sheet.
|
| Depending on combinations of one or more of the above, are there
| certain rules for one overriding another? Or even for one causing a
| background picture not to be used, while another one of the above
| specified that one should be used?
|
| Thanks for any info on this topic.
|
 
Order of precedence (from lowest to highest)
Externalstyle sheet*
Internal style *
Inline style
Html tag attribute (overrides all styles)

* If the Internal style in the HEAD section is after thestyle sheetlink the Internal style will cascade over thestyle sheet
--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
_____________________________________________


| Anyone have an explanation for the differences, and rules for
| overrides, for different combinations of the following, all of which
| may specify a background picture, say using a jpg file.
|
| (1) page properties/ background picture and you specifiy some jpg
| (2) astyle sheetthat has body: background-image:url(the jpg file);
| (3) the same thing but in the style rather than in astyle sheet.
|
| Depending on combinations of one or more of the above, are there
| certain rules for one overriding another? Or even for one causing a
| background picture not to be used, while another one of the above
| specified that one should be used?
|
| Thanks for any info on this topic.
|

Thanks. Knowing that saves a certain amount of work.
 
Back
Top