Quantcast
Channel: Templatespoint » Beginners tips
Viewing all articles
Browse latest Browse all 10

problem when apply padding to float divs

$
0
0
It is common problem in html coding to most beginners. when you apply padding to floated div, it may goes bottom. Example <div style="width:1000px"> <div style="float:left; width:500px;">Left div</div> <div style="float:left; width:500px; padding:10px;">Right div</div> </div> Above code may occur problem when you apply padding:10px. Because, there are two child divs in the main div, main div [...]

Viewing all articles
Browse latest Browse all 10

Trending Articles