11 Responses to “How To Easily Center A Web Page”

  1. Christopher McCulloh 13 August 2007 at 12:16 pm #

    Yeah, I was ecstatic when I discovered this. Sorry I never mentioned it to you…

    The way I used to do it though was:

    #container{
    margin-left: auto;
    margin-right: auto;
    }

    Reply
  2. B 14 August 2007 at 5:27 am #

    I guess I should also point out that you might need to put everything inside an outer container with text-align:center so it works in all browsers. I think IE6 might have some problems if you don’t do it like that. You could just add that attribute to the body, too.

    Reply
  3. Arthur 14 August 2007 at 6:10 am #

    I like dill pickles.

    Reply
  4. B 14 August 2007 at 7:29 am #

    It’s part of my nature. Web development posts are inevitable on this blog – it’s what I do.

    If you look at the category cloud on the left you’ll see that, based on the size of the font, at least it’s only a small part of the overall blog content, if that’s any consolation.

    Whoever thought of a category cloud is a genius.

    Reply
  5. jonathan 14 August 2007 at 7:44 am #

    Kosher dill pickles on the side with a good veggie sandwich on fresh baked bread with feta cheese and hummus, topped with onions and cucumbers, tomatoes and and a nice warm french vanilla coffee, sitting out on the corner of the Rue de Malesherbes and…that other street, where dreams are made and destinies are set in motion…where truth shines forth, where heroes are born and covenants are made, where….I need to go pee…excuse me.

    Reply
  6. B 14 August 2007 at 8:23 am #

    Stop spamming my blog you bastards.

    Reply
  7. Luke 14 August 2007 at 9:37 am #

    ROFL. Enough said.

    Reply
  8. B 14 August 2007 at 10:17 am #

    I hope they don’t think I was actually serious…

    Reply
  9. jonathan 14 August 2007 at 11:04 am #

    Too bad you can’t forgive me this Friday at group since I’ll be out of town.

    Reply
  10. B 14 August 2007 at 12:44 pm #

    Man you’re like a traveling salesman. Do you even go to men’s group anymore?

    Reply
  11. jonathan 14 August 2007 at 12:59 pm #

    Man.

    Man….

    It’s been a while, I know. I really want to go this weekend, and I have no excuses. There’s always something to sell, places to visit, people to see, maidens to save, questions to be answered, knowledge to be sought. And somehow it ends up falling on a Friday night.

    I will be there next weekend for sure. You can bet money on that.

    Wow. Did you think your post about “centering a web page” would generate 10+ comments???

    It’s all my fault. Couldn’t leave well enough alone, I guess. Welp. Shoot. Better pack up for that photo op. with the petting zoo in southern Missouri.

    Reply

Leave a Reply