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

Alligning a tiled backdrop

Status
Not open for further replies.

seanbo

Programmer
Jun 6, 2003
407
GB
i have a html page with a tiled background. the top left tile fits neatly against the top left of the page, and the right and bottom ones don't (necessarily). how can i assure that the top right corner is the one that lines of correctly (or any other corner, for that matter)?

____________________________________________________
If you like a post, show you care by giving it a <censored>.
 
seanbo,

Is it the graphic in your titled background that don't match top->bottom, left->right ie. it self?

Or the placement of the background image(s)?


Jakob

PS. Titled backgrounds can be a pain in the *** to do...
 
do you mean tiled background?

i have a background that tiles perfectly with this code:

<html>

<head>
<title>some tiles</title>
</head>

<body style=&quot;background-image: url('file:///P:/MyFolder/MyPicture.jpg')&quot;>
</body>

</html>

the top left hand corner of the top left hand picture lines up with the top left of the page. i want the top right hand corner, of the top right hand picture to line up with the top right of the page.

____________________________________________________
If you like a post, show you care by giving it a <censored>.
 
nevermind, got it now. if anybody's interested, here the code:

<body style=&quot;background-image: url('file:///P:/MyFolder/MyPicture.jpg'); background-repeat: repeat; background-attachment: fixed; background-position: right top&quot;>

i don't think i needed to specify repeat or fixed, because i'm pretty sure these are default - but better safe than sorry.

somebody give give me a star ;)

____________________________________________________
If you like a post, show you care by giving it a <censored>.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top