Control text wrapping around boxes

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I have seen many CMS packages wrap text around a box such as the one

but the text is always far too close to the box on the page. How does
one create padding around boxes like this one? I think that with
images you can add a padding parameter (or maybe not) to space text a
distance away from crowding the graphic. Thank you.

Re: Control text wrapping around boxes

Marc wrote:
Quoted text here. Click to load it

you could add padding to your float box (as in the above case):

<div id="authorbox">
<img src="out/avatar/1_authoricon.png" alt="author" />

div#authorbox {
   margin: 3px; /* 3px margin of the box to each side */
   padding: 3px; /* 3px padding within the box to each side */
div#authorbox img {
   margin:2px; /* margin of the image to the text on each side */

please refer to the box model specs fron the W3C:


remove nixspam to reply

----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==---- The #1 Newsgroup Service in the World! >100,000
---= East/West-Coast Server Farms - Total Privacy via Encryption =---

Site Timeline