Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    Nov 2002
    Posts
    104
    Thanks
    13
    Thanked 0 Times in 0 Posts

    Post CSS Background no repeat

    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

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Location
    Ames, IA, USA
    Posts
    373
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Try this: background : fixed #ffffff urlimages/apbbak.jpg) left no-repeat;
    Need more emoticons?
    Visit Catman's Private Stock

  • #3
    Regular Coder
    Join Date
    Nov 2002
    Posts
    104
    Thanks
    13
    Thanked 0 Times in 0 Posts
    do I put that in the header or the .css file?

  • #4
    Senior Coder
    Join Date
    Jul 2002
    Posts
    1,628
    Thanks
    0
    Thanked 0 Times in 0 Posts
    it can go in either, but since you have an external file put it there.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •