image-background behind li display ?

Discussing Html . Code , Software , other

Moderators: macek, egami, gesf

Post Reply
User avatar
freshnet
php-forum Active User
php-forum Active User
Posts: 342
Joined: Tue Feb 22, 2011 8:19 am
Location: Canada

Re: image-background behind li display ?

Post by freshnet » Fri Jul 27, 2012 5:43 am

I would say you're better off using margins, as these will keep the space between elements fixed. The padding sets the spacing within the borders of the element, which can then throw off the margins if the container element is a fixed size.

bliss
New php-forum User
New php-forum User
Posts: 24
Joined: Sun Jul 29, 2012 5:38 pm

Re: image-background behind li display ?

Post by bliss » Sun Jul 29, 2012 5:46 pm

freshnet wrote:I would say you're better off using margins, as these will keep the space between elements fixed. The padding sets the spacing within the borders of the element, which can then throw off the margins if the container element is a fixed size.
My thoughts exactly. Try playing around with the margins to get the right positioning.

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 0 guests