The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Problem centering the text

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #45972

    I am finding it difficult to center the main text of my website. Though navigation/header and footer are showing centered while the main text of the web page is not showing as centered. Can you please help.

    Kitty Giraudel

    I’m not sure what you mean by “centering the text”. Have you tried `text-align: center`?


    If you mean the text inside the div with class description, you’ll need to add:

    .description > p {
    text-align: justify;

    in your stylesheet. I’m suggesting justify instead of center, because that looks better.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘CSS’ is closed to new topics and replies.