transparency box for text block
skorg264
Registered Users Posts: 1 Beginner grinner
Anyone have any thoughts on how I might add a transparency box to a text block to help it stand out better against a background?
0
Comments
Do you have a link to the page with the box?
My Website index | My Blog
Hi Allen,
You definitely know your stuff. I am desperately trying to add a black transparency background to this html/css box. The overall goal is that I may input white text over the page background and have it stand out/legible. To say I am rusty at HTML is an understatement. Would appreciate your input if you have the time.
Link: http://www.nickjamison.com/FAQ
Box in question currently says "this is an HTML test".
Thank you,
Nick
nickjamison.com
Something like this should work:
.sm-page-widget-11010009 {
background-color: rgba(0,0,0,0.5);
}
Dave
I copied that into the CSS section of the text box and it did nothing. Could you be a little more specific?
nickjamison.com
add it to "entire site" CSS widget.
My Website index | My Blog
Yeah you can just drop a CSS content block onto the page and add the code... I haven't played around with the CSS tab in HTML/CSS content blocks to have an understanding how to use it. Maybe you can just put the background color CSS line straight into that?
Dave
This worked perfectly. Thank you gentlemen.
One last question. If I wanted to fix the dimensions of the box is that possible as well? In an effort to spare you of stupid questions, I tried to look up the code but it didn't work. Thank you.
nickjamison.com
My Website index | My Blog
Would it be the same for say resizing the box to the text content within the box? Like an auto resize?
nickjamison.com
My Website index | My Blog
Understood. Thank you for the help!
nickjamison.com
FAQ: nickjamison.com/faq <----worked great
Contact: nickjamison.com/contact <-----is not working
nickjamison.com
Just change the widget number in the code to 11036231. Every content block gets a unique widget number, so the code will need to be modified on each page.
I find them using "inspect element" in chrome or web developer tools in firefox:
Dave
Perfect. Thank you for the very specific answer!
nickjamison.com