You can also set the background position & whether or not it scrolls. I think there is a bug in Netscape where the image has to be in the same folder as the stylesheet or the "no-repeat" part doesn't work (or something like that). Here's a link to the Cascading Style Sheets specification file: CSS1.
Can I put the image in a table and then put the table in the background? Say use percentages to to make the table fit the whole screen and center the image within the one cell and fix it so it wont scroll at all? My main problem right now is how my bg image is tiled on higher resolutions so im trying to fix that.
Well, that certainly works, however only for IE. If you want a similar effect you may be able to use DHMTL, however this is generally one of those 'really sucky' tricks, as it makes the text harder to read for a lot of people.
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.
phyllis posted this at 16:35 — 30th March 2000.
They have: 59 posts
Joined: Mar 2000
Hi: You should be able to do that with a stylesheet. I think this is the syntax (this goes between the <head>...</head> tags:
<style type="text/css">
<!--
body {background-image: yourimage;
background-repeat: no-repeat;
}
-->
</style>
You can also set the background position & whether or not it scrolls. I think there is a bug in Netscape where the image has to be in the same folder as the stylesheet or the "no-repeat" part doesn't work (or something like that). Here's a link to the Cascading Style Sheets specification file:
CSS1.
Phyllis
The_Rock posted this at 00:26 — 1st April 2000.
They have: 21 posts
Joined: Mar 2000
Can I put the image in a table and then put the table in the background? Say use percentages to to make the table fit the whole screen and center the image within the one cell and fix it so it wont scroll at all? My main problem right now is how my bg image is tiled on higher resolutions so im trying to fix that.
The_Rock posted this at 00:28 — 1st April 2000.
They have: 21 posts
Joined: Mar 2000
I meant fixed as in setting the bgproperties="fixed"
Suzanne posted this at 00:36 — 1st April 2000.
She has: 5,507 posts
Joined: Feb 2000
Well, that certainly works, however only for IE. If you want a similar effect you may be able to use DHMTL, however this is generally one of those 'really sucky' tricks, as it makes the text harder to read for a lot of people.
Suzanne
------------------
Zero Cattle
Suzanne
Tables DeMystified
george_c posted this at 02:21 — 1st April 2000.
They have: 6 posts
Joined: Jan 2000
The following is a DHTML script that centers, prevents tiling, and finally, watermarks the background image of your page in IE 4+: http://dynamicdrive.com/dynamicindex3/fixback.htm
------------------
Visit http://wsabstract.com for free JavaScript tutorials and scripts
Visit http://wsabstract.com for free JavaScript tutorials and scripts
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.