HOME | DD
Published: 2013-11-02 15:02:55 +0000 UTC; Views: 2800; Favourites: 27; Downloads: 0
Redirect to original
Description
/* ---- Goners / Importants ---- */ body div#devskin10621483 .gr { padding:0!important; } body div#devskin10621483 .gr-top img, body div#devskin10621483 .gr1, body div#devskin10621483 .gr2, body div#devskin10621483 .gr3, body div#devskin10621483 .tri, body div#devskin10621483 .prevlink, body div#devskin10621483 .lit img, body div#devskin10621483 .external:after, body div#devskin10621483 .user-symbol, body div#devskin10621483 .list img, body div#devskin10621483 .commentslink, body div#devskin10621483 .gr-top span { display:none; } /* ---- Universal Selector ---- */ body div#devskin10621483 * { background:transparent; border:none; margin:0; padding:0; } /* ---- user symbols ---- */ body div#devskin10621483 .banned.username:before { content:'!' !important; } body div#devskin10621483 .group.username:before { content:'#' !important; } body div#devskin10621483 .regular.username:before { content:'~' !important; } body div#devskin10621483 .hell.username:before { content:'*' !important; } body div#devskin10621483 .hell-beta.username:before { content:'=' !important; } body div#devskin10621483 .premium.username:before { content:'*' !important; } body div#devskin10621483 .beta.username:before { content:'=' !important; } body div#devskin10621483 .senior.username:before { content:'`' !important; } body div#devskin10621483 .volunteer.username:before { content:'^' !important; } body div#devskin10621483 .admin.username:before { content:'$' !important; } /* ----- List tweaking ----- */ body div#devskin10621483 ul, body div#devskin10621483 ol, body div#devskin10621483 ul ul, body div#devskin10621483 ol ol, body div#devskin10621483 ul ul ul, body div#devskin10621483 ol ol ol { margin-left:30px; } /* ---- gr-box ---- */ body div#devskin10621483 .gr-box { background:url('https://fc06.deviantart.net/fs71/f/2013/315/e/e/journalskinbase_by_celvas-d6tvzn7.jpg') repeat; width:400px; border:1px solid #808080; border-bottom:none; border-bottom-right-radius:4px; -moz-border-bottom-right-radius:4px; -webkit-border-bottom-right-radius:4px; border-bottom-left-radius:4px; -moz-border-bottom-left-radius:4px; -webkit-border-bottom-left-radius:4px; margin:auto; margin-bottom:15px; } /* ---- gr-top ---- */ body div#devskin10621483 .gr-top { background:url('https://fc06.deviantart.net/fs71/f/2013/319/7/a/infofiximage_by_celvas-d6udxpe.png') no-repeat center top; width:400px; height:92px; } /* ---- gr-top h2 ---- */ body div#devskin10621483 .gr-top h2 { padding-top:40px; color:#e9e9e9; font-family:'Verdana', sans-serif; font-size:12pt; font-weight:600; text-align:center; } body div#devskin10621483 .gr-top h2, body div#devskin10621483 .gr-top h2 a, body div#devskin10621483 .gr-top h2 a:hover { color:#e9e9e9; } /* ---- content div ---- */ body div#devskin10621483 .content { margin-bottom:-30px; padding:15px 20px; color:#333; text-align:justify; } /* ---- blockquote ---- */ body div#devskin10621483 blockquote { border:1px solid #333; width:80%; margin:auto; padding:10px; } /* ---- black bg span ---- */ body div#devskin10621483 span.blackbg { background:#a11300; padding:0 1px; color:rgb(255, 255, 255); color:rgba(255, 255, 255, 0.0); } /* ---- footer ---- */ body div#devskin10621483 .stfooter { background:url('https://fc06.deviantart.net/fs71/f/2013/319/7/a/infofiximage_by_celvas-d6udxpe.png') no-repeat 0 -262px; width:400px; height:11px; }
A CSS rule in its most basic form is made up of two components: a selector and a declaration.
.example { color: #000; }
As the term suggests, a selector is utilized to target (select) a certain element or certain elements and enable you to style them. On deviantART, you'll find that the selector mostly in use is class, which is depicted as a dot, prominently used in tandem with the HTML tags
Following the selector comes a curly bracket. The curly brackets contain the actual style information, in other words: the declarations. In the above example, the declaration is:
color: #000
A declaration consists of two parts: a property (here: color) and the value of the property (here: #000). Each declaration finishes with a semicolon. While the curly brackets are meant to signify start and end of the styling of a specific selector, the semicolon signifies the completion of a declaration.
Let's take another look at the complete rule:
.example { color: #000; }
It means that every element with the class "example" includes text the color of which is black (#000 = shortened hex for black).
Great explanation I'm sure `GillianIvy will want to put this one into her frequently referenced favourites folder! 👍: 0 ⏩: 2 Thank you. I strove for simplicity. 👍: 0 ⏩: 0 Great suggestion. I get many people asking me things. I think someday I might do an Ask Abby type column, only CSS. hahaha. But I am too disorganized. Like doing things on a schedule. 👍: 0 ⏩: 1 I have so many "things to do one day" 👍: 0 ⏩: 1 I should make a list of all my "things to do one day". Like that journal/autograph book idea we tossed around.... a year ago. 👍: 0 ⏩: 1 👍: 0 ⏩: 1 👍: 0 ⏩: 0 Aaaah, thank you, Simply. 👍: 0 ⏩: 0Related content
Comments: 9
miontre [2013-11-02 20:42:59 +0000 UTC]
I know I would do the same if I had one
Celvas In reply to miontre [2013-11-02 23:31:42 +0000 UTC]
Make one. Heaven is only a few mouse clicks away. gillianivyart In reply to miontre [2013-11-02 23:03:16 +0000 UTC]
miontre In reply to gillianivyart [2013-11-02 23:16:48 +0000 UTC]
gillianivyart In reply to miontre [2013-11-03 18:01:37 +0000 UTC]
miontre In reply to gillianivyart [2013-11-09 22:30:37 +0000 UTC]
I remember that! It would've been so awesome
gillianivyart In reply to miontre [2013-11-10 03:38:06 +0000 UTC]
Still have all our notes on it, so I can figure something out for it someday. Who knows, you may be 18+ by then. lols!
Celvas In reply to SimplySilent [2013-11-02 23:33:05 +0000 UTC]
Aaaaand you're back! Yay!