#Trying to center Twitter button, not sure how to.

6 messages · Page 1 of 1 (latest)

rose saddle
#

Trying to center this, not sure how. Need some help.

<a href="https://twitter.com/share?ref_src=twsrc%5Etfw" class="twitter-share-button" data-text="Today is a Bones day!" data-url="http://bonesday.info" data-hashtags="BonesDay" data-show-count="false">Tweet</a><script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>

#

Doesn’t wanna be centered the ways I’m trying…

dense crown
#

<div style="display:flex;justify-content: center; align-items: center;"><a href="https://twitter.com/share?ref_src=twsrc%5Etfw" class="twitter-share-button" data-text="Today is a Bones day!" data-url="http://bonesday.info" data-hashtags="BonesDay" data-show-count="false">Tweet</a><script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script></div>
Should do it

#

Or use position:relative approach setting margin to auto

#

@rose saddle