Viewing 8 posts - 1 through 8 (of 8 total)
  • Posted in: Uplift
  • #302958
    micheal_w
    Member
    Post count: 498

    Hi guys,

    I am using a background image for a row with some content in it. Right now on all screen sizes, that background image is aligned to the middle, so the row’s content height crops from the top and the bottom. Would it be possible to have that image aligned to the top so if anyone sees that image on any size, they will always see the top of the image and the responsiveness will crop from the bottom only?

    see link above.

    thanks!

    #303083
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    I’m not sure about this. Will have to forward it to Ed.

    -Rui

    #303304
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Hi @micheal_w

    Could be done with a custom css – then you can edit the background position on that row to be ‘center top’

    – Ed

    #303317
    micheal_w
    Member
    Post count: 498

    Hi Ed,

    Would you be able to provide custom css for me plese?

    Thank you,
    M.

    #303645
    David Martin – Support
    Moderator
    Post count: 20834

    You first need to add a custom class to the Row. Ex: bg-center-top. Then you use simple CSS, please read this: http://www.w3schools.com/cssref/pr_background-position.asp

    .bg-center-top .spb-row {
        background-position: center top;
    }
    #303721
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Thanks David, or this – add an ID to that row, then use:

    #id .spb-row {
        background-position: top center;
    }

    – Ed

    #303924
    micheal_w
    Member
    Post count: 498

    Hi Ed & David,

    Thank you, works perfectly!

    #303928
    David Martin – Support
    Moderator
    Post count: 20834

    Great, glad those helped you.

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.