Reputation: 394
Having a strange issue with floating divs with background colours.
We've designed a div to mimic a banner functionality for a client. The banner can be aligned left/right of text or neither.
When the banner is not aligned, then the banner looks as it should. However, extra padding is added when the banner is floating left/right.
Here's an example - http://jsfiddle.net/ZSE93/
If you have any ideas, that'd be great. Or if you have any questions, I'll happily explain them.
Cheers
Upvotes: 0
Views: 43
Reputation: 584
do you mean this example
.banner{
float:right;
}
http://jsfiddle.net/kisspa/5dgFv/
Upvotes: 0