Posts Tagged ‘css’

Vertical text in javascript

I’ve just recently been given a Word document with a mock up of a report that I needed to reproduce in HTML. Well, i looked at various options like using transforms, rotate, DX filters in IE, but none of them worked properly, or without major headaches. Whilst searching around, I found a JS library called […]

Share
More »

CSS tricks

1. Vertical centering with line-height ?View Code HTML1 line-height:24px; When you have a container with fixed height you can use line-height property to vertically center the content. 2. Prevent oversized content to break fixed width floated layouts ?View Code HTML1 2 3 #main{ overflow:hidden; } When oversized content (i.e. wide image) is placed in fixed […]

Share
More »

Switch to our mobile site