muttley91
muttley91

Reputation: 12674

Margin left/right behaving differently on Chrome & Firefox

I have a div (Facebook comments plugin, for what it's worth) styled with only the following CSS.

div.fb-comments
{
margin-left:30%;
margin-right:30%;
}

On Chrome, this puts the <div> in the center of the screen. However, on Firefox, it remains at the left. Why might this be?

Upvotes: 2

Views: 3703

Answers (1)

muttley91
muttley91

Reputation: 12674

As suggested by YoannM, I defined a width for this element and it solved the problem. Thanks!

Upvotes: 1

Related Questions