[Ask] Background image and Intro page


Topic: [Ask] Background image and Intro page

toshfox asked 5 years ago

Hello Guys

First I would like to say that I have been learning a lot with MDB, thank you. Great website.

Ok Here my question :
Before, I invite you to check the snippet from your page CSS/Background Image : here.

In the CSS part, line 1, why do we have to set body,html height 100% whereas we have already assigned div.bg height to 100% ?

Do I have to understand that 100% here means 100% of the parent and not of the available space ? If so, in that logic I replaced body,html by header, but it doesn't work.

Sorry if my question is silly, I am sure it's something basic ... thanks for your time


AdamJakubowski staff pro premium priority answered 5 years ago

Hi,

body,html height 100% is responsible for the height of the window, for example if I would change 100% for 50 %, the background would be half the height of the window. Did you need any help with this ?

Best,

Adam


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue
  • User: Free
  • Premium support: No
  • Technology: General Bootstrap questions
  • MDB Version: -
  • Device: Desktop
  • Browser: Chrome
  • OS: W10
  • Provided sample code: No
  • Provided link: Yes