diff options
author | Nimit Shah <nimit.svnit@gmail.com> | 2016-07-08 23:42:03 +0530 |
---|---|---|
committer | ven <vendethiel@hotmail.fr> | 2016-07-08 20:12:03 +0200 |
commit | 36ab227827c371721066ebfbc954ce3eaeaf2aa3 (patch) | |
tree | b06ec96b74b2561e8b85f6bfb9728f538cbf9712 /css.html.markdown | |
parent | b8e496eba15314e581c1280b1f55cd6e56740956 (diff) |
[CSS/en] Adding border related styleguides (#2301)
* Adding border related styleguides
Adding border related styleguides. Most of the modern designs have borders for their elements.
* Spacing the comments like the rest of the file
Diffstat (limited to 'css.html.markdown')
-rw-r--r-- | css.html.markdown | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/css.html.markdown b/css.html.markdown index 5dae06ca..fc07fce4 100644 --- a/css.html.markdown +++ b/css.html.markdown @@ -169,6 +169,13 @@ selector { color: transparent; /* equivalent to setting the alpha to 0 */ color: hsl(0, 100%, 50%); /* as hsl percentages (CSS 3) */ color: hsla(0, 100%, 50%, 0.3); /* as hsl percentages with alpha */ + + /* Borders */ + border-width:5px; + border-style:solid; + border-color:red; /* similar to how background-color is set */ + border: 5px solid red; /* this is a short hand approach for the same */ + border-radius:20px; /* this is a CSS3 property */ /* Images as backgrounds of elements */ background-image: url(/img-path/img.jpg); /* quotes inside url() optional */ |