CSS/HTML overlaying images with text? -


i've scripted site text , image in html , css, don't know how overlay image (how overlay image text).

html:

<!doctype html> <html lang ="de"> <head>     <title>sirmarkypus | homepage</title>     <link href="homepage.css" rel="stylesheet" type="text/css">     <meta charset="utf-8"> </head> <body>     <h1 id="headline1">willkommen auf dem sirmarkypus-server!</h1>     <img id="backgrounder1" src="img/backgrounder.png" alt="sirmarkypus- backgrounder"> </body> </html> 

css:

body { background: gray; } #backgrounder1 { position: absolute; top: -60px; width: 1910px; height: 720px; }  #headline1 { position: relative; margin: 0px; padding: 10px; text-align: center; font-family: "verdana"; font-size: 48px;  color: #fff; } 

in css, in #headline1 add property z-index: 9999; , change it's position absolute

what z-index push div above/below other. div z-index: 1 lower div z-index: 10


Comments

Popular posts from this blog

What is happening when Matlab is starting a "parallel pool"? -

angular - DownloadURL return null in below code -

php - Cannot override Laravel Spark authentication with own implementation -