CSS: having align / overflow problems
-
[ Moderator note: moved to Fixing WordPress. ]
Hi forum users,
I did use this to style a full width block element:
.div {clear:both; display:block;}
But while developing a theme I now and then encounter problems with elements which don’t align properly and overflow the margin/padding top/bottom of the element above/underneath.
So in those cases I use this CSS:
.div {width:100%; clear:both; float:left; display:block;}
In case with border:
.div {width:100%; clear:both; float:left; display:block; border:2px solid #333; box-sizing:border-box;}
But I don’t want to use the width property too much, is there another way to solve the alignment/overflow issue?
Guido
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘CSS: having align / overflow problems’ is closed to new replies.