lilpete
08-18-2010, 02:54 PM
Hi Guys,
This one has got to be an easy question,.
The page is here: www.test.steptoes.co.uk
The problem is the 'On Sale' bit at the bottom of the page,
I want to be able to vertically align it to the bottom of that div,
so all the on sale prices line up horizontally.
Im sure there is an easy way, I have tried this:-
.onsaleitem { /*the div surrounding the items*/
position:relative;
float:left;
width:150px;
height:auto;
text-align:center;
padding:5px;
margin-top:auto;
margin-bottom:auto;
vertical-align:bottom;
}
And this:-
#onsaleindex { /* the div surrounding the item divs */
position:relative;
width:800px;
height:auto;
min-height:150px;
text-align:center;
vertical-align:bottom;
}
Any help is much appreciated.
Best regards,
Pete
This one has got to be an easy question,.
The page is here: www.test.steptoes.co.uk
The problem is the 'On Sale' bit at the bottom of the page,
I want to be able to vertically align it to the bottom of that div,
so all the on sale prices line up horizontally.
Im sure there is an easy way, I have tried this:-
.onsaleitem { /*the div surrounding the items*/
position:relative;
float:left;
width:150px;
height:auto;
text-align:center;
padding:5px;
margin-top:auto;
margin-bottom:auto;
vertical-align:bottom;
}
And this:-
#onsaleindex { /* the div surrounding the item divs */
position:relative;
width:800px;
height:auto;
min-height:150px;
text-align:center;
vertical-align:bottom;
}
Any help is much appreciated.
Best regards,
Pete