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 6 of 6
  1. #1
    New Coder
    Join Date
    Jan 2005
    Posts
    45
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Can I use Two Background Commands at Once?

    Right now, I have a background image that runs down the left side of my page. What I would like to do is place another background image behind that, so the image that runs down the left will appear on top of the new background.

    Can that be done?

  • #2
    Regular Coder
    Join Date
    May 2004
    Location
    Berkeley, California Age: 15
    Posts
    398
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Sadly, this is currently impossible with one css declaration. On a better note, the current CSS3 drafts allow you to to use multiple background images. But there isn't any browser support for it yet. For a way around that...use something like...

    Code:
    <div id="content">
      <p>Hello World</p>
    </div>
    
    and CSS:
    
    #content {
    background: url(image1.jpg);
    }
    
    #content p {
    background: url(image2.jpg);
    }
    there are many ways to configure it to do more advanced tricks...but thats a basic idea. If you want something more specific, just let us know!
    Last edited by Jalenack; 03-09-2005 at 01:12 AM. Reason: typo!
    Jalenack.com .:. YWDA Founder .:. Rounded Corners Maker 1.1! .:. My Blog
    The hardest thing about teaching is not knowing the right answers, but knowing the right questions - Elisabeth Klein
    Pretty buttons does not a great website make.

  • #3
    New to the CF scene
    Join Date
    Mar 2005
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    one way you could do it if you wanted is to split the page into two frames. Thats about the only way i can t hink about now.

  • #4
    New Coder
    Join Date
    Jan 2005
    Posts
    45
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Sorry for the late respose.

    Anyways, I tried your method Jalenack, but it didn't work.

    Here's what I'm trying to do, more specifically:

    On this page:
    http://www.gamexplain.com/questions.shtml

    See the "Game Xplain" that runs down the left side? I'd like that to be independent of the background (right now, it's part of it).

    Is there any way to do that?

    Thanks for the help.

  • #5
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    you could put your entire site in a div, and use css to repeat that background image only using repeat-y

  • #6
    New Coder
    Join Date
    Oct 2004
    Posts
    77
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Check this out.

    Miggsy007
    Please visit My Site - Especially if you play CS or DoW.

    'Don't worry men, they couldn't hit a bull at this distance.' - Last words of General Patton


  •  

    Posting Permissions

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