1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.3 HTML/CSS Image Sprite

Discussion in 'Styling and Customization Questions' started by Rum Runner Entertainment, Jul 2, 2014.

  1. Rum Runner Entertainment

    Rum Runner Entertainment Active Member

    Hi,

    I wanted to add an sprite to an a few images that I have. I was wondering where would I put the code. I've found something online with the CSS image sprite, but I am looking for more information about this.

    Thank You.
     

    Attached Files:

  2. Brogan

    Brogan XenForo Moderator Staff Member

    I'm not sure what you're asking.
    A sprite is simply a number of separate images on the same canvas (file).

    You use them in CSS like any other image, with the only difference being you need to specify the coordinates.
     
  3. Rum Runner Entertainment

    Rum Runner Entertainment Active Member

  4. Brogan

    Brogan XenForo Moderator Staff Member

    Yes, that's what I said.
     
  5. Rum Runner Entertainment

    Rum Runner Entertainment Active Member

    Okay, where do I add in the HTML code for the "title override" in the user groups option as well as for the logo/banner at the top?
     
  6. Brogan

    Brogan XenForo Moderator Staff Member

    You would need to edit the templates to customise the HTML.

    Otherwise, if you want to edit the CSS, use EXTRA.css, or edit the CSS template directly.
     
  7. Rum Runner Entertainment

    Rum Runner Entertainment Active Member

    Okay. Which templates exactly do I need to add the CSS sprite code to for the logo at the top?
     
  8. Brogan

    Brogan XenForo Moderator Staff Member

    Why do you want to convert your logo to a sprite?
    What are you hoping to achieve?
     
  9. Rum Runner Entertainment

    Rum Runner Entertainment Active Member

    I don't want people to be able to "drag" the image and be able to use it and or download it. Also, it would help with network latency.
     
  10. Brogan

    Brogan XenForo Moderator Staff Member

    Changing it to a sprite won't stop people from being able to save it.
    It's a fruitless exercise.
     
  11. Rum Runner Entertainment

    Rum Runner Entertainment Active Member

    I see, although I was told that it was done for the reason of network latency.
     

Share This Page