Forums

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

Home Forums CSS Layout horizontal Divs

  • This topic is empty.
Viewing 6 posts - 16 through 21 (of 21 total)
  • Author
    Posts
  • #235595
    Shikkediel
    Participant

    I believe so. That’s unexpected behaviour to me.

    #235596
    dogpaw
    Participant

    Huge thank you to you for your help on this. Life saver. Looks like I’m all good for now.

    Take care.

    #235597
    Shikkediel
    Participant

    Glad to help out, cheers.

    #235863
    plastico plastico
    Participant

    You’re saying the widget width should be 19.5% instead of the 20.875%? It does seem that would work but I’m copying the width from the default portions of the theme. I wonder what, if any, difference I could be missing for some other aspect of the layout?

    #235873
    Shikkediel
    Participant

    That was the first conclusion I’d drawn – we later decided that adapting the margins would be a better approach. With that, the default width was kept intact.

    #235922
    rrwebdesign
    Participant

    Here’s a pen with four boxes evenly distributed and responsive.

    http://codepen.io/rrwd/pen/KpBZoq

    The key is that the inner div has display:inline-block and its parent with text-align:center. And, nicely responsive.

    Narrow and widen your browser to see that the boxes maintain their center alignment.

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