On 19-Oct-2010, at 15:08, Lewis Kirk wrote:

> Here's a web design question:
> 
> A client has supplied art work that is 1152 px wide. He wants it to be 
> centered horizontally in the browser window on the open of the page 
> regardless of the user's browser window size. (Scroll bars don't matter so 
> don't get side-tracked on that.)
> 
> I can't figure it out.
> 
> I suppose you could do it with javascript, but that seems like overkill.

I can't think of any other way to do it. No matter what you do in HTML or CSS, 
if the browser window is narrower than the image, the browser will not scroll 
sideways to center the image.

This would, for the record, piss me off if a page did it to me. Almost 
certainly enough that I wold close the window.

-- 
Nothing like grilling a kosher dog over human hair to bring out the
subtle flavors.

-- 
You received this message because you are subscribed to the 
"BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
<http://groups.google.com/group/bbedit?hl=en>
If you have a feature request or would like to report a problem, 
please email "[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>

Reply via email to