How (and why) to use display: table-cell (CSS)

After days trying to find the answer, I finally found display: table; There was surprisingly very little information available online about how to actually getting it to work, even here, so on to the “How”: To use this fantastic piece of code, you need to think back to when tables were the only real way to … Read more

Add Favicon to Website [duplicate]

Simply put a file named favicon.ico in the webroot. If you want to know more, please start reading: Favicon on Wikipedia Favicon Generator How to add a Favicon by W3C (from 2005 though)

Can I set subject/content of email using mailto:?

Yes, look all tips and tricks with mailto: http://www.angelfire.com/dc/html-webmaster/mailto.htm mailto subject example:  Run code snippetExpand snippet mailto with content:  Run code snippetExpand snippet As alluded to in the comments, both subject and body must be escaped properly. Use encodeURIComponent(subject) on each, rather than hand-coding for specific cases. As Hoody mentioned in the comments, you can add line breaks by adding the following encoded sequence … Read more

How to change css property using javascript

I want to change css property of class using javascript. What i actually want is when a div is hoverd, another div should become visible. My css is like.. And html file is like.. When hello1 div is hovered, bye1 div should be visible and similarly bye2 should appear when hello2 is hovered. http://jsfiddle.net/rohan23dec/TqDe9/1/

Set cellpadding and cellspacing in CSS?

Basics For controlling “cellpadding” in CSS, you can simply use padding on table cells. E.g. for 10px of “cellpadding”: For “cellspacing”, you can apply the border-spacing CSS property to your table. E.g. for 10px of “cellspacing”: This property will even allow separate horizontal and vertical spacing, something you couldn’t do with old-school “cellspacing”. Issues in IE ≤ 7 This … Read more

Stretch background image css?

Works in: Safari 3+ Chrome Whatever+ IE 9+ Opera 10+ (Opera 9.5 supported background-size but not the keywords) Firefox 3.6+ (Firefox 4 supports non-vendor prefixed version) In addition you can try this for an IE solution Credit to this article by Chris Coyier http://css-tricks.com/perfect-full-page-background-image/