Reputation: 79
I'm trying to place an image above the top bar of a div on my website on the left side of where the navigation bar is. My Attempt
It should look Like this
And I would like it to look Like this
I've tried multiple things such as placing the div for the image in different spots in the code, and changing css elements for the div, but everything seems to push the other content images out of place on the website
Upvotes: 0
Views: 544
Reputation: 15619
Your css isn't in very good shape, but, using your methods here's how to do it:
margin-top
from #container
vertical-align: top
to the img
inside #photo
top
in #extraDiv1
to 246px
top
in .horizontal
to 218px
I guess that should do it.
Upvotes: 0
Reputation: 1087
add this ...
.photo {
position: relative;
top: 4px;
}
and change the margin on #container to...
#container {
margin-top: -1px;
}
Upvotes: 1