Re: [WSG] Center Align an Unorder List

2007-07-25 Thread Francisco Lara

yes it's good, i like the float:left better than display:inline.

On 7/25/07, Ryan Lin <[EMAIL PROTECTED]> wrote:


Hi there,

ul { display:block; width:100%; text-align:center; list-style:none}
ul li {float:left; margin-right:5px}

These two styles should get you this.
Did I do it correct? Comments?


Ryan Moore wrote:
> Looking to Center Text on an unordered list.
>
> Example:
>
> 
> Link 1
> Link 2
> Link 3
> 
>
> Desired Effect:
>
> Link 1 Link 2 Link 3
>
> I don't have my CSS Code Base with me right now so hopefully someone
> can lend a hand.
>
> ***
> List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
> Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
> Help: [EMAIL PROTECTED]
> ***



***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***





***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***

Re: [WSG] Center Align an Unorder List

2007-07-25 Thread Francisco Lara

I think the easiest way I can think of is this:
ul {
display: block;
width:100%;
text-align:center;
}
li {
display:inline;
font-weight:bold;
}

On 7/25/07, Ryan Moore <[EMAIL PROTECTED]> wrote:


Looking to Center Text on an unordered list.

Example:


Link 1
Link 2
Link 3


Desired Effect:

Link 1 Link 2 Link 3

I don't have my CSS Code Base with me right now so hopefully someone can
lend a hand.

***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***



***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***