The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › Styling div inside li
Can we do that?
This is my code: http://jsfiddle.net/G9KQy/
I want those div tags to be center alinged in li.
Your HTML is badly formed and there is no CSS…what are you trying to do?
li div { text-align: center; }
or am I thinking too simple now? :P Like Paulie said, you need to add `ul` or `ol` to make it work though.