Linked Questions
19 questions linked to/from Is background-position-x (background-position-y) a standard W3C CSS property?
0 votes
1 answer
1k views
How to change CSS background-position for the X axis only? [duplicate]
I'd like to animate the background-position of some div with css like this: @keyframes wave{ from{ background-position: 80% center; } to{ background-position: 160% center; ...
12 votes
1 answer
22k views
How-to set background-position-x?
How Do i set background-position-x on Opera? div#logocontainer{ width: auto; height: auto; text-align: center; line-height: 200px; overflow: auto; margin-left: auto; ...
5 votes
4 answers
28k views
JQuery Animate Background position Cross browsers
it seems am not able to get this to work: $("#animation").animate({backgroundPosition:"-100px 10px"}); I tried this it works, But not on FFox: $('#animation').animate({ 'background-position-x': '...
3 votes
6 answers
4k views
Is it possible to change only the Y value of background position in CSS?
Is it possible to change only Y value of background position in CSS? background-position-y is not a valid solution.
2 votes
1 answer
7k views
CSS - Background position not working in Firefox [duplicate]
I have this site here: http://seasonsrestaurant.ca/ and In Firefox my social media icons are all the twitter icon. This is my CSS. How come background position is not working? ul.social-media li....
2 votes
4 answers
507 views
using CSS sprites to toggle states without writing a class for every case
Let me preface this question by saying that I'd like to avoid using javascript to solve this problem. If possible (it may not be) I'd like to keep all of this "logic" in CSS. I am creating a board ...
2 votes
1 answer
2k views
How to move background gradient independent from container width
I have a linear gradient: 2em red, 4em yellow .bar { background: repeating-linear-gradient(90deg, red 0, red 2em, yellow 2em, yellow 6em); background-position-x: 0em; } If I move the gradient ...
3 votes
3 answers
1k views
set css image from current folder using jquery script page
I have an external Javascript page located under ../Scripts/CBox/ folder from parent. There is an image located in the same folder. I want to set background-image for a control using Jquery from ...
1 vote
2 answers
1k views
Cannot use 'in' operator to search for 'backgroundPositionX' in undefined
Can't figure out why this thing happens. var thumb_width = 240; var thumb_height = 180; $('.video-thumbnail').on({ 'mouseenter': function(){ var i = 0; var j = 0; $(...
0 votes
1 answer
835 views
jQuery UI Touch-Punch plugin is not working
I have a code working perfectly on a desktop device: HTML: <script type="text/javascript" src="http://code.jquery.com/ui/1.10.2/jquery-ui.js" /> </script><script type="text/javascript"...
3 votes
2 answers
93 views
Less: calculated value
I have the following piece of less: @image-ui-wave-width: 28px; [...] .wave { &.saw { background-position: -@image-ui-tab-height * 2 -@image-ui-tab-height; } &.triangle { ...
0 votes
2 answers
107 views
Firefox doesn't accept CSS class on element
I have strange behaviour with firefox (other browser works good). I have rule: .feed.input.community .buttons .url { background-position-x: 9px; } After I call: $('.input.feed').addClass("...
0 votes
1 answer
278 views
Positioning in IE and FF - box fix solution for inconsistent layout between browsers
I am building this sprite map, positioning with CSS. I've built the prototype in IE and the box positioning is way off in FF. As you can see, in IE 9 the background position is lined up correctly, ...
0 votes
3 answers
249 views
How to change comma separated css values with Jquery.css Method?
I am trying to stack background images using only one div container and making sure their position is related to the screen height. The issue is I can't seem to alter comma separated CSS values. ...
0 votes
1 answer
230 views
problems with animated background-position-x on different browsers
I've made a simple menu, every item is 300x100 pixels. There's an image in background positioned -150 pixels, when you mouseover an item it changes to 0 (so entire item has background). It works fine ...