Page 1 of 1
CSS background image alignment
Posted: Thu Feb 15, 2007 11:14 pm
by alex.barylski
I am trying to get a image to align with the right top of a LI element:
Code: Select all
background-image: url('images/layout/tab_edge.gif');
background-repeat: no-repeat;
background-position: right, 0px;
Shouldn't this code work

Posted: Thu Feb 15, 2007 11:24 pm
by feyd
No quotes.
Are you sure the path is correct? If memory serves, it's relative to the CSS' location by default.
Posted: Thu Feb 15, 2007 11:41 pm
by alex.barylski
Tried both of those...nuttin
Meh not important...wasn't critical
Posted: Fri Feb 16, 2007 12:09 am
by nickvd
Lose the comma in background-position.
Or, alternatively
Code: Select all
background: url(images/layout/tab_edge.gif) no-repeat right top;
/*
is the same as
background-image: url('images/layout/tab_edge.gif');
background-repeat: no-repeat;
background-position: right, 0px;
*/