Jay Kinney wrote:
> At 9:08 PM -0400 8/30/06, ~davidLaakso wrote:
>
>   
>> Jay Kinney wrote:
>>     
>>>  I have a horizontal nav bar into which I put a <ul> of gifs for the
>>>  links. I floated them left and they all line up next to each other,
>>>  but they (of course) are all lined-up on the left side of the nav bar.
>>>
>>>  I want to have them centered in a row in the nav bar. That way, if I
>>>  later add in another gif or two, they'll expand out from the center.
>>>  
>>>       
>> Would modification of this method work for you?
>> <http://css.maxdesign.com.au/listamatic/horizontal27.htm>
>>     
>
> David,
>
> Thanks for the suggestion. You know, I had come upon that Listamatic 
> site earlier today and had even looked at that list example, but I 
> had trouble conceptualizing whether this CSS could somehow be applied 
> to my problem. If you or someone could point out the salient code 
> that applies to centering floating image elements, that would be 
> great. I'm enough of a newbie on CSS that it isn't self-evident to 
> me...
>   

Jay,

As you can see by looking at the code of that example, there is no 
floating involved. Instead, display: inline is used to make the list 
items line up horizontally. Because the text remains inline, text-align: 
center can then be used to center the list items.

Zoe

-- 
Zoe M. Gillenwater
Design Services Manager
UNC Highway Safety Research Center
http://www.hsrc.unc.edu


______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to