|
Posted by djcredo on 10/18/06 10:46
I have a rollover list which needs to be centered. I cannot use
display:inline, because I must be able to ensure the width of each list
item is eactly 100px. Inline doesnt let you specify width, and if you
use margin-left and margin-right you can't be sure you are getting the
right size because the width will depend on the number of characters in
the list item.
So I want to use "float:left" with "display:block" items. Now I can
specify the width, but can't center the items! They all stack up on the
left hand side.
Does anyone have any solutions to this problem?
Many thanks,
Matt
Navigation:
[Reply to this message]
|