Support Forum

Please note that this forum is only available to you in read only mode. In order to contribute to this conversation you will need to renew your subscription.

Container to go trans

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Hi Guys

I have not been on for a while :-)

Test site here www.mechanic-aid.com/

Trying to get the background of the above site to show through the container. How can I get the f2f2f2 containers to be a little transparent so the wallpaper shows through just a little?

Loving the new Element template 5 Stars

Thanks for looking
  • Peter haken's Avatar
  • Peter haken
  • 6 Month Developer
  • 324 posts
  • Karma: 0
The administrator has disabled public write access.
There are 2 ways to go about it:

The PNG Method
1. Create a new 1x1px image
2. Fill it with #f2f2f2
3. Lower the opacity of the layer to about 70-80%.
4. Save it as a transparent PNG-24.
5. Use CSS to set the background to the transparent PNG:
.navRow .containerBG {
  background: transparent url(../images/white75.png) 0 0 repeat;
}

The CSS Method
Add these CSS properties to the background for each row you want to be transparent. Example:
.navRow .containerBG {
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=75)";
  filter: alpha(opacity=75);
  -moz-opacity: 0.75;
  opacity: 0.75;
}
  • Atomic Design and Consulting's Avatar
  • Atomic Design and Consulting
  • 3 Month Basic
  • 43 posts
  • 1 Thanks
  • Karma: 2
Last Edit: 12 years 10 months ago by Atomic Design and Consulting.
The administrator has disabled public write access.
Hi Thanks for your help :-) I added that line to my containerBG but has taken removed all the f2f2f2...

have I done something wrong?

.mainRow .containerBG {background: #f2f2f2, -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=75)";
filter: alpha(opacity=75);
-moz-opacity: 0.75;
opacity: 0.75;}
  • Peter haken's Avatar
  • Peter haken
  • 6 Month Developer
  • 324 posts
  • Karma: 0
The administrator has disabled public write access.
Ah sorted I mixed up my : and ;

ALSO

trouble is makes text faded too?
  • Peter haken's Avatar
  • Peter haken
  • 6 Month Developer
  • 324 posts
  • Karma: 0
Last Edit: 12 years 10 months ago by Peter haken.
The administrator has disabled public write access.
Sounds like you may need to then specify the opacity of the text:

eg mainRow .containerBG p {opacity info here}

Anthony
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.
Yeah I try to avoid using opacity on such a broad scale and prefer the PNG method for most cases. However, if this isn't an option, what Anthony suggested should work too... just modify the opacity of the items within that container. Otherwise, they will inherit the opacity of the container.
  • Atomic Design and Consulting's Avatar
  • Atomic Design and Consulting
  • 3 Month Basic
  • 43 posts
  • 1 Thanks
  • Karma: 2
The administrator has disabled public write access.
Yep I agree whole heartedly. I much prefer images rather than resorting to filters for ie which can have a detrimental speed and therefore ranking effect - or so I have read.

Anthony
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Happy Campers