WordCamp Europe 2023 Special Offer - Get 30% OFF any edition with coupon: WC30

My Account

Forums

Home Forums General Place a different background image for each TAB

Viewing 0 reply threads
  • Author
    Posts
    • #176080
      Hakim Khoualed
      Participant

      Hi,
      I would like to place a different background image for each TAB. I have already put in the Custom CSS this code below. The display is ok for desktop, but not for mobile 🙁

      if someone can help me to put the right code for a responsive display that would be great

      THANKS

      .TAB1 {
      background: url(./images/hero.jpg);  
      background-position: center;
      background-size: cover;	
      height: 100vh;
      }
      
      .TAB2 {
      background: url(./images/hero2.jpg);  
      background-position: center;
      background-size: cover;	
      height: 100vh;
      }
Viewing 0 reply threads
  • You must be logged in to reply to this topic.

Login