What is the problem in the code ? I have a container DIV of 300x300 size if id = container,
When
then it is someway shows wrongly, but when
is showing fine.
But if
then the box flies away to higher / parent level
.abs { position: absolute; width: 100px; height: 100px }
position: absolute; width: 300px; height : 300px; background-color: yellow;
}
background-color: red; top:0; left:0;
background-color: blue; top:0; right:0;
Bikram Choudhury
Absolute positioning example inside a container DIV has been mentioned in this link. Here I have faced some problem to show the actual codes.
http://css-tricks.com/video-screencasts/110-quick-overview-of-css-position-values/
What is the problem in the code ? I have a container DIV of 300x300 size if id = container,
When
container { position: absolute; }
then it is someway shows wrongly, but when
container { position: relative; }
is showing fine.
But if
container { position: static; }
then the box flies away to higher / parent level
.abs { position: absolute; width: 100px; height: 100px }
container {
}
red {
}
blue {
}
Bikram Choudhury
Absolute positioning example inside a container DIV has been mentioned in this link. Here I have faced some problem to show the actual codes.
http://css-tricks.com/video-screencasts/110-quick-overview-of-css-position-values/