| CSS Code #1 |
|
|
|
| Written by Administrator |
| Thursday, 11 August 2011 19:07 |
|
A collection of CSS Code snippets. CSS Code Set #1 contains code of opacity, eliminating border outlines, and resetting web pages. Â Â Opacity CSS CodeThis is a cross browser CSS code that results in a 50% opacity to what ever it is applied to (i.e. images, links) Some of the code included is CSS 3 and may not work in some browsers.', ' The CSS Code: Â .my-opacity {
Please note that this is written as class, not a div. Â Rounded Corners CSS CodeA CSS 3 code to create rounded corners. Warning: This is CSS 3 code and as yet may not work in all browsers. #round{
height:35px; background-color:#ff0000; -moz-border-radius: 5px; -webkit-border-radius: 5px; } HTML in body: <div="round">Rounded Corner CSS Example</div> Â CSS Border Outlines
* :focus { outline: 0; }
div#header a:focus, div#header a:active {
   outline: 0 none;    -moz-outline: 0 none;    } CSS Code ResetA sampling of CSS reset codes. For those who desire to reset all the code to work with essentially a fresh slate here are some extremely simple CSS reset codes that are commonly used. * {
   padding: 0;    margin: 0;    }
* {
   padding: 0;    margin: 0;    border: 0;    }
* {
   outline: 0;    padding: 0;    margin: 0;    border: 0;    }
|
| Last Updated on Thursday, 11 August 2011 19:16 |



