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.

CSS - Background image - Repeat X, Repeat Y

Discussion in 'CSS' started by bluemanteam, Dec 11, 2007.

  1. #1
    I have a 20x20px background image that I want to repeat to fill the entire screen.

    I have tried using the following:

    background: #000000 url(images/bg.gif) repeat-x repeat-y;

    This does not work, it only repeats on the X axis.

    Could someone please advise what is the correct syntax that I should be using.

    Thank you
     
    bluemanteam, Dec 11, 2007 IP
  2. EIx

    EIx Peon

    Messages:
    170
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #2
    background: #000000 url(images/bg.gif) repeat;
     
    EIx, Dec 11, 2007 IP
  3. soulscratch

    soulscratch Well-Known Member

    Messages:
    964
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    155
    #3
    The default value repeats horizontally and vertically. If this still doesn't work, there's something else wrong with your page (or image).
     
    soulscratch, Dec 11, 2007 IP
  4. muthukswamy

    muthukswamy Active Member

    Messages:
    676
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    60
  5. bluemanteam

    bluemanteam Peon

    Messages:
    169
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Thank you, using just repeat without the X or Y worked.
     
    bluemanteam, Dec 11, 2007 IP
  6. Stomme poes

    Stomme poes Peon

    Messages:
    3,195
    Likes Received:
    136
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Because when you stated repeat-x repeat-y, the browser took the first thing it saw and figured you were using them to exclude other repeats (which is what they do). Repeat-x excludes repeat-y etc. So the two were conflicting.
     
    Stomme poes, Dec 12, 2007 IP
  7. magiclouie

    magiclouie Active Member

    Messages:
    147
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #7
    Yes, by default, it will repeat both horizontally and vertically. or the x and y
     
    magiclouie, Jan 26, 2012 IP
  8. snaker190

    snaker190 Active Member

    Messages:
    44
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    91
    #8
    snaker190, Oct 17, 2012 IP
  9. AimeeJohnson

    AimeeJohnson Peon

    Messages:
    14
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #9
    background: #000000 url(images/bg.gif) top let repeat;

    you may remove the color tag if you wish if you want to display only image on your bg
     
    AimeeJohnson, Sep 15, 2013 IP
  10. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,998
    Best Answers:
    253
    Trophy Points:
    515
    #10
    Which is a really BAD idea, since the color SHOULD be there for if images are disabled. One of those little accessibility bits people don't seem to think of anymore. Progressive enhancement, graceful degradation, and all that...
     
    deathshadow, Sep 16, 2013 IP
    Phil S and HDaddy like this.
  11. Matthew Sayle

    Matthew Sayle Prominent Member

    Messages:
    3,325
    Likes Received:
    464
    Best Answers:
    1
    Trophy Points:
    385
    #11
    Solution:

    background: #000000 url(images/bg.gif) repeat;
     
    Matthew Sayle, Jul 5, 2015 IP
  12. Phil S

    Phil S Member

    Messages:
    60
    Likes Received:
    18
    Best Answers:
    4
    Trophy Points:
    35
    #12
    Who cares, she has the looks, brains is just extra. The background would be black anyway, that's really... pessimistic.
    @AimeeJohnson, better take that wet t-shirt off, you'll catch a cold. :p
     
    Phil S, Jul 5, 2015 IP
  13. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,998
    Best Answers:
    253
    Trophy Points:
    515
    #13
    Sheesh, what's with all the bounces of two year old threads?!?
     
    deathshadow, Jul 5, 2015 IP
  14. Matthew Sayle

    Matthew Sayle Prominent Member

    Messages:
    3,325
    Likes Received:
    464
    Best Answers:
    1
    Trophy Points:
    385
    #14
    Weird, this was in the "popular right now" section.

    I didn't even look at the date!
     
    Matthew Sayle, Jul 5, 2015 IP
  15. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,998
    Best Answers:
    253
    Trophy Points:
    515
    #15
    There's a reason I have user.css making 100% certain that broken nonsense doesn't even waste time being shown. I actually kill that entire sidebar for being crap I don't give a flying purple fish about. It's a buggy broken wreck (much like Xenforo itself) of developer ineptitude that just seems to randomly show whatever someone browsed from a Google search recently.

    Never thought I'd miss vBull.
     
    deathshadow, Jul 5, 2015 IP
  16. Matthew Sayle

    Matthew Sayle Prominent Member

    Messages:
    3,325
    Likes Received:
    464
    Best Answers:
    1
    Trophy Points:
    385
    #16
    You have a very refreshing way of putting things into perspective.

    It's always a pleasure :D
     
    Matthew Sayle, Jul 5, 2015 IP
  17. PoPSiCLe

    PoPSiCLe Illustrious Member

    Messages:
    4,623
    Likes Received:
    725
    Best Answers:
    152
    Trophy Points:
    470
    #17
    How in purple flying fishmongers are "popular threads" anything to go by for finding something to contribute to?
    Go into forums, find the forum you want to participate in, (make sure you're logged in) and click on any thread that has new content since your last visit. Simple. Since about 70% of the forums on this site (or maybe a bit more) is garbage (for me), I don't ever want to see anything from them, regardless of whether the content is "popular" or not. :)
     
    PoPSiCLe, Jul 6, 2015 IP
  18. Matthew Sayle

    Matthew Sayle Prominent Member

    Messages:
    3,325
    Likes Received:
    464
    Best Answers:
    1
    Trophy Points:
    385
    #18
    You're pretty special.

    I bet someone gets a nice tax deduction because of you.
     
    Matthew Sayle, Jul 6, 2015 IP
  19. PoPSiCLe

    PoPSiCLe Illustrious Member

    Messages:
    4,623
    Likes Received:
    725
    Best Answers:
    152
    Trophy Points:
    470
    #19
    Right - and you're basing that on what? The fact that I don't put my comments inside rosy little fluffy emoticons?
    The point is this: if you base your browsing the forum, not to mention posting in the forum, on which threads are on the "popular" list on the front page, then you're doing something wrong. The chances of you having an interest in, or actual knowledge of all the different sections that can pop up in the popular section is slim at best, second, the code for the popular section clearly needs improvement, as it pulls up age-old threads more often than not.

    As for the "70%" comment, it's because there is an entire section on the forum for buying and selling, and for scammers and crap-ware salesmen - not something I'm the least bit interested in - hence I open up "Legal issues", "HTML & Website design", "Content Management", "Programming", "Site and Server administration", "Databases" and "Reviews" - the other forums seldom holds anything interesting for me. And on those forums, I only open those that are in bold, green letters - hence have new threads or posts since last time I was by. It's not hard, it's not complicated, it's actually quite simple.
     
    PoPSiCLe, Jul 6, 2015 IP
    deathshadow, kk5st and malky66 like this.
  20. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,998
    Best Answers:
    253
    Trophy Points:
    515
    #20
    Something made easier in good browsers if you bookmark the areas you're interested in to a single folder, then "open all in tabs" to quickly pop them all open at once. You can then scan them middle-clicking the new threads you want to look at in the background... something that can be even nicer to navigate if you put tabs where they belong in a column on the side with something like REAL Opera (12/earlier as opposed to the steaming pile that is Chropera), Vivaldi (which is REALLY close to being a viable alternative for me), or using extensions for FF like "tree style tabs" -- more so if you add custom buttons in the corner to "close and go to previous" and "close and go to next" instead of having to hunt for the stupid malfing close button on the tab you are in.

    Good for a laugh, this reply has sat here on my netbook since the beginning of the month. I usually only use the netbook when sitting in the park or at the hospital waiting room, I must have put it to sleep without hitting "submit"...
     
    deathshadow, Jul 27, 2015 IP