Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1298723

    hello

    1. here:
    https://jmcwebdesign.nl/duo/wp-content/uploads/2021/05/Screenshot_20210506-082409_Chrome.jpg
    the pic is not really touching the edges, which it should do.
    this is due to this code ive used in the quick css

    /* breedte op gsm*/
    @media only screen and (max-width: 767px) {
    .responsive #top #wrap_all .container {
    padding-left: 10px;
    padding-right: 10px;    
    }
    }

    now, this might be so for all text but not for this particular picture.
    how to tell the css to make an exception for this picture?

    nb: is it default in Enfold that the paddings on mobile are zero?
    it doesnt look so nice… wouldnt it be an idea to give the text on mobile phones default some padding? (in the core code i mean).

    2. here:
    https://jmcwebdesign.nl/duo/wp-content/uploads/2021/05/Screenshot_20210506-084223_Chrome.jpg
    i think the top margins quite big on the pages on a mobile.
    is there a way to reduce this?

    best regards, jelle

    • This topic was modified 3 years, 6 months ago by yampieters.
    #1299096

    Hey Jelle,

    I can’t see the content which is in your screenshot, on your actual site. Could you post a link directly to where we can see the content which is in the screenshot please?

    Best regards,
    Rikard

    #1299160

    hi rikard, i think ive choosen the wrong pic and url

    this is the one
    https://jmcwebdesign.nl/duo/wp-content/uploads/2021/05/Screenshot_20210506-082409_Chrome.jpg

    best regards, jelle

    #1299519

    Hi,

    Thanks for that. You can try this CSS:

    @media only screen and (max-width: 767px) {
    .responsive #top #wrap_all .container {
        padding-left: 0;
        padding-right: 0;
    }
    }

    Please note that all your content will stretch full width if you use it though, there’s no CSS which will affect only the image unfortunately.

    Best regards,
    Rikard

    #1299587

    hi rikard, thanks
    unfortunately it didnt do anything,
    but as you are saying that all images would be affected it doesnt matter.

    so there is no way to point to a certain page to apply a rule?
    something like:

    @media only screen and (max-width: 767px) {
    page-duo-interieur .responsive #top #wrap_all .container { etc etc

    best regards, jelle

    #1299840

    Hi,

    Thanks for the update. You can apply it to a single page only, yes. But the problem would still exist, your other content will also go full width, so I’m not sure it would be such a good idea to implement it in any way.

    Best regards,
    Rikard

    #1299904

    ok, for now we leave it like this.
    if in the future a change is needed we can talk again.

    this one can be closed now, thanks for your support anyway , jelle

    #1300130

    Hi,

    Alright. Please feel free to open another thread if you need anything else.

    Have a nice day.

    Best regards,
    Ismael

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘stretch picture to the edge on mobile’ is closed to new replies.