1

The fullcalendar jquery plugin I'm using is stuck to the left side of the browser how do I center it?

<div id="calender"style="width: 80%; display: inline-block; "></div> 
3
  • This answer might be useful Commented Feb 28, 2019 at 16:20
  • 1
    margin:0 auto; should do... But with display:block. Commented Feb 28, 2019 at 16:21
  • most of the tags you used have nothing to do with the question. I added some more relevant ones.
    – ADyson
    Commented Feb 28, 2019 at 23:32

1 Answer 1

1

You can wrap your div with <center> </center> tags

<center> <div id="calender"style="width: 80%; display: inline-block; "></div> </center>

or

You can apply this CSS to the :

#inner { width: 50%; margin: 0 auto; }

Not the answer you're looking for? Browse other questions tagged or ask your own question.