centering the web calendar

User 11862 Photo


Ambassador
27 posts

When publishing my webcalendar, I set the theme to be 600px wide, and copied the code to my site.

I wanted it to center, so I added a center tag before and after the code.

when I do this, it extends entires off the calendar. This also happens on the raw file generated by the web cal app when I edit the calendar.html file to center it.

I tried center tag and div align tags with same results.

Any ideas? I saw a few posts, but it didnt seem like any clear resolution.

see image, or url http://www.marcmayhem.com/html/event_calendar.html

User 2417281 Photo


Registered User
4 posts

Mark, I thank you for your time and answer. I hope that you as an Ambassador have made the suggestion to CoffeeCup that this is an option that should be incorporated within the program. It woul be a big improvement in the next revision.

Again, thank you for your time and answer...jjb
User 2417281 Photo


Registered User
4 posts

Do you have any sample code that will center the Calendar? Thank you in advance...jjb
User 187934 Photo


Senior Advisor
20,244 posts

Give this a try.:)
<div align="center">
<!-- this is where the calendar's html will be inserted -->
<div id="cc_webcalendar" style="width:400px">
</div>
</div>
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.