Vertically Scalable table & Non Tiled Background

liunx

Guest
I have 2 problems if anybody can help, The first is my background image is tiled and is it possible to centre the image in the browser window?<br />
<br />
The other problem is that i have an image in a table that i want to scale with the browser window Vertically but to remain arranged right. (make sense?)<br />
THIS CODE MAY HELP ?<br />
_____________________________________<br />
</HEAD><br />
<body background="whoosh.gif" background-repeat="no-repeat"><br />
<br />
<br />
<br />
<br />
<P><TABLE BACKGROUND="test.gif" ALIGN="right" BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH=100% HEIGHT=100%><br />
<tr><TH WIDTH=100% TYPE="application/x-shockwave-flash"><IMG SRC=http://www.htmlforums.com/archive/index.php/"texttest.swf"></TH><br />
</tr><br />
</table><br />
</p> <br />
</body><br />
<br />
_____________________________________<br />
<br />
I apologise for the crappy code, but you've got to start somewhere!<br />
Cheers<br />
FATFRANK<!--content--><style type="text/css"><br />
body {background-image: url(image.jpg);<br />
background-color: #ffffff;<br />
background-repeat: no-repeat;<br />
background-position: 50% 50%;}<br />
</style><br />
</head><br />
<br />
That will center your background with no repeat.<br />
<br />
This should work for your table:<br />
<br />
<table style="background-image: url(image.jpg);<br />
background-color: #ffffff;<br />
background-repeat: repeat-y;<br />
background-position: left;"><br />
<tr><br />
<td></td><br />
</tr><br />
</table><br />
<br />
If that doesn't work gimme another shout and I'll have another look at it.<!--content-->
 
Back
Top