1. display:table

Chrome / Firefox / Safari / Opera / IE8〜

p tag p tag p tag p tag p tag p tag

H1 text

p tag p tag p tag p tag p tag p tag

LINK
</> Show Code
<div class="table">
    <p>p tag p tag p tag p tag p tag p tag</p>
</div>

<div class="table">
    <div>
        <h1>H1 text</h1>
        <p>p tag p tag p tag p tag p tag p tag</p>
        <a href="">LINK</a>
    </div>
</div>

<div class="table">
    <div><img src="images/img.png" alt=""></div>
</div>

<style>
.table{
    width: 300px;
    height: 300px;
    background: #ccc;
    display:table;
    text-align: center;
}
.table > *{
    display:table-cell;
    vertical-align: middle;
}
</style>

2. display:inilne-block; (span)

Chrome / Firefox / Safari / Opera / IE7〜

p tag p tag p tag p tag p tag p tag

H1 text

p tag p tag p tag p tag p tag p tag

LINK
</> Show Code
<div class="inline_block">
    <span></span>
    <p>p tag p tag p tag p tag p tag p tag</p>
</div>

<div class="inline_block">
    <span></span>
    <div>
        <h1>H1 text</h1>
        <p>p tag p tag p tag p tag p tag p tag</p>
        <a href="">LINK</a>
    </div>
</div>

<div class="inline_block">
    <span></span>
    <img src="images/img.png" alt="">
</div>

<style>
.inline_block{
    width: 300px;
    height: 300px;
    background: #ccc;
    display: block;
    text-align: center;
}
.inline_block > *{
    vertical-align: middle;
    display: inline-block;
    zoom: 1; /* Fix for IE7 */
    *display: inline; /* Fix for IE7 */
}
.inline_block span {
    height: 100%;
    width: 0px;
    display: inline-block;
    zoom: 1; /* Fix for IE7 */
    *display: inline; /* Fix for IE7 */
}
</style>

3. display:inilne-block; (:before)

Chrome / Firefox / Safari / Opera / IE8〜

p tag p tag p tag p tag p tag p tag

H1 text

p tag p tag p tag p tag p tag p tag

LINK
</> Show Code
<div class="inline_block_before">
    <p>p tag p tag p tag p tag p tag p tag</p>
</div>

<div class="inline_block_before">
    <div>
        <h1>H1 text</h1>
        <p>p tag p tag p tag p tag p tag p tag</p>
        <a href="">LINK</a>
    </div>
</div>

<div class="inline_block_before">
    <img src="images/img.png" alt="">
</div>

<style>
.inline_block_before{
    width: 300px;
    height: 300px;
    background: #ccc;
    display: block;
    text-align: center;
}
.inline_block_before > *{
    vertical-align: middle;
    display: inline-block;
}
.inline_block_before:before{
    content: "";
    height: 100%;
    vertical-align: middle;
    width: 0px;
    display: inline-block;
}
</style>

4. negative-margin

Chrome / Firefox / Safari / Opera / IE7〜

p tag p tag p tag p tag p tag p tag

H1 text

p tag p tag p tag p tag p tag p tag

LINK
</> Show Code
<div class="n_margin ex1">
    <p>p tag p tag p tag p tag p tag p tag</p>
</div>

<div class="n_margin ex2">
    <div>
        <h1>H1 text</h1>
        <p>p tag p tag p tag p tag p tag p tag</p>
        <a href="">LINK</a>
    </div>
</div>

<div class="n_margin ex3">
    <img src="images/img.png" alt="">
</div>

<style>
.n_margin{
    position: relative;
    width: 300px;
    height: 300px;
    background: #ccc;
}
.ex1 p{
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    text-align: center;
    margin: -0.5em 0 0 -100px;
}
.ex2 div{
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    text-align: center;
    margin: -55px 0 0 -100px;
}
.ex3 img{
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    text-align: center;
    margin: -50px 0 0 -50px;
}
</style>

5. line-height

Chrome / Firefox / Safari / Opera / IE7〜

p tag p tag p tag p tag p tag p tag

</> Show Code
<div class="line-height">
    <p>p tag p tag p tag p tag p tag p tag</p>
</div>

<style>
.line-height{
    width: 300px;
    height: 300px;
    background: #ccc;
    text-align: center;
}
.line-height p{
    line-height: 300px;
}
</style>

6. background-position

Chrome / Firefox / Safari / Opera / IE7〜

</> Show Code
<div class="background-position"></div>

<style>
.background-position{
    width: 300px;
    height: 300px;
    background: url(images/img.png) no-repeat center #ccc;
}
</style>