December 17, 200817 yr I am trying to control my layout design by using the line break and p tags between divs. Using 2 paragraph tags (<p></p><p></p>) creates too much of a gap and <br/> too little of a gap. How can I better control the spacing of my divs? Thanks
December 17, 200817 yr You should use CSS then you can get the exact amount of space you want. <div class="myClass"> <p>This is my content</p> </div> <div class="myClass"> <p>This is some more content</p> </p> And the CSS: .myClass { margin-bottom: 20px; }
December 17, 200817 yr you can use a bottom padding or margin on <p>. so in your css, add... p {margin-bottom: 1em}; or whatever you want it to be that overides the browser default paragraph margin, which is what is determining the spacing between paragraphs at the minute.
December 17, 200817 yr I think you may want to use the margin css property since it control the space around certain objects. Thanks Zoli
Create an account or sign in to comment