www.webdeveloper.com
Results 1 to 4 of 4

Thread: make center both vertical & horizonal

  1. #1
    Join Date
    Sep 2010
    Posts
    21

    make center both vertical & horizonal

    i'm wondering unknow on making element in html center to browser 'screen. i wanna use javascript to solve this. thanks !

  2. #2
    Join Date
    Dec 2003
    Location
    Bucharest, ROMANIA
    Posts
    15,428
    Quote Originally Posted by huyhoang08 View Post
    i'm wondering unknow on making element in html center to browser 'screen. i wanna use javascript to solve this. thanks !
    Horizontally
    http://haslayout.net/css-tuts/Horizontal-Centering
    Vertically
    http://www.jakpsatweb.cz/css/css-ver...-solution.html

    No JavaScript is needed, as far as I know. You may also google for other solutions.

  3. #3
    Join Date
    Sep 2010
    Posts
    21

    change according to client of browser

    thank for your help. i think that is good ideal for me, but my opinion that change position of element according relay on(or according to) size of browser' client/ size of document so that only client side language as javascript/jquery may be done.

  4. #4
    Join Date
    Dec 2003
    Location
    Bucharest, ROMANIA
    Posts
    15,428
    CSS centering of an element has nothing to do with the browser's size or the document's size. It is always a relative arrangement.

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



Recent Articles