Transparent Box with HTML CSS

0 votes

I want to make a transparent box with content inside it with the image below..

example image

I have no idea how to make this. Is it necessary for me to employ HTML5 techniques? Could you please assist me in constructing this box?

Jun 9 in CSS by Edureka
• 9,940 points
24 views

1 answer to this question.

0 votes

HOpe this helps you.

HTML:

<img src="http://lorempixel.com/400/200" />
<div class="box-transparent">
    This is some demo Text
</div>

CSS:

.box-transparent {
    position: fixed;
    top: 20px;
    left: 20px;
    background-color: rgba(100, 100, 100, 0.6);
    padding: 20px;
}

The important thing is the rgba(100, 100, 100, 0.6); line. 0.6 is the box's opacity.

answered Jun 13 by Edureka
• 9,540 points

Related Questions In CSS

0 votes
0 answers
0 votes
1 answer

CSS Border on PNG image with transparent parts

 There is a way to accomplish this ...READ MORE

answered Jun 13 in CSS by Edureka
• 9,540 points
263 views
0 votes
1 answer
0 votes
1 answer

I want to create a small square colour filled box in HTML & CSS. And most important - I want to write one line after the box

Try using the square html entity: <div style="color:blue">&a ...READ MORE

answered Jun 28 in CSS by Edureka
• 9,540 points
37 views
0 votes
1 answer

How to make div background color transparent in CSS

To begin, we will build a div> ...READ MORE

answered Jun 28 in CSS by Edureka
• 9,540 points
85 views
0 votes
0 answers

Transparent box or an image with HTML or CSS

I have no idea about creating a ...READ MORE

Jul 4 in HTML by Tejashwini
• 1,660 points
15 views
0 votes
2 answers

Define a SQL query? What is the difference between SELECT and UPDATE Query? How do you use SQL in SAS?

HI.. SQL is Structured Query Language, which is ...READ MORE

answered Aug 8, 2020 in PHP by anonymous
4,741 views
0 votes
1 answer

Using/Handling colon inside a JSF generated HTML element ID in CSS selector

Yes, you can.  Just Backslash (\) the colon.  Like ...READ MORE

answered Nov 14, 2018 in Others by DataKing99
• 8,240 points
1,703 views
0 votes
1 answer

How to build a special polygon (a kite shape) with HTML & CSS only?

I made two divs, one for Arc ...READ MORE

answered May 28 in CSS by Edureka
• 9,540 points
78 views
0 votes
1 answer

html/css hexagon with image inside

The CSS3 clip-path feature is a novel ...READ MORE

answered Jun 10 in CSS by Edureka
• 9,540 points
131 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP