-2

Hi can anyone help me with css positioning please? I have this layout http://jsfiddle.net/9r7NW/2/ And I want the TITLE to be vertically centered, but I don't know how to do it when the higth of its parent can isn't fixed

m3div0
  • 1,556
  • 3
  • 17
  • 32

1 Answers1

0

HTML

<div id="floater">
<div id="content">
    Content here
</div>
</div>

CSS

#floater    {float:left; height:50%; margin-bottom:-120px;}
#content    {clear:both; height:240px; position:relative;}

Straight from google.

Use it.

edhedges
  • 2,722
  • 2
  • 28
  • 61