|
Posted by David on 11/02/06 00:29
I have fixed up some of my web page with some of the tips I was given.
I am still having a few problems. In firefox, my footer, that says
"copyright..." has an extra line break above it, and there is no
padding in firefox on the left of the text in the body. To make it
easier to view, you can see my page at liferipple.com. You can see the
CSS file at liferipple.com/styles/main.css. Thanks for all of the
replies, you have been really helpfull.
David
Gérard Talbot wrote:
> Ben C wrote :
> > On 2006-10-31, G?rard Talbot <newsblahgroup@gtalbot.org> wrote:
> >> David wrote :
> > [snip]
> >>> #navbody
> >>> {
> >>> width:100%;
> >>> }
> >> width:100% is a sign of over-constrained layout. If you can avoid
> >> defining rigid, unflexible width. width: auto is the default value and
> >> is usually good, excellent as is.
> > [snip]
> >>> #body
> >>> {
> >>> width:100%;
> >> 1- Right here: over-constraining, rigid. What was wrong with width: auto
> >> or no width at all?
> >
> > I've noticed a few people doing width: 100% in places where the computed
> > value for auto width is 100% of the container anyway,
>
> Yes, it could end up to be 100% of the available width of the container
> anyway... but it might not. Often, people do not know or are unaware of
> what width: auto means to begin with.
>
> > and started
> > lecturing them about it. But I wonder if this is some IE workaround, it
> > seems to be such a common thing?
>
> If the element has a border and padding (or just padding), then width:
> 100% of the available width of its container will create an overflow and
> an horizontal scrollbar: then many people won't understand where/why/how
> a scrollbar appeared.
>
> Gérard
> --
> remove blah to email me
Navigation:
[Reply to this message]
|