Actually, it's been my experience that using transparent makes no difference
to the layout problems. For me, I've always had to define a border colour -
obviously the same as the background colour - in order for this 'hack' to
work.
Cheers,
Kevin Futter
On 1/11/04 10:55 AM, Andrew Krespanis
Hi,
In the following css snippet each attempt at giving div#header a
margin-top of 7.5em from the container; results in the container div
moving an additional 7.5em from the top of the viewport, what am I
missing? Is this the margin collapsing gremlin at work?
style type=text/css
Haven't looked closely but have you tried adding a border to the following
rule set to see if it is actually working, just not showing properly:
div#container
{
margin: 10px auto;
width: 600px;
height: 700px;
text-align: left;
background: #5A6995
The red border will highlight the div#container and possibly show that the
margin is working on div#header
I forgot to add that if this is the case, you are seeing margin trapping at
work. Previously discussed on-list:
http://www.mail-archive.com/[EMAIL PROTECTED]/msg06982.html
R
Hi,
After removing the border the problem returned. So included a
padding-top of 5em; on the container div, is this the correct course of
action, as it seemed to work in accordance to the article.
C
On Sunday, October 31, 2004, at 02:02 PM, russ - maxdesign wrote:
The red border will highlight
There are a few ways around it. That is one (although it should be 7.5em?).
Another is to add a 1px border of the same colour as the container - depends
on your need.
Hi,
After removing the border the problem returned. So included a
padding-top of 5em; on the container div, is this the
On Sun, 31 Oct 2004 15:05:01 -0800, Chris Kennon wrote:
After removing the border the problem returned. So included a
padding-top of 5em; on the container div, is this the correct course
of action, as it seemed to work in accordance to the article.
I don't know how hacky it is as a hack, but
Another is to add a 1px border of the same colour as the container - depends
on your need.
Or even
border:1px solid transparent;
Andrew
http://leftjustified.net/
**
The discussion list for
Hi,
I was hoping this one would work, as I gave it a try also.
:)
On Sunday, October 31, 2004, at 03:55 PM, Andrew Krespanis wrote:
border:1px solid transparent;
Imagination is more important than knowledge.
-Albert Einstein