Forums

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

Home Forums CSS How do you center a div tag inside of the body???

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #209013
    rsood1
    Participant

    Hey, I’m a beginner to CSS and was wondering how you could center the div tag inside of the body. I tried adding margin-right:auto and margin-left:auto to div under styles but that did not seem to work. I also tried adding it to the article and aside tags, but that messed with the formatting. Any help would be greatly appreciated.

    [Mod Edit – Codedump Removed]

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