Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Flexbox Problems

  • This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #180394
    SilverSerpent
    Participant

    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?

    #180395
    ThatCat
    Participant

    I don’t know if this can help you, but…

    http://jsfiddle.net/o7eemk5w/

    #180396
    SilverSerpent
    Participant

    Thanks for the response! Interesting, I wouldn’t have thought about putting the last elements in reverse order, I’ll give it a shot!

    #180415
    jurotek
    Participant

    .special{margin-right:auto}

    #180419
    ThatCat
    Participant

    Anyway, I guess the @gcyrillus ‘s answer is better hahaha

    #180444
    SilverSerpent
    Participant

    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!

Viewing 6 posts - 1 through 6 (of 6 total)
  • The forum ‘CSS’ is closed to new topics and replies.