Quantcast
Channel: Active questions tagged html - Stack Overflow
Viewing all articles
Browse latest Browse all 67469

Img in don't show

$
0
0

Image in my <div=img-header> doesn't show under the writing, it appear only the writing but not the image, I've tried many ways but ther was unsuceesful. Someone can help me?

I've tried change class in id, manually resize img, change the css code, change name:

.img-header {
	height: 100vh;
	min-height: 500px;
	background-image: url('img/header.jpg');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}
<header class="img-header"><div class="container h-100"><div class="row h-100 align-items-center"><div class="col-12 text-center"><h1 class="font-weight-light">My Site</h1><p class="lead">Welcome to My site!</p></div></div></div></header>

The image from div should appear under the writing "My site - Welcome to my site".


Viewing all articles
Browse latest Browse all 67469

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>