Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 06-25-2012, 01:53 AM   PM User | #1
Theriex
New Coder

 
Join Date: Jun 2012
Posts: 12
Thanks: 1
Thanked 0 Times in 0 Posts
Theriex is an unknown quantity at this point
Vertically center a div.

I know this has been asked again and again but after much searching on Google and numerous attempts myself, I am unable to come up with a solution that works.

I am trying to center a DIV vertically inside of another DIV. The outer DIV has a height that is set using document.documentElement.clientHieght. The inner DIV's height is variable and unknown.

Any help is appreciated. Thanks
Theriex is offline   Reply With Quote
Old 06-25-2012, 06:26 AM   PM User | #2
abduraooft
Supreme Master coder!

 
abduraooft's Avatar
 
Join Date: Mar 2007
Location: N/A
Posts: 14,678
Thanks: 158
Thanked 2,182 Times in 2,169 Posts
abduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really nice
Have a look at this dead centre.
__________________
Quote:
The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)
abduraooft is offline   Reply With Quote
Old 06-26-2012, 04:49 AM   PM User | #3
Theriex
New Coder

 
Join Date: Jun 2012
Posts: 12
Thanks: 1
Thanked 0 Times in 0 Posts
Theriex is an unknown quantity at this point
Thanks, I managed to rewrite it from the ground up quickly enough and resolved the issue.
Theriex is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:02 AM.


Advertisement
Log in to turn off these ads.