Issuu - You Publish
Publish by millions.
Explore a world of publications by people and publishers alike. Collect, share and publish in a format designed to make your documents look their very best.
Pogo Stick Fail « FAIL Blog: Epic Fail Pictures and Videos of Owned, Pwnd and Fail Moments
==- Readerror -==
Control Jazztel de conexiones
8 Premium One Line Css Tips | Css Globe
-
1. Vertical centering with line-height
line-height:24px;
When you have a container with fixed height you can use line-height property to vertically center the content.
Take a look at this demo.2. Prevent oversized content to break fixed width floated layouts
#main{
overflow:hidden;
}When oversized content (i.e. wide image) is placed in fixed width floated container, it may break the layout. To prevent that use this trick. It will hide a part of the content but at least your layout structure will remain intact.
I wrote an article about it a while back.3. Prevent line breaks in links
a{
white-space:nowrap;
}This little trick will prevent line breaks on your links. I recommend using this with long text to avoid having links break into 2 lines.
4. Always show Firefox scrollbar
html{
overflow:-moz-scrollbars-vertical;
}Firefox hides vertical scrollbar by default. So, when you browse a site that have different page heights you notice a horizontal shift. This code will always display a scrollbar and prevent shifting.
5. Centering block elements horizontally
margin:0 auto;
For all modern browser this line of css is enough to horizontally center a block level element.
6. Remove vertical textarea scrollbar in IE
textarea{
overflow:auto;
}Textareas in IE have vertical scrollbar visible by default. If you want those removed (I know I do) use this line.
7. Force page breaks when printing your document
h2{
page-break-before:always;
}With this line of code you can control places where you want your pages to break when printing a document.
8. Remove active link borders
a:active, a:focus{
outline:none;
}
ThinkGeek :: Cocktail Chemistry Set
Cocktail Chemistry Set - Mix your cocktails like you mix your chemicals
Sponsored Links
Top Tags
- 1294Spurl.netBookmarks,
- 219recursos,
- 154css,
- 56detalles,
- 55tools,
- 47design,
- 43webdesign,
- 43clientes,
- 43webServices,
- 32jquery,
View All Recent Tags (49)
- 9jquery,
- 9list,
- 7twitter,
- 7inspiration,
- 6javascript,
- 6shop,
- 6lists,
- 5D,
- 3plugins,
- 3twitterApps,
- 3blog,
- 2design,
- 2css,
- 2screencast,
- 2CMS,
- 2macSoftware,
- 2posters,
- 2logo,
- 2imprenta,
- 2iphone,
- 2lightbox,
- 2software,
- 2Typografías,
- 1sidebar,
- 1scroll,
- 1mobile,
- 1tables,
- 1anton,
- 1colorPalettes,
- 1scheme,
- 1comments,
- 1ie,
- 1browsers,
- 1font,
- 1404,
- 1framework,
- 1gerrilla,
- 1basics,
- 1apps,
- 1tutorial,
- 1blogIdeas,
- 1twitterDiseño,
- 1Coñas,
- 1texto,
- 1downloadRapidshare,
- 1cmss,
- 1iconSets,
- 1canvas,
- 1myspace
Public Tags (621)
Roberto Lage's Public Lists (7)
Diigo is about better ways to research, share and collaborate on information. Learn more »
Join Diigo