• 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

Semi-transparent on top of Transparnt

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 › General Discussion › Semi-transparent on top of Transparnt

This topic is: not resolved
  • This topic has 2 replies, 2 voices, and was last updated 9 years, 2 months ago by defree99.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • December 29, 2013 at 1:06 pm #81869
    defree99
    Participant

    I have managed to create a transparent background for the home page.

    http://tinyurl.com/k9vphjr

    But I can't seem to create a white semi-transparent background only for the text area (I'm simply trying to make the text area easier to read while while maintaining the transparency).

    So in essence I need a semi transparent text area on top on the already transparent background.

    I'm stuck. Any ideas how to do this?

    December 29, 2013 at 2:55 pm #81909
    Ben @ Inbound Creative
    Member

    Hi defree99,

    If you're trying to make the text easier to read, it might not be best to go for a white background while you're text is white.

    I had a quick mess around and found that a black background looks slightly better with white text.

    You have a div with the style "colorbox". I'm not sure how that style is applied, but if it was by you, the easiest way of changing it would be to swap the word 'colorbox' with the following:

    background: rgba(0, 0, 0, 0.6);
    padding: 19px;

    The background sets the color – for example, if you wanted to change the text color to black and have the background as white, simply change all the 0s to 255.

    The last bit – currently 0.6 controls the opacity. 1 is opaque while 0 is transparent. 0.7 would make it more opaque while 0.5 would make it more transparent. You see what I mean?

    As for the padding, that's personal preference. I personally don't like text that runs up to the edge of a box. 19px is the max you can set it at without the boxes dropping under one another. Feel free to set it to less.

    The best thing that you could do – if it is possible – is to assign the div with a class or ID and put that code into your style.css file rather than using style though.

    Hope that helps.


    Award winning web design in Liverpool | UK based Genesis Framework web designer and developer

    January 2, 2014 at 2:57 pm #82749
    defree99
    Participant

    Thank you so much!

    It is 99% perfect.

    My only remaining issue is that the opaque /transparent setting. It does not seem to matter whether I use 0.2 or 1.0.

    The transparency level doesn't change.

    Any help on this final issue would be greatly appreciated.

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘General Discussion’ 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