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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Avoid tiling of background picture

Status
Not open for further replies.

curious2001

IS-IT--Management
Jun 22, 2005
4
US
Hi all!
Is there anyway to avoid automatic tiling of a background picture in the <body> tag... i.e just have it centered and of it's original size, whatever the user's resolution?

Thanks.
 
Hi,

Click the tab &quot;keyword search&quot;.
Fill in the keywords &quot;background&quot; and &quot;tiling&quot;
Click scope = Html and css (...
Click use = &quot;all words&quot;
and finaly click &quot;Search!&quot;

and magic ..... you will find some answers!

Good luck :)

Erik
 
I don't think visitors can do a keyword search...

Here's an example, place this code between the <head> and </head> tags:
<style type=&quot;text/css&quot;>
body {
background-image: url(&quot;yourimage.gif&quot;);
background-repeat: no-repeat;
background-position: center center;
}
</style>
 
ErikL,
I did try a keyword search before posting, but as aperfectcircle pointed out, visitors can't do it!
And yes! I am a member but can't log in at the moment!

Thank you aperfectcircle.

;-)

 
This solution seems to work fine in IE, but not with NS.
Picture is left aligned!
Any clues?

;-)
 
I have not found a way in NN to overcome. If your page is layed out with a table or table cell in the position where you want your image set the image as a cell backgroung. Really depends on your layout.

Good Luck!
 
NN4 won't support the background-position property... In my opinion, the best solution is to not support NN4.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top