...

View Full Version : CSS Background no repeat



dk4210
12-04-2002, 02:48 PM
Hello Does anyone know how I can do a no repeat on my site? I am not sure about the placement of code. Here is my header file. Let me know if it is right? here is the link for exaple of the background repeating http://www.apbcpa.com/main2/contact.shtml

------ Some of header --------------------
<HTML>
<HEAD>
<TITLE>WELCOME TO APBCPA.COM</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="apb.css" type="text/css">
</HEAD>
<BODY topmargin="0" rightmargin="0" marginwidth="0" marginheight="0" leftmargin="0" bottommargin="0"><TABLE WIDTH=760 BORDER=0 CELLPADDING=0 CELLSPACING=0>
<p class="background">&nbsp;</p>
------------------End Header -----------
Here is my CSS File ---
.maintxt { font-family: "Times New Roman", Times, serif; font-size: 12px; font-weight: bold; color: #44828D}
.headertxt { font-family: "Times New Roman", Times, serif; font-size: 14px; font-style: normal; font-weight: bold; color: #44828D}
.maintxtblk { font-family: "Times New Roman", Times, serif; font-size: 13px; font-weight: normal; color: #000000}
.headerblue2 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 18px; font-weight: bold; font-variant: normal; color: #44828D}
.copyright { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; font-weight: normal; font-variant: normal; color: #000000}
.footerlinks { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 9px; font-style: normal; font-weight: bold; color: #666666}
.background { background-attachment: fixed; background-color: #FFFFFF; background-image: url(images/apbbak.jpg); background-repeat: no-repeat; background-position: left}
---------------end css ---------------->
Please help...Thanks, Dan

Catman
12-04-2002, 03:35 PM
Try this: background : fixed #ffffff urlimages/apbbak.jpg) left no-repeat;

dk4210
12-04-2002, 03:48 PM
do I put that in the header or the .css file?

cg9com
12-04-2002, 04:40 PM
it can go in either, but since you have an external file put it there.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum