Reputation: 685
I am trying to align horizontally a list containing radio buttons within a div. The example can be seen at the following address
I have tried to add to the css the following but no luck:
.options-list ul li {
display: inline-block;
}
Can anyone point me in the right direction? Thanks
Upvotes: 0
Views: 101
Reputation: 228152
This should be what you're looking for:
.options-list li {
display: inline-block;
margin-right: 16px;
}
The element with the class of options-list
is itself a ul
, so you don't want to include ul
in your selector.
Upvotes: 2