I’m wanting to get an image overflowing a div, whilst not distrupting flow of text.

You can see it live at http://songbundle.org*
Example image above. Currently the text and form move right and lose their centering due to the image.
My current code below:
HTML:
<div class="box">
<div id="boxarrow"></div>
<p>text goes here</p>
</div>
CSS:
.box {
margin:60px auto 0 auto;
width:240px;
border:solid 1px #7889BC;
background-color: #AEB8D7;
text-align:center;
}
#boxarrow {
background:url(image/arrow.png);
width:77px;
height:81px;
display:block;
margin-left:-60px;
float:left;
}
Your help is appreciated!
Hey there,
One solution you could try would be to apply
position: relative;to your.boxelement andposition: absolute;to your#boxarrowelement. This will take the#boxarrowelement out of the normal flow of the document, leaving other elements unaffected by its positioning.Then, you can adjust it’s position (relative to the
.boxelement, since we gave itposition: relative;) withtop,right,left, andbottom. So, your#boxarrowelement might end up looking something like this:Again, this is just one possible solution, but it seems as though it would work best considering your situation.
Hope this helps!