Welcome visitor
* Login
* Register
It is currently March 19th, 2019, 7:54 am
All times are UTC [ DST ]
* Search
View unanswered posts - View active topics

FORUMS » Client Side » HTML



Post new topic Reply to topic  [ 2 posts ] 
Author Message
  Vertical-Align (valign) inside a div
PostPosted: November 28th, 2009, 5:18 am 

Posts: 14
Do you know how to do vertical align (valign) inside a div?

I want to have the table default behavior of everything aligned at the middle of the parent element. The thing is that I dont want to use tables :D. Thank you.


Top
 Profile  
 
  Re: Vertical-Align (valign) inside a div
PostPosted: December 1st, 2009, 4:04 am 
User avatar

Posts: 136
easy one, lad:
<style type="text/css">
body, html{height: 100%}
.win{width: 100%; height: 100%}
.mid{position: absolute; top: 50%}
</style>

<div class="win"><span class="mid">text</span></div>


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

FORUMS » Client Side » HTML


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron