Usama Tahir
1 min readSep 25, 2017

--

The reason you cannot see div border because border-style is missing.
“border: 5px solid black;”
Also, the position absolute working fine. All you have to do is give “top: 0;”

img{
width:100%;
height:auto;
}
div{
color: orange;
width: 250px;
height:350px;
border: 2px solid black;
position: absolute;
top: 0;
background: inherit;
}
p{
color:black;
font-size: 20px;
}

--

--

Usama Tahir
Usama Tahir

Written by Usama Tahir

Full Stack Developer, UI/UX Designer & Digital Marketer. A writer who love to share solutions to common problems. @amjustsam

No responses yet