Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2006-07-07 19:30:16
- credoquiaabsurdum
- New Member
- Registered: 2006-07-07
- Posts: 2
How to center object such as youtube videos?
I tried to center a youtoube video in my txp blog: so I’ve put the “p(centered). “ in front of the “< object …” code of the youtube video.
But it didn’t help. It still aligned on the left side, although the “p(centered).” code is not visible in the displayed post.
Any suggestions why this didn’t work?
Thanks a lot for your kind help!
Offline
Re: How to center object such as youtube videos?
Try putting this in your css {
#columnselector embed, #columnselector object
{
text-align: center;
}
Offline
#3 2006-07-07 21:28:55
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: How to center object such as youtube videos?
I think you may have to add a margin: auto; in there.
Offline
Re: How to center object such as youtube videos?
Hi
maybe this can help you: CSS Centering: fun for all, by Max Design.
Last edited by maniqui (2006-07-07 21:55:24)
Offline
#5 2006-07-11 22:08:41
- credoquiaabsurdum
- New Member
- Registered: 2006-07-07
- Posts: 2
Re: How to center object such as youtube videos?
According to your answers; The page’s css file needs to be modified in order to center objects in an article?
I am sorry to ask this as a very n00b, since I not a programmer, but a simple content provider on my page…
Offline