• 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

Pseudo-Element Help in Parallax Pro

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 › Pseudo-Element Help in Parallax Pro

This topic is: not resolved

Tagged: background color, css, parallax-pro, pseudo-element

  • This topic has 2 replies, 2 voices, and was last updated 7 years, 1 month ago by tom pine.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • April 8, 2016 at 9:40 am #183173
    tom pine
    Member

    Hi all,

    Would anyone help me out with a Pseudo-Element issue I'm having with Parallax Pro, in the styling below I'm looking at adding a ::before element to add a transparent background color over .home-section-1.
    If you are able to see the Screenshot (linked below), you will see the background-color for the ::before element does not cover the whole background attachment and it's destroying my brain...

    Any ideas?

    .home-section-1,
    .home-section-3,
    .home-section-5 {
    	background-attachment: fixed;
    	background-color: #fff;
    	background-position: 50% 0px;
    	background-repeat: no-repeat;
    	-webkit-background-size: cover;
    	-moz-background-size:    cover;
    	background-size:         cover;
    }
    
    .home-section-1::before {
        content: "";
        display: block;
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        pointer-events: none;
        background-color: rgba(0,0,0,0.8);
    }

    Screenshot: http://postimg.org/image/n7xtfqkjj/

    April 8, 2016 at 1:02 pm #183184
    carasmo
    Participant
    .home-section-1,
    .home-section-3,
    .home-section-5 {
    	position: relative; /* absolute only works on a parent that is relative or fixed not static (default) */
    	background-attachment: fixed;
    	background-color: #fff;
    	background-position: 50% 0px;
    	background-repeat: no-repeat;
    	-webkit-background-size: cover;
    	-moz-background-size:    cover;
    	background-size:         cover;
    }

    Genesis Theme Customization and Help

    April 8, 2016 at 5:38 pm #183189
    tom pine
    Member

    Thank you for pointing this out Christina! 🙂

  • 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

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