Previous Message
Next Message

Re: [css-d] Boxpunch

Sent by Vector40 on 27 June 2002 17:05


In a message dated Thu, 27 Jun 2002 4:22:03 AM Eastern Standard Time, Xian [EMAIL-REMOVED]>
writes:

>Simple. What you have there is working. But you can't see the effects
>because your floated element doesn't have a background declared. So it is
>defaulting to transparent. And the borders from the underlying element are
>showing through and tricking you.
>
>Give your floated element any kind of background and the borders will go
>bye-bye.

Ach, jeez. I knew I was going to feel dumb.

Except...

Well, okay, maybe not QUITE so dumb. This is odd - it's mostly working now, but in IE 5.1 Mac, the
TOP border is still showing?

The left one disappears correctly, but the top one still shows.

Not making a whole lot of sense to me... I suspect browser strangeness, because it works on Mozilla,
but it can't only be that, so I'm sure I'm messing something else up : )

Also, this is slightly less related, more theoretical, but - is the margin of a box really supposed
to be the same color as its background? That strikes me as strange. Isn't the margin OUTSIDE the
box, and should thusly be invisible?

I guess if that was true, this entire boxpunch wouldn't work anyway, but now that I think about it,
it is rather odd. Aren't margins usually meant to be the same color as whatever's BEHIND the div (or
whatever)? I don't think I've ever seen them as the same - as an extension of the box, as it were.
The padding, yes - but the margin?


- Brandon Oto
Previous Message
Next Message

Message thread:

Possibly related: