image-background behind li display ?

Discussing Html . Code , Software , other

Moderators: egami, macek, gesf

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

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: 22
Joined: Sun Jul 29, 2012 5:38 pm

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
  • Information
  • Who is online

    Users browsing this forum: No registered users and 3 guests