Hi guys I have this situation,
I have a background image, and I want to put a text in the middle of this background image, but nothing seems to work. I tried everything I know. If anyone could help me I would appreciate.
Here is the link of my code pen: https://codepen.io/JT_Cerqueira/full/YxOLxg/
I want to put my h4 and h1 in the middle of the first picture, that is in the headwraper div, but it turns out that it shows right below the image.
Any one help please?
Here is the code:
<div class="col-sm-6 col-sm-offset-3 col-xs-12">
<h4>HELLO WORLD, I'M</h4>
<h4>FRONT END WEB DEVELOPER AIMED AT FULL STACK</h4>
You have a
padding-top: 750px; on
#headwraper use a lower value, from my point of view you shouldn’t try to achieve that with padding though I think you can also do this:
/* padding-top:750px; */
background-position: top center;
margin-top: 100px; /* Or whatever px, em, vh or nothing*/
Perfect. It worked wonderfully! Thank you very much!
Sure no worries, remember to mark as solution if it was!
How do I do that? LOL! XD