SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member Faiylen's Avatar
    Join Date
    May 2007
    Location
    England, UK.
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How do I set an align property?

    This is a really noob-ish question, I know. What I am referring to is this: how can I set an align property for a part of my design. This is what I have so far:

    Code:
    #wrapper {
       background-color:#F8FFD9;
       width:700px;
    What would I need to add to align the whole box into the center? I can only figure out how to align it to either side of the page. I know how to align text. I am talking about centering the box on the page.

    Thanks,

    Faiylen.

  2. #2
    SitePoint Wizard bronze trophy Centauri's Avatar
    Join Date
    May 2007
    Location
    Newcastle, Australia
    Posts
    3,718
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    #wrapper {
       background-color:#F8FFD9;
       width:700px;
       margin: 0 auto;
    }

  3. #3
    SitePoint Member Faiylen's Avatar
    Join Date
    May 2007
    Location
    England, UK.
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for your assistance!


Bookmarks

Posting Permissions

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