Centering a YouTube Block

Permalink
Hello. Does anyone know how to center a YouTube block? I don't see an option and it looks a little off on my page as it is hugging the left side of the page.

Thank you for your help!

 
drbiskit replied on at Permalink Reply
drbiskit
It will be possible, but will depend on the markup of your page, and the CSS already in place...

Can you give a URL to look at?
shingram replied on at Permalink Reply
Yes. Thank you for giving it a look. http://www.irishdanceidaho.com.... I am currently using the grunge theme.
drbiskit replied on at Permalink Reply
drbiskit
Okay - just add this to your CSS file:

.youtubeBlock {
text-align: center;
}

Should do the trick!
shingram replied on at Permalink Reply
Here is another question then. How to access the CSS file for that specific page? Thank you so much for being here for me!
tallacman replied on at Permalink Reply
tallacman
Put this in your page properties > extra header content:

<style>


.youtubeBlock {
text-align: center;
}

</style>
shingram replied on at Permalink Reply
That did it!!!! Thank you so much!
drbiskit replied on at Permalink Reply
drbiskit
Just for future ref - for various reasons it's usually best to get CSS into the actual CSS file itself, that way the styling is applied to each instance on every page on the site. The CSS file for your site should be here:

root/packages/grunge_columns/themes/grunge_columns/main.css

or possibly here:
root/themes/grunge_columns/main.css
shingram replied on at Permalink Reply
Thank you both so much for your help! I really appreciate it!