Search
 
SCRIPT & CODE EXAMPLE
 

CSS

css class id

css
.class
#id
Comment

css class and 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
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 elementos 
Css :: avatar change design html css 
Css :: gradient 
Css :: mini.css 
Css :: selectors combinators css 
Css :: css loader 
Css :: How to enable horizontal scrolling of content in a webpage 
Css :: css bottom:0 isnt the bottom of the page 
Css :: enque script only on specific archive page 
Css :: text cow 
Css :: css add margin to a particular div in print screen 
Css :: css registry component 
Css :: how to add carasoule in html using css 
Css :: inherit styles 
Css :: less variables vs css variables 
Css :: css before cant change the size 
Css :: semi transparent btn 
Css :: css function to add and subtract 
Css :: text-decoration not working in microsoft mail 
Css :: Protéger les fichiers .htaccess et .htpasswds 
Css :: get clicked position javascript image 
Css :: mb-md-0 bootstrap 
Css :: countload on pageloading in html css 
Css :: parcel-bundler bulma css 
Css :: 1.1 inches in pixels 
Css :: javafx css rectangle outline 
Css :: mouse cursor smooth 
Css :: how long since 1993 
Css :: Background Image Accessibility concerns 
Css :: css pseudo-class no children 
ADD CONTENT
Topic
Content
Source link
Name
2+3 =