Home>Support>Adjust the opacity of content area..

Adjust the opacity of content area..

By H B, 10 years ago. Last reply by Andrew Misplon, 10 years ago.
Notice: This thread is over two years old; the information may be outdated. Please consider creating a new thread if you require free support. If you have an active SiteOrigin Premium license, you can email our premium support desk at [email protected].

Without harming the content. This is an example from the Responsive theme.

Home

Hi,

It’s been a week trying to figure out a way but keep ending up with the same result.. The images get affected by the opacity css but I only need the content area (white bits) adjusted. Cannot state the domain name here but will email if required as the site hasn’t launched yet.. Please help! :)

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 10 years, 9 months ago Andrew Misplon
    Hi, I Work Here

    Hi H B

    RGBA is the solution:

    http://css-tricks.com/rgba-browser-support/
    http://www.w3schools.com/cssref/tryit.asp?filename=trycss_color_rgba

    For Vantage you can set the opacity of the main container div by adding the following to Appearance > Custom CSS and adjusting as required:

    /* Vantage Set Page Opacity */#main {background: rgba(200, 54, 54, 0.5); }
  2. 10 years, 9 months ago H B

    Hey Andrew,

    That worked great! I’ve got couple questions.. I’ve got Lightwight Social Icons widget posted on all pages via Page Builder and when I hover over the icons the background of the icons is solid color and wondering if its possible to adjust the opacity just like the main container. Same goes for the main navigation buttons. I’ve also set a border around the whole container (layout bound: boxed) and wondering if I could add shadow so it looks like the border is fading away. Thanks.

  3. 10 years, 9 months ago Andrew Misplon
    Hi, I Work Here

    Glad that helped.

    If you can identify the correct selector you can add opacity on hover for your icons. The properties are:

    zoom: 1;
    filter: alpha(opacity=50);
    opacity: 0.5;
    

    Ref: http://css-tricks.com/css-transparency-settings-for-all-broswers/

    You can set menu opacity in the same way we did for the #main container:

    /* Vantage Menu Opacity */
    
    .main-navigation {
    background: rgba(255,0,0,0.3) !important;
    }
    

    To add a shadow around your container you’d use the box-shadow property: http://css-tricks.com/snippets/css/css-box-shadow/.

    Custom CSS tutorial: https://siteorigin.com/basics/modifying-theme-design-with-custom-css/

  4. 10 years, 9 months ago H B

    Thanks for the help! I just have one more question.. My nav menu.. Social widget and footer are centred.. When I compare the footer with the widget.. It looks centred and when I compare the footer with the nav menu it looks centred but when I compare the widget with the nav menu it doesn’t look centred. I’m really confused.. I’ll post link to a screen shot in the morning if that will help.

  5. 10 years, 9 months ago H B

    http://i60.tinypic.com/izmbt1.png

  6. 10 years, 9 months ago H B

    Ignore the previous link http://oi60.tinypic.com/izmbt1.jpg

  7. 10 years, 9 months ago Andrew Misplon
    Hi, I Work Here

    I’d need to take a look like to try help out. Please send through a link. I can always remove it.

  8. 10 years, 9 months ago H B

    — URL removed —

  9. 10 years, 9 months ago Andrew Misplon
    Hi, I Work Here

    Might sort it out:

    .lsi-social-icons li:last-of-type { margin-right: 0 !important; }
    
  10. 10 years, 9 months ago H B

    I’ve inserted the css, can you please take a look for me.

  11. 10 years, 9 months ago H B

    The nav and social icons look centered but the footer looks slightly off to my eyes.

  12. 10 years, 9 months ago Andrew Misplon
    Hi, I Work Here

    Are you certain the Custom CSS is in place? Where is it saved?

  13. 10 years, 9 months ago Andrew Misplon
    Hi, I Work Here

    The issue is the social icons – 382px to the right border, 374px to the left border. Do you have Photoshop installed? Can measure it out if you do.

  14. 10 years, 9 months ago H B

    Hi yes the css is placed in Custom CSS.

  15. 10 years, 9 months ago H B

    But if the icons get moved to the right to match the nav then the footer will look to the left. So maybe i would need to apply a similar code to the colophon?

  16. 10 years, 9 months ago Andrew Misplon
    Hi, I Work Here

    What is happening with those social icons is there is a 8px right margin – having the 8px applied to the last icon throws everything out. This is what I can see is the problem. I’ve measured this out in Photoshop but it’s a little beyond our free support scope to redo that right now. If you have a further more specific question I can assist.

  17. 10 years, 9 months ago H B

    I’ve applied -8px to the margin css and it looks ok but now the nav looks off.. Omg ._.

  18. 10 years, 9 months ago Andrew Misplon
    Hi, I Work Here

    You are missing px from 8. You need say 8px, right now it just says 8. Ensure that you’ve copied in exactly my original snippet provided.

  19. 10 years, 9 months ago H B

    Ooops think I missed the px. Thanks for letting me know. Now the footer looks off.. It’s like I’m going in circles ._.

  20. 10 years, 9 months ago Andrew Misplon
    Hi, I Work Here

    The Custom CSS I sent through was 0. Please try that. It should resolve this.

    .lsi-social-icons li:last-of-type { margin-right: 0 !important; }
    
  21. 10 years, 9 months ago Andrew Misplon
    Hi, I Work Here

    For the future though, this is how you’d approach a challenge like this:

    1. Measure everything out in Photoshop.
    2. Find the source of the issue.
    3. Use your browsers developer tool to inspect the CSS concerned.
    4. Write Custom CSS to resolve.

  22. 10 years, 9 months ago Andrew Misplon
    Hi, I Work Here

    If you don’t have Photoshop you could use Gimp or another free alternative.

  23. 10 years, 9 months ago H B

    Strange how the code didn’t do anything earlier but it has worked! Thank you so much!

  24. 10 years, 9 months ago Andrew Misplon
    Hi, I Work Here

    Super, glad to hear that helped.

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More