• 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

Adding a background image to Divs and with styling

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 › Adding a background image to Divs and with styling

This topic is: resolved

Tagged: Background image divs and widgets

  • This topic has 1 reply, 2 voices, and was last updated 11 years, 5 months ago by nutsandbolts.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • June 8, 2014 at 12:11 pm #108540
    kmb
    Member

    I am trying to figure out how to add image backgrounds to divs and widgets using Enterprise pro theme.

    If possible, I would love to know how to set these images with fixed width and height and also with repeat axis.

    Any help would be greatly appreciated and thank you very much for your time.

    http://bowmansarrowmarketing.com
    June 11, 2014 at 9:54 pm #109422
    nutsandbolts
    Member

    You can do this in your style.css by assigning a div class. For example, if you have a text widget with some random text in it, you can do this:

    <div class="random-text">
    Tortor mattis vut? Platea mid. Turpis diam dignissim ac, tincidunt habitasse in? Elementum lundium ultricies augue nunc dolor, scelerisque urna?
    </div>

    Then in your stylesheet, you can use .random-text to apply CSS rules to everything enclosed in that particular div. So you could set a background, change the font size/color, add padding, etc. Hopefully that makes sense.


    Andrea Whitmer, Owner/Developer, Nuts and Bolts Media
    I provide development and training services for designers • Find me on Twitter and Google+

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 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

© 2025 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