livefyre Won't Center on Page

113 views Asked by At

I use a livefyre comments box on my website. My website is designed for a max-width of 980px. I set the livefyre comments box also to a max-width of 980px, but can't seem to get it to horizontally center on the page. I have tried using margin:0 auto; and text-align:center; I set up a test page with inline CSS code at http://www.romancestuck.com/test-pages/livefyre-center.htm

Thanks for your help!

3

There are 3 answers

2
NoobEditor On

URL based question are not suggested, post code next time,

for current solution,add this

#livefyre-comments{
  width:60%;
  margin:0 auto;
}

Problem is that your container ( #livefyre-comments in this case ) has no width set, so it takes the entire available width of view-port.....set a width and then setting margin will center the thing because logically speaking, you can not center something which is 100% wide!! :)

0
Carol McKay On

add this to your code:

 .fire { margin:0 auto; }
0
ralph.m On

You just need to center the main container:

.fyre {
    margin: 0 auto;
}