adding a translucent box?
-
Brand new to WordPress, and don’t know the extent of the CSS capabilities. I have this strong desire to put a translucent box under text on the Home Page (PORT theme), and change the color of the font.
The blog I need help with is: (visible only to logged in users)
-
Oops. Now live. And yes, I do have the premium account. Thanks for any help you can give me!!!
-
It’s still saying it’s a protected blog on my end. Did you maybe forget to click “Save Settings” at the top of the box?
-
-
Got it! :)
Try adding this:
.wf-active #home-banner #banner-text .main h2 { color: #000000; background-color: rgba(255,255,255,.6); padding: 10px; }I have the color of the font set to black in the above example, but you can change that to whatever you want – I can help you change it to something different if you have an idea of what color you’d prefer there.
-
“it” meaning the down button. also, can we make the box a bit bigger? More room around the text?
-
You definitely can!
Try this:
#down-button { color: #000000; background-color: rgba(255,255,255,.6); }If you want to make the down button round (with I think looks a little better, you can do this:
#down-button { color: #000000; background-color: rgba(255,255,255,.6); border-radius: 30px; } -
Regarding making the box around the text a bit bigger, just increase the padding. So right now it’s set to padding: 10px; but you can increase that number to 15 or 20px and that’ll make the box bigger, like this:
.wf-active #home-banner #banner-text .main h2 { color: #000; background-color: rgba(255, 255, 255, 0.6); padding: 20px; } -
I am sooo excited! This looks great. Thank you, thank you! One question: can we make the translucency around the arrow just a little more opaque? A little hard to see . . .
-
Sure can :)
Here’s the updated code (the round version):
#down-button { color: #000000; background-color: rgba(255,255,255,.8); border-radius: 30px; }All I’m changing from the way it was before is where it says background-color: rgba(255,255,255,.8); — the decimal number at the very end was a .6 so I changed it to a .8 — the higher the number, the more opaque.
Hope that makes sense :)
-
Yes it does. Thank you—-it’s so so helpful.
I would really appreciate more help . . . with pictures . . . Do I need to start a new thread? or can you help me here?
-
I would start a new thread since it’s a different topic and I’ll take a look if I can, or if not someone else will grab it and help you out!
-
-
- The topic ‘adding a translucent box?’ is closed to new replies.