Results 1 to 2 of 2

Thread: Centering This Specific Div

  1. #1
    Join Date
    Jun 2007

    Centering This Specific Div


    Review the text in the green bar. I would like for that to have a margin of 20px auto, which like the container div below and the top_header div on top it has an auto margin and is neatly in the middle of the browser in any browser.

    How can I set the text to have the same idea? Right now I have it set to certain padding lengths, but this won't work in other browsers except the one I am testing it in.

    Any help would be greatly appreciated.

  2. #2
    Join Date
    Nov 2006
    Give #text a width of 860px and set margin:0 auto to it.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center