Results 1 to 4 of 4
Thread: Positioning an image using CSS
-
10-30-2008, 02:32 PM #1Junior Guru Wannabe
- Join Date
- Jan 2007
- Posts
- 40
.badgeharibo {
position: absolute;
right: 0;
top: 63;
margin: 0;
padding: 0;
border: none;
float: none;
margin:0px; }
This is my CSS for positioning an image 63 px from the top of the page, unfortunately it doesn't work. I'm calling the image using the following line.
<div class="badgeharibo"><img src="http://www.alco-owl.co.uk/images/freeharibo.png" alt="Free sweets with every order!"></div>
However the image doesn't position under the image already there (63 px from the top).
This can be seen at http://alco-owl.co.uk/test.php, where am I going wrong?
-
10-30-2008, 03:10 PM #2WHT Addict
- Join Date
- Dec 2003
- Posts
- 126
add in "px" after the 63 so it reads
top: 63px;
-
10-30-2008, 03:42 PM #3Junior Guru Wannabe
- Join Date
- Jan 2007
- Posts
- 40
Ah always the smallest of things, thanks very much!
-
10-30-2008, 03:45 PM #4WHT Addict
- Join Date
- Dec 2003
- Posts
- 126
no problem