This topic has 3 replies, 2 voices, and was last updated 9 years by Laura.

  • Author
  • #147214
     iscandar
    Participant

    Hi there,

    I’m trying to make a post that contains a one column layout, similar to what you see on Medium. I cannot figure out how to make the column center on the page. The row has a custom class (.sp-post-body-row) and the column has a custom class (.sp-post-body-col).

    Here’s what I added to my custom styles.css file:

    /* Small devices (tablets, 768px and up) */

    @media (min-width: 768px) {

    .sp-post-body-col {

    max-width: 740px;

    padding: 20px;

    margin: 0 auto;

    }

    }

    Here’s what I would like to do:

    * give the column a max-width of 740px, for screens 768 and up

    * have the column centered on the page

     

    Here’s the URL to the template:  https://www.stellarpeers.com/post-template/

    Thanks in advance!

     

    #147232
     Laura
    Moderator
    Not marked as solution
    #147233
     iscandar
    Participant
    Not marked as solution
    #147401
     Laura
    Moderator
    Not marked as solution
Viewing 4 posts - 1 through 4 (of 4 total)

The forum ‘General questions’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?