Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Flip background 1

Status
Not open for further replies.

kzn

MIS
Jan 28, 2005
209
GB
Hi

I have a background picture of a city which is 1200px wide, the actual content will sit centered with a width of 1000px. If someone is using a larger resolution, I dont want the image to stop at 1200 left and right ... I would like the image to flip horizantally so that it blends in and carries on... I hope this makes sense. I would appreciate any help in this matter.

Thank you.
 
You can't do it with css and a single 1200px image that has to be reversed (as css is currently defined and implemented).

That being said, you could make, for instance, an optimized 2000px wide image (a potentially very big image) with 400px tacked on the left and 400 tacked on the right (still centering it). To avoid any obvious sense of intersection, you could fade the left and right portions.


Greg
People demand freedom of speech as a compensation for the freedom of thought which they seldom use. Kierkegaard
 
You would center it in the appropriate div or in the body or wherever with css like:

Code:
background: url(city.gif)  no-repeat 50% 0;


Greg
People demand freedom of speech as a compensation for the freedom of thought which they seldom use. Kierkegaard
 
traingamer .... Thank you very much
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top