Text-align:center is a fine way to center list items.  Noone will scorn you
or your centering method. I assume that the list items are inline-block?
inline?

http://codepen.io/ryanreese09/pen/ZYmaxa

That's the optimal way to center in this scenario. Obviously there are more
than one ways to center items but it just depends on your situation. You
can breathe easy. Text-align:center; is the easiest way to center
inline/inline-block elements.

On Mon, Mar 16, 2015 at 8:38 PM, John <j...@coffeeonmars.com> wrote:

> On Mar 16, 2015, at 5:36 PM, Ryan Reese <sportsdude.re...@gmail.com>
> wrote:
>
> Semantics is purely in the HTML. Get the right HTML element for the job
> and you are all set.
>
> CSS does the presentation. It has no effect on the semantics of your
> webpage. Get the correct HTML for semantics. CSS for style and presentation.
>
>
> Thank you, Ryan..I do get what HTML does and what CSS is for, but my
> question is: tho using  a class specifying text-align:center; may work
> functionally, is it a correct method to center non-text list items?
>
> John
>



-- 
Ryan Reese
______________________________________________________________________
css-discuss [css-d@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to