Want to become a Vibe Coder? Join Vibe Coding Training here
x
C# Corner
Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
CSS in Nested Div
WhatsApp
Nilesh Jadav
Jun 04
2015
1.2
k
0
2
<!DOCTYPE html
>
<
html
>
<
head
>
<
style
>
div {
background-color: lightgrey;
width: 500px;
padding: 25px;
opacity:0.4;
margin: 25px;
box-shadow: 5px 5px grey;
}
#cs{
background-color:grey;
width:300px;
margin-top:50px;
margin-left:70px;
margin-right:50px;
margin-bottom:50px;
opacity:1;
}
</
style
>
</
head
>
<
body
>
<
div
>
<
div
id
=
"cs"
>
<
p
>
<
b
>
Welcome here to Css of nested div
</
b
>
</
p
>
</
div
>
</
div
>
</
body
>
</
html
>
css
div
html
Nilesh Jadav
form
Up Next
CSS in Nested Div