Hi guys I am a bit noob in CSS and just started designing a website. What's happening is i am trying to put a logo div on my header div with background color blue. Everything is just fine but when i set the position of child div (logo div) the blue color disappear.
style.css
@CHARSET "ISO-8859-1"; #header { background-color: blue; position: relative; } #logo { position: absolute; } index.html <!DOCTYPE html> <html> <head> <meta charset="ISO-8859-1"> <link rel="stylesheet" type="text/css" href="style.css"> <title>Insert title here</title> </head> <body> <div id="header" > <div id="logo"> <img src="images/logo.jpg"> </div> </div> </body> </html>
position:absolute? it might not be the best practice for your specific situation.