Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Old 05-19-2010, 06:27 AM background position
Ultra Talker

Posts: 254
Trades: 0
please look at this link
http://sudhakargolakaram.co.in/files/hover.html

as of now i have positioned the arrow image to the top right

what i need is the arrow image from its present location of top right if i want it to move a few pixels from the top or the sides how do i go about as i have already specified top right as an alternative i could use

a{background: url(uparrow.png) no-repeat 5px 800px;} giving an x and y value which will work


however what i want to know is after setting a position like top right in this case can i move the image from this top right a little bit from the top and the sides


thanks
sudhakararaog is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 05-19-2010, 06:44 AM Re: background position
Phunk Rabbit's Avatar
Ultra Talker

Posts: 255
Name: John Nerush
Location: Milton Keynes, UK
Trades: 0
Hopfully I have understood your post correctly.

With the x and y cord's you can use absolute (top, right, bottom, left), percentage (50%, 99% etc) and pixels (5px, 100px etc) or combinations of any ( left 50% etc).

So in your case you need to use pixels if you know the height and width of the element or % if the height and or width changes.

For example:
Code:
a { 
     background: url(uparrow.png) no-repeat 95% 70%; 
}
Phunk Rabbit is offline
Reply With Quote
View Public Profile Visit Phunk Rabbit's homepage!
 
Old 05-21-2010, 06:47 PM Re: background position
c69
c69's Avatar
Experienced Talker

Posts: 40
Name: Constantine
Trades: 0
Nope, you cannot do (right - 2px) or (top + 5px).

pixels and percents go from Top-Left corner, so
- either specify it from there,
- crop the image
- or resize container block (play with padding, margins and borders)
c69 is offline
Reply With Quote
View Public Profile Visit c69's homepage!
 
Reply     « Reply to background position
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.21025 seconds with 12 queries