0
Hello everyone, I am learning css just now but I am unable to apply fixed attribute of css positioning.
In the same file I have applied relative positioning but it is in separate div. Please help me.
5 Antworten
+ 2
Share your code
0
For this I have created one div and name it as positionwithimagefixed. In this div I have added one image after that I have also created one paragraph inside the div. After closing the div, I have created one more paragraph.
0
In this I am giving position to image only
0
CSS Code are as follow:
Positioningwithimagefixed is class I have use
Code:. .Positioningwithimagefixed(
Border:5px solid red;
Width: 700px;
Height: 600px;
Overflow: scroll;)
.Positioningwithimagefixed img(
Width:250px;
Height:250px;
Position: fixed;)
And I have use css bracket only as that css bracket is not their in the mobile for this reason simple bracket I have use here to show you code
0
It's resolved. Thanks for trying to help me