Won't center

OK, I have a test page that I am trying to center the youtube “link” but, well, it does not want to cooperate I know I am doing something wrong, but for the life of me can’t see it

So, if you go to test site you can see that the youtube stuff is not centered.

Any help would be appreciated.


Hi there fredep57,

add “display:block;” to these attributes…

div .centr { margin: auto; width: 70%; border:3px solid #8AC007; padding: 10px; }


Hi, fredep57.

You might prefer to add {text-align:center} to .Pictures1 instead of setting div.centr to {display:block;}. Doing so includes the text below the iframe. Try both; no extra charge

div .Pictures1 {
    border: 2px none black;
    display: block;
    margin: 0 auto;
    text-align: center;  /* ADD ME */
    width: 100%;

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.