Center a script on web page. - Post...

User 119959 Photo


Registered User
44 posts

Not being a web guru and knowledge very limited I would like to know how to center a CC script (eg calendar) on web page? <script>bla bla</script>

My theme is responsive and written in html 5 and css3.

Paisley
"Quis custodiet ipsos custodes."
User 187934 Photo


Senior Advisor
20,266 posts

Set width to width of calender.
CSS
.center{
margin:auto;
width:400px;
}

HTML
<div class="center"><script>bla bla</script></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
User 119959 Photo


Registered User
44 posts

Thank you very much! Struggled a bit, but suddenly discovered that I forgot the closing > at the end! :D
"Quis custodiet ipsos custodes."

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.