I am trying to position an image over the background image, but the image will not show up. Please can you tell me what I am doing wrong.
<body>
<div id="body">
<div id="twitter">
</div>
</div>
</body>
CSS
body {
background: url(...) no-repeat;
background-size: 100%;
}
twitter {
background: url(...) no-repeat;
//top:10px;
//position: absolute;
}
The first thing that stands out is that you need hashes in front of your identifiers in your CSS…
I would also recommend using a different name from “body” on the outermost div to avoid confusion with the
<body>html tag. Its not strictly necessary, but it helps to have less to think about.For CSS:
#twitter { .... }.twitter { .... }