Reputation: 75
https://jsfiddle.net/t1etnj5w/1/
i want to make the above demo full responsive the text should be in the center. But when i am trying to add padding-left:10% in the @media screen (max-width:450px) it is not working. It has worked above 600px screen. Please see the above demo.
[1]: https://jsfiddle.net/t1etnj5w/1/
Upvotes: 0
Views: 161
Reputation: 1406
because of header position:aboslute and minus margin css it's not shows properly.
header {
position: absolute;
top: 60%;
left: 22%;
z-index: 999;
color: #fff;
/*background: rgba(0,0,0,0.5);*/
padding: 60px;
margin: -200px 0 0 -200px
}
Upvotes: 1