Quantcast
Channel: CSS padding overrides overflow? - Stack Overflow
Viewing all articles
Browse latest Browse all 4

CSS padding overrides overflow?

$
0
0

Whats happening here?

#agendaTitle{    margin:0;    padding:20em 0em 0em 0.75em;    height:3em;    overflow:hidden;    background-color:#ff00ff;}

The top padding is ridiculously high just to demonstrate - with a realistic requirement the div still increases height proportionally.

Surely the overflow:hidden means I should just see a block of colour?

Occurs in FF and IE.


Viewing all articles
Browse latest Browse all 4

Latest Images

Trending Articles





Latest Images