1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Need help with Background CSS

Discussion in 'CSS' started by IG2010, Sep 8, 2010.

  1. #1
    Hi,

    check this site jetemerde.fr (it s a fmylife script clone)

    at the moment background is just a small jpg image but I want to change it, what I want is to place a different image in both side. looking to change the background and trying to find on internet how to add 2 images in CSS, but I can't find it

    could anyone help me with this?

    regards
     
    IG2010, Sep 8, 2010 IP
  2. radiant_luv

    radiant_luv Peon

    Messages:
    1,327
    Likes Received:
    34
    Best Answers:
    1
    Trophy Points:
    0
    #2
    One html element can have one background image. 2 backgraound image in one element not possible.
     
    radiant_luv, Sep 8, 2010 IP
  3. wd_2k6

    wd_2k6 Peon

    Messages:
    1,740
    Likes Received:
    54
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Hi,

    As mentioned above you can't add more than one background image to any element inside the CSS. So if you want 2 bg images then you need two elements to place them on.

    So if you can find an exisiting element to put the second bg image on then great, otherwise you need to find/create one and tweak things to your liking.
     
    wd_2k6, Sep 8, 2010 IP
  4. IG2010

    IG2010 Well-Known Member

    Messages:
    1,424
    Likes Received:
    55
    Best Answers:
    0
    Trophy Points:
    195
    #4
    what about one fixed background but that would fit any screen
     
    IG2010, Sep 8, 2010 IP
  5. wd_2k6

    wd_2k6 Peon

    Messages:
    1,740
    Likes Received:
    54
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Yeah for sure there's nothing wrong with changing the image itself if it's possible with what you are trying to achieve. Just beware of loading times if the image gets too large in size and take into account different resolution monitors/browser window sizes.
     
    wd_2k6, Sep 8, 2010 IP
  6. IG2010

    IG2010 Well-Known Member

    Messages:
    1,424
    Likes Received:
    55
    Best Answers:
    0
    Trophy Points:
    195
    #6
    Oh the image itself is just about 30ko so I am not worried about that, but I don't know what I need to do to fit all screens
     
    IG2010, Sep 8, 2010 IP
  7. wd_2k6

    wd_2k6 Peon

    Messages:
    1,740
    Likes Received:
    54
    Best Answers:
    0
    Trophy Points:
    0
    #7
    A CSS background image can't physically alter in dimensions as it's fixed. It will just hide/show some more if the browser is shorter/wider respectivley..
     
    wd_2k6, Sep 8, 2010 IP
  8. IG2010

    IG2010 Well-Known Member

    Messages:
    1,424
    Likes Received:
    55
    Best Answers:
    0
    Trophy Points:
    195
    #8
    alright, as you can see I uploaded the image and change the css, howe does it look on your browser for exemple
     
    IG2010, Sep 8, 2010 IP
  9. radiant_luv

    radiant_luv Peon

    Messages:
    1,327
    Likes Received:
    34
    Best Answers:
    1
    Trophy Points:
    0
    #9
    Looks okay via FF at 1440 px
     
    radiant_luv, Sep 8, 2010 IP
  10. IG2010

    IG2010 Well-Known Member

    Messages:
    1,424
    Likes Received:
    55
    Best Answers:
    0
    Trophy Points:
    195
    #10
    Well thanks, I am looking for some other views as I am also using FF 1440 pix resolution
     
    IG2010, Sep 9, 2010 IP
  11. wd_2k6

    wd_2k6 Peon

    Messages:
    1,740
    Likes Received:
    54
    Best Answers:
    0
    Trophy Points:
    0
    #11
    wd_2k6, Sep 9, 2010 IP
  12. JJulian

    JJulian Peon

    Messages:
    29
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #12
    IE 1280 x 1024 looks very nice.
     
    JJulian, Sep 10, 2010 IP
  13. david.rew1164

    david.rew1164 Peon

    Messages:
    55
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #13
    I would suggest u a simple solution. Use photoshop unite both ur images, make it one and use it. (if you dont need to change ur background everytime even if u do there is no harn just edit the psd file and save ur image as save for web)

    thanks
     
    david.rew1164, Sep 30, 2010 IP
  14. unigogo

    unigogo Peon

    Messages:
    286
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #14
    unigogo, Oct 2, 2010 IP
  15. david.rew1164

    david.rew1164 Peon

    Messages:
    55
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #15
    Yes Unigogo,

    Its not always the coding that is to be considered. We also need to apply brains to make our things easier. :)
     
    david.rew1164, Oct 3, 2010 IP