JavaScript and client side scripting.
Moderator: General Moderators
alex.barylski
DevNet Evangelist
Posts: 6267 Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg
Post
by alex.barylski » Thu Feb 15, 2007 11:14 pm
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
feyd
Neighborhood Spidermoddy
Posts: 31559 Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA
Post
by feyd » Thu Feb 15, 2007 11:24 pm
No quotes.
Are you sure the path is correct? If memory serves, it's relative to the CSS' location by default.
alex.barylski
DevNet Evangelist
Posts: 6267 Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg
Post
by alex.barylski » Thu Feb 15, 2007 11:41 pm
Tried both of those...nuttin
Meh not important...wasn't critical
nickvd
DevNet Resident
Posts: 1027 Joined: Thu Mar 10, 2005 5:27 pm
Location: Southern Ontario
Contact:
Post
by nickvd » Fri Feb 16, 2007 12:09 am
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;
*/