In the code below I have a certain color for the body, a different one
for the content_body. For some reason although the DIV for the
content_body has all of the pages content in it the background color
appears in a certain part on the top of the page. Why is that? (the
css is also below)
In article
<72d52d3f-cfbe-4d69-8c04-a8b2a44fc6cf@i72g2000hsd.googlegroups.co
m>,
asaffos wrote:
> Hi,
>
> In the code below I have a certain color for the body, a different one
> for the content_body. For some reason although the DIV for the
> content_body has all of the pages content in it the background color
> appears in a certain part on the top of the page. Why is that? (the
> css is also below)
>
>
....
In what you supply, there is nothing in any of the divs, the
backgrounds are as you supplied them in your css. Perhaps you can
go to:
http://netweaver.com.au/alt/assafos.html
which is essentially your own mark up with some content added and
some more bg colours and colors to show your arrangement better.
What is it that *you* are puzzled by in this (as distinct from
quite a few things many might be puzzled by)
--
dorayme
Re: background color not working as expected
am 28.12.2007 12:47:12 von asaffos
On Dec 26, 10:54=A0pm, dorayme wrote:
> In article
> <72d52d3f-cfbe-4d69-8c04-a8b2a44fc...@i72g2000hsd.googlegroups.co
> m>,
>
> =A0asaffos wrote:
> > Hi,
>
> > In the code below I have a certain color for the body, a different one
> > for the content_body. For some reason although the DIV for the
> > content_body has all of the pages content in it the background color
> > appears in a certain part on the top of the page. Why is that? (the
> > css is also below)
>
> >
>
> ...
>
> In what you supply, there is nothing in any of the divs, the
> backgrounds are as you supplied them in your css. Perhaps you can
> go to:
>
> http://netweaver.com.au/alt/assafos.html
>
> which is essentially your own mark up with some content added and
> some more bg colours and colors to show your arrangement better.
> What is it that *you* are puzzled by in this (as distinct from
> quite a few things many might be puzzled by)
>
> --
> dorayme
Hi,
Thanks for the help.
I'm surprised from the face that the background color of the content
body isn't inherited automaticlly in the other divs that are inside
content body (for example right_col).
Thanks
Re: background color not working as expected
am 28.12.2007 13:01:41 von rf
"asaffos" wrote in message
news:eb339fd7-b8d3-41c9-828e-e60957171e2a@w56g2000hsf.google groups.com...
I'm surprised from the face that the background color of the content
body isn't inherited automaticlly in the other divs that are inside
content body (for example right_col).
URL? Or do you just want us all to guess?
--
Richard.
Re: background color not working as expected
am 28.12.2007 17:06:58 von GTalbot
On 26 d=E9c, 15:54, dorayme wrote:
> In article
> <72d52d3f-cfbe-4d69-8c04-a8b2a44fc...@i72g2000hsd.googlegroups.co
> m>,
> http://netweaver.com.au/alt/assafos.html
>
> which is essentially your own mark up with some content added and
> some more bg colours and colors to show your arrangement better.
Dorayme,
I examined your testpage (thank you for providing it) and figured out
that this was bug #46 and bug #66 at this page:
The background-color issue is just a consequence of the way IE7
(*incorrectly, wrongly*) renders floated elements when the container
has a specified width. It is definitely due to incorrect
implementations of float feature by Internet Explorer 7 (and most
likely IE6 too).
Regards and season's greetings, G=E9rard
Re: background color not working as expected
am 31.12.2007 05:42:32 von dorayme
In article
m>,
asaffos wrote:
> On Dec 26, 10:54 pm, dorayme wrote:
> > In article
> > <72d52d3f-cfbe-4d69-8c04-a8b2a44fc...@i72g2000hsd.googlegroups.co
> > m>,
> >
> > asaffos wrote:
> > > Hi,
> >
> > > In the code below I have a certain color for the body, a different one
> > > for the content_body. For some reason although the DIV for the
> > > content_body has all of the pages content in it the background color
> > > appears in a certain part on the top of the page. Why is that? (the
> > > css is also below)
> >
> > >
> >
> > ...
> >
> > In what you supply, there is nothing in any of the divs, the
> > backgrounds are as you supplied them in your css. Perhaps you can
> > go to:
> >
> > http://netweaver.com.au/alt/assafos.html
> >
> > which is essentially your own mark up with some content added and
> > some more bg colours and colors to show your arrangement better.
> > What is it that *you* are puzzled by in this (as distinct from
> > quite a few things many might be puzzled by)
> >
> > --
> > dorayme
>
> Hi,
>
> Thanks for the help.
>
> I'm surprised from the face that the background color of the content
> body isn't inherited automaticlly in the other divs that are inside
> content body (for example right_col).
>
> Thanks
OK, fair enough. But it can make a bit of sense to you if you
form a picture of how floats are not "in" their containers in any
intuitive way.
If you go to:
http://netweaver.com.au/alt/assafos.html
and get rid of the wrapper (it seems irrelevant to *this*
surprise of yours) and get rid of all margins and paddings, get
rid of the backgrounds on the floats and stick distinctive
borders on all things and make the body color and background
distinctive, (and you may as well be rid of the right float too
for this exercise), and while we are at it, lets put in a clear
gif that takes up a lot of the width so that the float can't jut
in, you will see how the floats should not have *any* part of
themselves "housed" by the parent.
http://netweaver.com.au/alt/assafos1.html
The parent does not cover them with its height. They overflow.
They have a certain queer independence and and while they inherit
the color, their backgrounds are transparent. If you look at the
above url in IE6 it is easy to imagine why you might be
surprised.
Messing about with your surprise has given me thoughts to expand
a few things in my hobby at http://netweaver.com.au/floatHouse/
(Please don't groan everyone... and Boji, stop yawning!
Time for a swim, this time it will be Bronte and back to get
ready for a NYE bash (at friends who cooks divine Greek) and the
fireworks at Glebe. This year, I understand, Glebe will be a
barge point for the Sydney harbour fireworks. Great! Happy New
Year everyone!)
--
dorayme
Re: background color not working as expected
am 01.01.2008 04:02:29 von dorayme
In article
>,
GTalbot wrote:
> On 26 déc, 15:54, dorayme wrote:
> > In article
> > <72d52d3f-cfbe-4d69-8c04-a8b2a44fc...@i72g2000hsd.googlegroups.co
> > m>,
>
>
> > http://netweaver.com.au/alt/assafos.html
> >
> > which is essentially your own mark up with some content added and
> > some more bg colours and colors to show your arrangement better.
>
>
> Dorayme,
>
> I examined your testpage (thank you for providing it) and figured out
> that this was bug #46 and bug #66 at this page:
>
> http://www.gtalbot.org/BrowserBugsSection/MSIE7Bugs/
>
> The background-color issue is just a consequence of the way IE7
> (*incorrectly, wrongly*) renders floated elements when the container
> has a specified width. It is definitely due to incorrect
> implementations of float feature by Internet Explorer 7 (and most
> likely IE6 too).
>
> Regards and season's greetings, Gérard
I have been meaning to get back to you on this. But I wanted to
fire up my Win box to see the bugs you mention. Today I had a
chance. I was thinking the OP's concerns were something else,
more to do with the relation of floats to their containers and
what things they inherit. I was taking a look at your reference
to bug #46, for example, on my Winbox and IE6 and the case is
rather different to the OP's.
But it was nevertheless informative to look at the cases you
mention.