kurt.santo Posted November 14, 2007 Share Posted November 14, 2007 Is there a way to place a background image in an exact location? I have one that I would like to place 30px from the left side of its container...Kurt Link to comment Share on other sites More sharing options...
boen_robot Posted November 14, 2007 Share Posted November 14, 2007 Yes. There's the background-position property, to which you can specify X and Y coordinates (in this order) at which you want the image to appear. Note that browsers have a quirky way of dealing with percentages, or should I say IE has a problem. Pixels should be fine. On your example, the way would probably be something like: background-position: 30px 0; Link to comment Share on other sites More sharing options...
kurt.santo Posted November 14, 2007 Author Share Posted November 14, 2007 Yes. There's the background-position property, to which you can specify X and Y coordinates (in this order) at which you want the image to appear. Note that browsers have a quirky way of dealing with percentages, or should I say IE has a problem. Pixels should be fine. On your example, the way would probably be something like:background-position: 30px 0; Working well, cheers:-)Kurt Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.