[thelist] CSS - background image keeps repeating
sagar shukla
sagar_a_s at hotmail.com
Fri May 11 02:54:16 CDT 2001
Hi,
Here is the solution which you requested. Your error was that you were
simultaneously specifying the background color and the image so there was
conflict in the selection for the background. So the solution for this is
given below. Its working atleast on my system :
<HTML>
<TITLE>Sagar's home page</TITLE>
<STYLE TYPE="text/css">
BODY {
background: url(c:\sasfaq\ashweek.jpg) #a5a7c9;
background-repeat:no-repeat;
background-position: 50px 50px;
color: black;
}
</STYLE>
<BODY>
<H1 style="color:red">Sagar's Home Page</H1>
<P style="color:blue">Test page testing the background image
repetation.</p>
</BODY>
</HTML>
Bye,
Sagar.
>From: "sfmalo" <sfmalo at msn.com>
>Reply-To: thelist at lists.evolt.org
>To: <thelist at lists.evolt.org>
>Subject: [thelist] CSS - background image keeps repeating
>Date: Thu, 10 May 2001 22:09:07 -0700
>
>Problem: Could someone please check the code below. I am trying to not have
>my background image repeat ... but it insists on repeating! What am I doing
>wrong?
>
>I've tried taking out background-position to no avail. I have tried taking
>out "fixed" but doesn't help. Tried background-attachment - no soap (and it
>doesn't work in NN4 anyway).
>
>BODY { "a bunch of other stuff" ;
> background-color: #6600cc ;
> background-image: url(background_purplegradient1.gif) ;
> background-repeat: no-repeat fixed ;
> background-position: 0px 0px }
>
>sharon)<:
>---------------------------------------------------------------------------
>Sharon F. Malone
>"web design and Internet writing services"
>http://www.24caratdesign.com
>
>
>---------------------------------------
>For unsubscribe and other options, including
>the Tip Harvester and archive of TheList go to:
>http://lists.evolt.org Workers of the Web, evolt !
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
More information about the thelist
mailing list