Thursday, 5 September 2013

Mysql table size


Hello,

In order to figure out the table sizes in mysql database, use the following query


SELECT table_name AS "Table",  round(((data_length + index_length) / 1024 / 1024), 2) "Size in MB"  
FROM information_schema.TABLES  
WHERE table_schema = "elyapimi" ;


Hope it helps you out,

Cheers




Tuesday, 3 September 2013

Html Img Vertical Alignment

Hello,

I have just bumped into an interesting problem about centering an image vertically in html.
Thanks to 6 Methods For Vertical Centering With CSS for coming up various solutions. Just used the Line-Height method.



.img-wrapper
{

line-height: 200px; // for me, this value is bigger than the image height
}



.img-wrapper img
{

vertical-align:middle;
}




Hope this helps,