div, hx, p, etc. tags have a line space above and below them. to avoid this,
you need to add a CSS style - display:inline;

but the suggestions given by others of using dt etc is better than using
divs... I guess

thanx
Alexander Gounder
http://www.gounder.co.in

On Sat, Jul 5, 2008 at 10:06 PM, Thierry Koblentz <[EMAIL PROTECTED]> wrote:

> > @Essential, there is no image, the number in green block is text. It has
> some padding and background-image (left-top corner). And it is already
> > floated, because it is .float1. Any ideas?
> >
> > The real life code for those images looks like this:
> >                       <dl>
> >                               <dt>30</dt>
> >                               <dd><strong>Commodore645</strong> <span><a
> href="#">add present</a></span></dd>
> >                       </dl>
> > I can give a link to live demo, but i just want to simplify it for the
> list. The abstract float1 float2 example is just my problem...
>
> Why floating everything?
> Did you try this approach:
>
>  dl {overflow:hidden;zoom:1;}
>  dt {float:left;width:20px;height:20px;}
>  dd {margin-left:30px;}
>
> --
> Regards,
> Thierry | http://www.TJKDesign.com
>
>
>
>
>
>
>
>
> *******************************************************************
> List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
> Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
> Help: [EMAIL PROTECTED]
> *******************************************************************
>
>


*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************

Reply via email to