limitphp Posted March 23, 2009 Share Posted March 23, 2009 I'm trying to vertical align something in a div to the center. <div class='votebox-bottom' align='center'> <a href="javascript:alert('You must be logged in to vote')" class="greckle-vote">vote</a> </div> .votebox-bottom {background-color:#2a5a8b; width:55px; height:25px; vertical-align: bottom} Is it possible? Link to comment https://forums.phpfreaks.com/topic/150709-valignmiddle-and-vertical-alignmiddle-do-not-work-with-divs/ Share on other sites More sharing options...
rhodesa Posted March 23, 2009 Share Posted March 23, 2009 nope...you have to use tables for vertically aligning something to the middle. future css should support it, but don't expect that in the immediate future Link to comment https://forums.phpfreaks.com/topic/150709-valignmiddle-and-vertical-alignmiddle-do-not-work-with-divs/#findComment-791740 Share on other sites More sharing options...
limitphp Posted March 23, 2009 Author Share Posted March 23, 2009 wow....unbelievable..... thanks for the info.... I guess, I just put a space in there or something.... Link to comment https://forums.phpfreaks.com/topic/150709-valignmiddle-and-vertical-alignmiddle-do-not-work-with-divs/#findComment-791744 Share on other sites More sharing options...
rhodesa Posted March 23, 2009 Share Posted March 23, 2009 while I am a fan of doing tableless design, i do use tables now and again if the design requires it. Link to comment https://forums.phpfreaks.com/topic/150709-valignmiddle-and-vertical-alignmiddle-do-not-work-with-divs/#findComment-791753 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.