T
Tim Streater
I have an element that I would like to be centred on the page, so I use:
margin-left: auto;
margin-right: auto;
This is fine but under some conditions the element then expands to fill
the whole width of the window (variable content).
I would like to restrict its expansion to within (say) a few pixels of
the sides of the window. Can I do this with CSS?
Thanks,
margin-left: auto;
margin-right: auto;
This is fine but under some conditions the element then expands to fill
the whole width of the window (variable content).
I would like to restrict its expansion to within (say) a few pixels of
the sides of the window. Can I do this with CSS?
Thanks,