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 2 of 2
  1. #1
    New Coder
    Join Date
    Dec 2005
    Posts
    62
    Thanks
    1
    Thanked 0 Times in 0 Posts

    CSS background-repeat

    I know you can repeat an image by using the following code

    Code:
    background-image: url('images/header.jpg');
    background-repeat: repeat-x;
    My question is, can you set a limit on how far it can repeat? If so, how would you go about doing this for 75% width?

    Thanks.

  • #2
    Regular Coder kewlceo's Avatar
    Join Date
    Mar 2006
    Location
    California, US
    Posts
    484
    Thanks
    1
    Thanked 3 Times in 3 Posts
    Why not just make a container that's 75% wide and put your background: url(images/header.jpg) repeat-x; there?
    UBERHOST.NET
    Shared, reseller, semidedicated hosting and dedicated server plans.
    DirectAdmin • Installatron • Money-Back Guarantee • 24/7 Support
    Providing "Service Above All Else" since 2005.


  •  

    Posting Permissions

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