PDA

View Full Version : List Styling


Hunter86
03-05-2009, 01:55 PM
i have a list that i am using for navigation i have given each li item a class and applied a bg image. how do i go about getting the li text to become central to the bg image l i have centered the text but it still sits at the top of bg image, when i apply padding or margins it pushes the images apart ?

i have had no trouble doing this on a inline list but i cant seem to get it to work.

Hunter86
03-05-2009, 02:22 PM
i sorted it i wasn’t thinking of the box module!!!! the padding adds to the overall size which is where the extra spacing was coming from, so i used the padding and height properties together to create the correct look.
I thinks that is the right way anyway it works

Corrosive
03-05-2009, 02:38 PM
i sorted it i wasn’t thinking of the box module!!!! the padding adds to the overall size which is where the extra spacing was coming from, so i used the padding and height properties together to create the correct look.
I thinks that is the right way anyway it works

Sounds right to me. That's what I'd do.