Results 1 to 5 of 5

Thread: page alignment

  1. #1
    Join Date
    Feb 2009
    Posts
    156
    Thanks
    0
    Thanked 4 Times in 3 Posts

    Default page alignment

    hello friends...
    i am making a web site, it has fixed lay out, i want to know how to keep page in the middle of the screen?

    i mean when i surf on wide screen monitors, the must be seen in the middle of the screen, but my page is being displayed on left corner...?


    is there i need to define any stle so that my page can be displayed in the middle?
    c this link
    http://in.yahoo.com/?p=us
    i want such alignment of the page?

  2. #2
    Join Date
    Feb 2009
    Posts
    156
    Thanks
    0
    Thanked 4 Times in 3 Posts

    Default

    is there any CSS Property that can align a DIV into center, instead the contents of a div?

  3. #3
    Join Date
    Oct 2009
    Posts
    845
    Thanks
    14
    Thanked 189 Times in 188 Posts

    Default

    try something like this
    Code:
    #centerdiv {
    margin:0 auto;
    }
    give the div you want to center the id="centerdiv"
    If it doesn't work for you then post a link to your page so we can take a look at it.

  4. #4
    Join Date
    Feb 2009
    Posts
    156
    Thanks
    0
    Thanked 4 Times in 3 Posts

    Default

    it works


    thanx

  5. #5
    Join Date
    Feb 2009
    Posts
    156
    Thanks
    0
    Thanked 4 Times in 3 Posts

    Default

    but dont work in IE?

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
  •