I have a nested division. The parent needs to go right across the screen and has a repeating background so that it caters for any resolutions or zoom.
The child needs to be at a certain point in the page. I found a way to centralise it was to give it a width and set the left and right margin to auto. I want if offset by about 300 pixels to the right. Is there a way to set that?
The child needs to be at a certain point in the page. I found a way to centralise it was to give it a width and set the left and right margin to auto. I want if offset by about 300 pixels to the right. Is there a way to set that?
Code:
.my_div{ width: 240px; padding: 0; margin: 0 auto 0; position: relative; vertical-align: bottom; }
Comment