Posts Tagged ‘css’

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/Bookmark
More »