Hi I am new to CSS and I am having trouble positioning a small image to the corner of its div container.
So far the only way I have managed is to put the image in html and give its own div container and then use:
The problem with this is that its making a complete mess of everything else on the page. The rest of the page treats the image as if it were in the original position - so text is wrapping around a blank space.HTML Code:{position:relative; right:-12px; top:-30px; }
Basically...
How do I change this:
Into this:
This is CSS for it so far:
How would I use something like the position:relative extract above in this?HTML Code:.box { background: #f4f4f4 url(./img/ticketicon.png) no-repeat right bottom; border: 1px solid #ccc; color: #505050; line-height: 1.5em; margin: 0 0 20px; padding: 10px; }
Many thanks





Reply With Quote

Bookmarks