PDA

View Full Version : css


hairynugs6382
09-02-2002, 12:27 AM
could someone refresh my memoty and tell me how to
use an image as the background

i think {background-image:}

but im pretty sure that is incorrect

La Gal
09-02-2002, 12:54 AM
#someDiv {background: url(images/name.gif);}

hairynugs6382
09-07-2002, 10:26 PM
can u position

redhead
09-07-2002, 10:31 PM
here is a good link for this issue and for future referance:

JavaScript Kit's Complete CSS Referance (http://www.javascriptkit.com/dhtmltutors/cssreference.shtml#2) - Well worth a bookmark :thumbsup:

Quiet Storm
09-07-2002, 10:47 PM
"JavaScript Kit's Complete CSS Referance " is a bit confusing.
Here's an example from my site:


<STYLE>
body
{
background: #000000 url("IMG/background.jpg") no-repeat fixed;
background-position: -196px -99px;
}
</STYLE>

E |A| E
09-08-2002, 01:21 AM
Hello, as you can see from the code below I have two images , each is displayed a side of the page. How can I make those images fixed while the rest of the content scrolls ?

I know of the

BODY {background-image:url(images/leftpanel.jpg); background-repeat:repeat-y}

But this will let me clip only one picture and I need to clip one on each side. And its not really what I need since it repeats the same image that I want fixed.

Sorry to bug you with this minor issue but I just spent 18 hours in front of the puter and I need some help.

Thank you in advance. Regards.

<html>
<head>
<title></title>
<style type="text/css">
<link rel="stylesheet" href="style.css">
<!--
a { text-decoration: none}
a:hover { color: #FF1111; text-decoration: none}
-->
</style>
</head>
<body link="#CC0000" vlink="#CC0000" alink="#FF0000" onLoad="if (self != top) top.location = self.location" topmargin="0" leftmargin="0">
[COLOR=orangered]
// image 1
<span style="position: rel; left: 0; top: 0; z-index: -3"><img border="0" src="image1.jpg" align="left" width="135" height="600"></span>
// image 2
<span style="z-index: -3; position: rel; right: 0; top: 0"><img border="0" src="image2.jpg" align="right" width="135" height="600"></span>
</body>
</html>

redhead
09-08-2002, 05:07 PM
Originally posted by Quiet Storm
"JavaScript Kit's Complete CSS Referance " is a bit confusing.i guess so, but it contains the answer to the question and also a valuable resource for future referance.