No replies
gautamz07
gautamz07's picture
Offline
Enthusiast
Last seen: 4 years 5 weeks ago
Timezone: GMT+5.5
Joined: 2014-04-24
Posts: 265
Points: 403

Hey guys .

talking about parent- child margin collapse which is a better hack ?

.parent {
    padding-top: 1px;
    margin-top: -1px;
}

or

.parent {
    overflow:auto
}

i am asking because when it comes to containers collapsing due to floats inside them the

.parent {
    overflow:auto
}

has side effects in macs .