How to take out the lateral margins?

  • Unknown's avatar

    Where and how I can take out the lateral margins? I don’t find the CSS.

    Thanks

    The blog I need help with is: (visible only to logged in users)

  • Could you please be a bit specific and point out which lateral margins would you like to remove? There are quite a few on your site. Thanks.

  • Hi.

    @chaitanyasmsv is rigth. There is only a 20px padding in each side.

    As your images are shown 400×300 px, you could have a white space on the right side, depending on the browser window width. For instance, with 1100px, you will have 2 images + a 300px white space. If you mean this, you could define your images width as a percentage of the global width. For instance, if you define that as 33% of width, you will have three in each row, no matter how big your screen is. Is this what you want? If not, could you please add an example?

  • Unknown's avatar

    Thanks to answer me,

    Yes I want 4 photos in each row, no matter how big screen is. How I can do that?

    Thanks chaitanyasmsv and raulanton

  • Hi

    You can use this piece of css code:

    .entry-content a img {
        border: 0px none;
        width: 24.5%;
    }

    Taking into account this will render each link image inside an entry to be 24.5% width. The problem could be with some ‘individual’ pages. I mean moll-de-costa/ or colls-majors/. It would be ok in colls-majors o el-torreó because you have an slider but this change (24.5%) will also affect to moll-de-costa in wich you have several images (the same structure as in viviendas-plurifamiliares/ for instance).

    So: or you use sliders in your individual pages or there are not structural differences to be used to discriminate your individual and your ‘index’ pages, so you will be forced to apply individual CSS selectors (That will mean to identify each page in which you want to affect the 1/4 width rule).

    What would you want to do? :)

  • Unknown's avatar

    Thanks for your help,
    I want to use slider in all my individual pages, the only page that I want fixed photos is in the homepage, so I will use it in that page.

    Thanks!

  • Nice, Xavier!

    If you have any other questions… :)

  • The topic ‘How to take out the lateral margins?’ is closed to new replies.