Flexible width on a specific post

  • Author
    Posts
  • #121895

    terradiciona
    Member

    I would like to have a flexible width just on one specific post.
    The post is this one:
    https://terradiciona.com/2016/01/23/prenota-prodotti/

    Is it possible?
    Thanks

    The blog I need help with is terradiciona.com.

    #122000

    yuriyportnykh
    Theme Author

    Hello,

    You can use the following CSS code to change the width of the post:

    @media screen and (min-width: 960px) {
        body.postid-1369 #main-content {
            width: 700px;
        }
    }

    Change the width value to your liking.

    #122022

    terradiciona
    Member

    Thanks, it’s working. There is just a problem, with some screen resolutions it appears below the horizontal scroll-bar. In order to avoid this, is it possible to switch to the tablet view? In order words can I define the width that switch to the table view? Now is a little-bit lower than needed. Thanks.

    #122023

    yuriyportnykh
    Theme Author

    I’m afraid it is not possible to modify breakpoints using Custom CSS, but you can try changing the table width using the following code:

    body.postid-1369 #ProductBrowser-1 {
        width: 550px;
    }
    #122025

    terradiciona
    Member

    Fine, thanks!

    #122026

    yuriyportnykh
    Theme Author

    You’re welcome

The topic ‘Flexible width on a specific post’ is closed to new replies.