PDA

View Full Version : css issues



bberry91
06 Jun 2011, 08:36 AM
i am trying to vertical-align the following, but it won't work:


<div id="text" style="width:200px; text-align:center; color:#000; z-index:4; position:absolute; height:25px; vertical-align:middle;">
<?
$usagePercent = 55;
echo $usagePercent; ?>% in use
</div>

also, how can i make a border size smaller? right now, i have dotted, and it is too big.

lastly, how can i make a div the full height of my page content? here is my code (http://pastebin.com/X4b23cu4).

bizomedia
06 Jun 2011, 06:14 PM
this is a site that covers several different ways to vertically center content

http://www.jakpsatweb.cz/css/css-vertical-center-solution.html