dynamic background image

  • Author
    Posts
  • #3365732

    sanazrezai
    Member

    Hello, I would like to make the background image on my homepage fit dynamically to window size (and mobile). Is there any solution out there? Right now, I am using

    .home .obsidian-background-overlay:before {
    	background-image: url('URL');
    	background-repeat: no-repeat;
    	background-attachment: fixed;
    	background-size: cover;
    }

    but cover does not work for mobile. Thank you in advance.

    The blog I need help with is sanazrezaipiano.com.

You must be logged in to reply to this topic.