salino2835 Posted November 25, 2014 Share Posted November 25, 2014 how would i put a transparent box around text in wordpress? this is what i have so far: [segment id=blog-header]<h1 style="color:#0068ad;">Blog</h1> <p style="color:#ffffff;">The only thing we love more than writing is writing about Augmented Reality. Check our blog for the latest updates in AR technology.</p>[/segment] Link to comment Share on other sites More sharing options...
Ingolme Posted November 25, 2014 Share Posted November 25, 2014 What does "transparent" mean? Is it a transparent background, a transparent border or is the entire content of the box transparent? Or by transparent do you mean completely invisible? Link to comment Share on other sites More sharing options...
salino2835 Posted November 25, 2014 Author Share Posted November 25, 2014 i have a black and blue background image and when the type goes over some parts you can't really read it. I want a text box that is a light grey and can also see the background image under it Link to comment Share on other sites More sharing options...
Ingolme Posted November 25, 2014 Share Posted November 25, 2014 You can use RGBA colors in the background to add transparency to the background color. Be sure to provide an ordinary color code for browsers that don't support RGBA. This color should go before the RGBA color in the stylesheet so that the RGBA color will override it: background-color: #FFF; /* For browsers that don't support RGBA */background-color: rgba(255, 255, 255, 0.5); Link to comment Share on other sites More sharing options...
salino2835 Posted November 25, 2014 Author Share Posted November 25, 2014 thank you very much Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now