user1561108
user1561108

Reputation: 2747

relative positioning with percentage values in top property

jsfiddle

The above snippet renders the way I intend it in Chrome (v.20). However in Firefox 11 and IE 9 the 2nd and 3rd content divs do not appear to take into account top and left CSS values.

What is the correct method of relative positioning with percentage widths?

Upvotes: 1

Views: 5513

Answers (1)

shaa
shaa

Reputation: 134

I your case container doesn't have height. You can use this:

body, html {
    min-height: 100%;
    height: 100%;
}

Upvotes: 3

Related Questions