Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Apr 2013
    Posts
    54
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Question centralizing elements inside of body according to page size

    hi,
    my webpage is:http://www.terranartworks.com/testsite/tsv1/index.html
    i'm designed this site in 1024*768.i'm trying to central elements inside of body,when page size changed.for example;when page size is bigger than 1024*768,the elements stay where they at the beginning.
    how can i do this.can anyone help me?

  • #2
    Senior Coder
    Join Date
    Sep 2010
    Posts
    2,449
    Thanks
    17
    Thanked 273 Times in 273 Posts
    Code:
    body
    {
    width: 1024px;
    margin: 0 auto;
    }
    Maybe could be applied to the html.
    Welcome to http://www.myphotowizard.net

    where you can edit images, make a photo calendar, add text to images, and do much more.


    When you know what you're doing it's called Engineering, when you don't know, it's called Research and Development. And you can always charge more for Research and Development.

  • #3
    New Coder
    Join Date
    Apr 2013
    Posts
    54
    Thanks
    2
    Thanked 0 Times in 0 Posts
    this is not that i wanted.
    i mean that a jquery like resize method.
    when browser resized,content of page appears verticelly at the middle of resized page.but my page stays at the top of page.


  •  

    Posting Permissions

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