Sat10 Sat10 - 3 months ago 10
CSS Question

How do I get the child div which is inside the parent div, go on the first line of the div?

How do I get the child div which is inside the parent div, go on the first line of the div?
See the picture for what I mean: enter image description here

Answer
div
{
  margin: 0;
  padding: 0;
  border: 0;
  vertical-align: baseline;
}
.parentDiv
{
  position: relative;
  /*...*/
}
.childDiv
{
  position: absolute;
  /*...*/
}

Basicly that's the CSS. Read more