• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Making a sprite scalable

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Making a sprite scalable

This topic is: not resolved
  • This topic has 2 replies, 2 voices, and was last updated 12 years, 2 months ago by Lisa at OG.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • April 9, 2014 at 12:21 pm #99381
    Lisa at OG
    Member

    I'm wondering if anyone can help with this. We are using text widgets in the three home-bottom widget sections of our home page and placing sprites inside of them. With sprites you have to add specific width and height and so they can't be set to auto; BUT, we do want them to scale when viewed on an iPad. If we use a Genesis Featured Widget Amplified below the text widget, it automatically scales for an iPad; however, we don't need one as we are not putting any text below it. When we remove it, the information (sprite code) no longer scales down for an iPad.

    Does anyone know what additional code or CSS we need to add to our sprite or the text widgets they are in to make the home-bottom areas scale down on an iPad?

    Here is a link to the demo site in progress: http://www.originalginger.com/demos/saxon/

    http://www.originalginger.com/demos/saxon/
    April 9, 2014 at 1:11 pm #99385
    David Chu
    Participant

    Hi,
    Fascinating question. You could simply make 2 or 3 sprites depending on how many size changes you'd want, and swap them (along with their new dimensions) as you move through the breakpoints. Just like what you might do with a wide header image. Maybe fiddling with width percentages would handle that better than exact dimensions. There could be CSS3 tricks for this, too.

    But that would make the images very small at mobile size, and I wonder if you'd really want the hover swap there? I would stop them floating at a certain size and maybe make them full-width, and then I may not even need to change sprites. That's kind of what I did here, although that was a bunch of custom jQuery rather than sprites/CSS because I was dealing with custom fields and such, too.

    That's my shoot-from-the-hip thought. ๐Ÿ™‚

    Cheers, Dave


    Dave Chu ยท Custom WordPress Developer – likes collaborating with Designers

    April 9, 2014 at 1:38 pm #99387
    Lisa at OG
    Member

    I'm pretty sure that you can't use percentages with sprites -- we would like to avoid creating different size images for different devices. We definitely DO want the hover state on an iPad.

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble