> Davy explained on 09/09/2011 :
>> Ronx <ron...@hotmail.com> wrote in
>> news:j4d0mq$jsb$1@dont- email.me:
>
>>> After serious thinking Davy wrote :
>>>> If I place in the header:
>>>> <style>
>>>> h1 { background-color: #00FFFF }
>>>> body { background-color: #FF00FF }
>>>> </style>
>>>
>>>> The first affects h1 elements on the page but
>>>> the 'body' style has no effect on any
>>>> elements on the page. As I understand it
>>>> all body elements except tables should have
>>>> a the background colour #FF00FF unless
>>>> over-riden by an inline style statement?
>>>
>>>> I believe I get the same problem if I try to
>>>> use the same style definition in a .css
>>>> Anyone any thoughts? Using Frontpage 2000 in
>>>> Windows XP
>>>
>>>> Davy
>
Although it is true that css styles are evaluated in the
order in which they appear, they should not, according to
the rules I have read, over-ride embeded style definitions
in the HEAD of a page.
I tested this by recreating the page in Notepad and placing
the Link statement in various places. So as I said in my
last post "If I move the Link statement above the Style
statement or to the bottom of the file, below the </html>
tag then it still fails!"
>
> If there are several pages it would be easier to
> use use option 1) above.
>
>
> or 3) Add inline syles to every element in the
> page: for example:
> <p style="background-color: #ff00ff;">...</p>
> <p style="background-color: #ff00ff;">...</p>
> <table style="background-color:
> #ff00ff;">...</table>
> and so on. Tedious and very difficult to edit
> later to change the colour scheme - and the body
> background will be as in the theme, not your
> colour.
>
> Option 1) is the best solution, or remove the
> theme and write your own stylesheet from scratch.
>
I edited the linked CSS stylesheet and removed
"Body {background-image: url('strbkgde.gif')}"
and then the embeded body style statement worked. But I am
still no clearer why! It seems that although an H1 backgound
colour style will over-ride a Body Background gif, maybe an
embedded body background colour style cannot over-ride a
body background gif?
Davy
Ron,
thanks for setting up those pages, very interesting - please
don't delete them cos they could be useful to others.
But it is difficult to believe that there is such a basic
fault in Frontpage - i.e always placing the Link to .css
sheets AFTER the embedded styles. So embedded styles can
never work if the external style sheet contains style
definitions for the same tags! - which in FP they are likely
to.
I Googled the web for what I thought would be thousands of
people experiencing this problem with FP but found no
reports at all.
David