Vertically aligning with tables was a doddle. To make cell content line up in the middle of a cell you would use vertical-align: middle. This doesn't really work with a CSS layout. Say you have a navigation menu item whose height is assigned 2em and you insert this vertical align command into the CSS rule. It basically won't make a difference and the text will be pushed to the top of the box.
I am a aggregator of useful blog articles, tutorials and how-to guides to help you learn new skills and stay current. You can also easily browse the many articles which include news and headlines from around the web. I started to keep you up to date with what’s happening in the global UI design community. I make simple for you to browse and share your favourite articles with your friends and colleagues.
Thursday, February 10, 2011
Vertically aligning with CSS - text and image
Vertically aligning with tables was a doddle. To make cell content line up in the middle of a cell you would use vertical-align: middle. This doesn't really work with a CSS layout. Say you have a navigation menu item whose height is assigned 2em and you insert this vertical align command into the CSS rule. It basically won't make a difference and the text will be pushed to the top of the box.
Tuesday, February 8, 2011
Subscribe to:
Posts (Atom)