I’m wondering if there’s a simpler way to do this:
- Position something centre-screen horizontally (easy).
- Offset it’s position from the centre.
I normally achieve this by making a <div> with a width double of the amount I want to offset by, set it to margin: auto; and then put my desired element within this floated either left or right. This works fine, I just thought there might be a shorter way.
An an example, I might want to have a <div> positioned 80px to the left of the centre of the screen, like this:

You can do something like this:
Here’s an online example: http://jsfiddle.net/B4rDJ/2/ (thanks Purmou!)