Forums

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

Home Forums CSS Dividing a into two equal rows, each row being an

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #270245
    f0rta
    Participant

    I’m trying to replicate this click but I can’t really seem to get how to do it. That’s what I tried so far:

    https://codepen.io/anon/pen/BxzOyg

    I tried wrapping a’s into spans, but it didn’t work.
    I think I need to wrap the a’s tbh, and asign 50% of width to each one, or at least to one of them.
    How can I do it?

    #270259
    Mamun
    Participant

    Didn’t understand your problem though. Be little more specific about your problems.

    Maybe you need to make all your “a” tags to display: block or display: inline-block according to your needs.

    #270261
    JeroenR
    Participant

    Maybe you mean something like this? https://codepen.io/anon/pen/erdJeR
    When using display flex, and use, in this case, flex grow, the items will be devided equally over the amount of space.

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