The <div> element gives the default spacing on the top, between the top border and the <p> tag. Is there a way to reduce the inner padding of a div? I've tried both of these:
The problem is you need to adjust both the <div> and the <p>. The spacing you get will be whatever is the maximum of the two so if you set the top of the div to be 0px, but the <p> has a default bottom of say 10px you still get the 10px between them.
I also think it's margins you want to change instead of the padding. You might also not want to set the margins (or paddings) for all <div>s and <p>s. It might work better to define classes that you can add to any <div>s or <p>s you want to have the new margin.
__________________ l Search Engine Friendly Web Design | Please login or register to view this content. Registration is FREE
l Tips On Marketing, SEO, Design, and Development | Please login or register to view this content. Registration is FREE