Home › Forums › CSS › Items on left and right in nav › Reply To: Items on left and right in nav
January 7, 2016 at 2:33 pm
#236502
bearhead
Participant
This is how I would do it:
http://codepen.io/kvana/pen/rxmOXM
I gave the ul a max width and centered it within the nav. Then I created a .left
and .right
class and gave those float:left
and float:right
declarations, respectively. I applied those classes to the appropriate li.
Additionally, I created a class: .group
to clear the floats.