WordPress.org

Forums

Expound
Background positioning in Mobile Version (4 posts)

  1. vinn95
    Member
    Posted 1 year ago #

    I have added background image to the theme, that works fine in the desktop, but in mobile version the background image isn't visible in the display.
    I understand that I need to shrink the body of the page, but couldn't figure out the right code.
    Seeking advice.

  2. Konstantin Kovshenin
    Member
    Theme Author

    Posted 1 year ago #

    Hey there. Could you provide a link to your website with the background image?

  3. vinn95
    Member
    Posted 1 year ago #

    Yes, sure its vinns.in

  4. Konstantin Kovshenin
    Member
    Theme Author

    Posted 1 year ago #

    Looks like a solution would be to use the background-size property, but there may be some CSS on your page, preventing the whole page from fitting to the viewport, which is why the horizontal scroll bar appears on smaller widths.

    Here's more on background-size: http://www.w3schools.com/cssref/css3_pr_background-size.asp

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.