Search
 
SCRIPT & CODE EXAMPLE
 

CSS

css class and id selector

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
Comment

css selector id class

div#content.myClass.aSecondClass.aThirdClass /* Won't work in IE6, but valid */
div.firstClass.secondClass /* ditto */
Comment

PREVIOUS NEXT
Code Example
Css :: css browser prefixes 
Css :: css line-height default 
Css :: media queries import file 
Css :: line icon cdn 
Css :: prefix in css 
Css :: css active 
Css :: all text in caps using css 
Css :: text sliding css 
Css :: how to centralize cards in css 
Css :: css letter spacing tight 
Css :: font face html 
Css :: change parent div css on over of child 
Css :: after certain width how make ontent center and add margin auto both side 
Css :: align links to right css 
Css :: css span to right of div 
Css :: css text color 
Css :: css nesting 
Css :: hamburger icon css3 
Css :: animation clip path 
Css :: download styles.css 
Css :: font awesome icons showing squares before after 
Css :: select2 make previously selected options non deletable 
Css :: aclocal: not found 
Css :: radio check mark color 
Css :: selectors in css 
Css :: ios prevent scroll css 
Css :: why is my css not working 
Css :: css a little transparent 
Css :: pyqt5 qresources 
Css :: outline 
ADD CONTENT
Topic
Content
Source link
Name
7+6 =