• What’s the best way to center some text in a post. I’ve tried the < center> < /center > but that’ll make my page invalid iwth xhtml 1.0 transitional. Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • In your style sheet:
    text-align:center

    <div align="center"> blah blah blah </div>
    Is one way. But why do you want to center? Perhaps you should use

    .

    thanks, the div align worked

    do you have to define the div align in the CSS style sheet? I too have this problem and have tried the div align, but the validation still kicks it back. Yes, I do have validation issues in other areas, working on them .. but I have resorted to < center > for the TLB link on the side bar.

    Thanks for explaining something probably very simple to you to a CSS idiot who has read on this until her eyes are bleeding and it’s not sinking in.

    https://joscafe.com

    In the css:

    .center {
    text-align:center;
    }

    In use:
    <div class="center">This text will be centered</div>

    You do no have to call it center – it’s what is in the brackets that matters.

    thank you!!! ?? that makes better sense than anything I’ve read ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Centering’ is closed to new replies.