- This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
Viewing 6 posts - 1 through 6 (of 6 total)
- The forum ‘CSS’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
I am trying to use flexbox to create a simple navigation, I want the first item to be aligned all the way left and the rest all the way right. In this this pen I have it mostly set up but I cannot figure out how to get the “special” class to go all the way left. Am I going about this the wrong way with flexbox or is this really easy and am I just having a brain fart?
I don’t know if this can help you, but…
Thanks for the response! Interesting, I wouldn’t have thought about putting the last elements in reverse order, I’ll give it a shot!
.special{margin-right:auto}
Anyway, I guess the @gcyrillus ‘s answer is better hahaha
Dang @gcyrillus, that is amazingly simple! I was definitely making it way too complicated haha. And I was setting the a
to block because I prefer putting my padding on the a
instead of the li
to give more space to actually click the link and without block the top and bottom padding doesn’t apply (if I recall correctly a
is by default an inline element). Thanks again!