Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 1
Sign in to follow this  
skilodgemusic

How do I change the background opacity of a block?

Question

6 answers to this question

Recommended Posts

  • 3

Use RGBA to set the color, it supports alpha transparency as the 4th parameter:


block-4e5265faf96ce435b6ce {
 border-style: double;
 border-color: white;
 border-width: 10px;
 padding-top: 20px;
 background-color: #afafaf; /* fallback for old browsers */
 background-color: rgba(0, 0, 0, .3);
}


Edited by Jeng

Share this post


Link to post
  • 0

Make sure to grab your own block ID for this. You can remove the border style and stuff too if you don't want that.

Share this post


Link to post
Guest
This topic is now closed to further replies.
Sign in to follow this  

×
×
  • Create New...