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 !
Originally Posted by
huyhoang08
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.
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.
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
Forum Rules
Bookmarks