CREATIVE AGENCY v1

Home Forums Porto – Responsive HTML5 Template CREATIVE AGENCY v1

  • This topic has 4 replies, 2 voices, and was last updated 1 year ago by props. This post has been viewed 507 times
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #10044335
    props
    Participant

    Is it possible to add an image to the background of the first slide of the index instead of the black?


    #10044337
    Support
    Keymaster

    Hello, you can add a css like this:

    (css/custom.css)

    #home {
    	background: url('https://placehold.co/1920x1080') no-repeat 50% 50% fixed;
    	background-size: cover;
    }

    Kind Regards.


    #10044342
    props
    Participant

    Thank you!
    However, the image bleeds into the ABOUT US section.
    I am only interested in having the image on the first slide.
    How do I contain it there without causing any other issues?

    IMAGE—> https://ibb.co/89jxVfd


    #10044343
    Support
    Keymaster

    Hello, sorry, try this:

    #home > div:first-child {
    	background: url('https://placehold.co/1920x1080') no-repeat 50% 50% fixed;
    	background-size: cover;
    }

    #10044344
    props
    Participant

    Awesome!
    It worked.


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

This topic is marked as "RESOLVED" and can not rceive new replies.