css
.class
#id
Select an element with the ID "id" and the class "class":
#id.class {
}
example:
<div>
<strong id="id" class="class">
Foobar
</strong>
<strong class="class">
Foobar
</strong>
</div>
=> Will select the first <strong> element
Select all elements with the class "class",
which are decendents of a element with an ID of "id":
#id .class {
}
example:
<div id="id">
<strong class="class">Foobar</strong>
</div>
=> Will select the <strong> element
.class
#id
div#content.myClass.aSecondClass.aThirdClass /* Won't work in IE6, but valid */
div.firstClass.secondClass /* ditto */
#id.class {
/* Styling */
}
Code Example |
---|
Css :: round corners of image css |
Css :: how to hide text that is longer than its parent div |
Css :: calc css float to procent |
Css :: box sizing |
Css :: @font-face |
Css :: css disabled hover none |
Css :: variables scss |
Css :: move element on new line css |
Css :: style input field css |
Css :: fixed position css |
Css :: css flexbox syntax |
Css :: time an element to disappear css |
Css :: css font color |
Css :: css comment placer un icon sur une photo |
Css :: Unable to locate package neo4j |
Css :: gap between two flex items |
Css :: center div using flex |
Css :: checkbox checked color change css |
Css :: text background in css |
Css :: mitmf install |
Css :: span size css |
Css :: border css |
Css :: how to round input border |
Css :: css transitions |
Css :: registration form in tailwind css |
Css :: css change image height |
Css :: format hexagonal css get |
Css :: stop mysqld.exe cmd |
Css :: can a div change an item in another div css |
Css :: font-style |