Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Software Development
Programming
Programming Q&A
CSS / HTML Container Help please.
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Markshall" data-source="post: 423155" data-attributes="member: 1872"><p>You need to use RGBA on the box, not opacity.</p><p></p><p>So first off you need to convert #96b3be to RGB which is rgb(150,179,190) then apply an alpha transparency value to it</p><p></p><p>So it would be</p><p>[code]#box-container {</p><p> background-color: rgba(150,179,190,.5);</p><p> /*rest of styles*/</p><p>}[/code]</p><p></p><p>You set the <span style="font-family: 'Courier New'">.5</span> to whatever opacity value you want, but as you’ve set <span style="font-family: 'Courier New'">opacity: 0.5</span> in your original code, I’m assuming you want a half-opaque opacity.</p><p></p><p>You can try the same thing on the border, I’m not sure if alpha transparency would work on borders as I’ve never tried, but I can’t see why it wouldn’t work.</p></blockquote><p></p>
[QUOTE="Markshall, post: 423155, member: 1872"] You need to use RGBA on the box, not opacity. So first off you need to convert #96b3be to RGB which is rgb(150,179,190) then apply an alpha transparency value to it So it would be [code]#box-container { background-color: rgba(150,179,190,.5); /*rest of styles*/ }[/code] You set the [FONT=Courier New].5[/FONT] to whatever opacity value you want, but as you’ve set [FONT=Courier New]opacity: 0.5[/FONT] in your original code, I’m assuming you want a half-opaque opacity. You can try the same thing on the border, I’m not sure if alpha transparency would work on borders as I’ve never tried, but I can’t see why it wouldn’t work. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Software Development
Programming
Programming Q&A
CSS / HTML Container Help please.
Top