CSS

HomePage | RecentChanges | Preferences

See also: CascadingStyleSheets

Grab only p's that are nested *directly* inside of div's

  div > p { /* Some CSS */ }


  <p class="some-class">Stuff</p>
  <p id="some-id">Bother</p>
is styled as...
  .some-class { /* Some CSS */ }
  #some-id { /* Some CSS */ }

pseudo-class selectors with colon

  a:hover { ... }
  p:first-child { ... }     /* the <p> that is the first child of its parent element */
  p:nth-child(3) { ...}   /*        ""                     third                        ""               */


Circles!

  div {
	display: inline-block;
	margin-left: 5px;
	height: 100px;
	width: 100px;
	border-radius: 100%;
	border: 2px solid black;
  }


CustomFonts

http://cssdeck.com/labs/pure-css-osx-terminal


HomePage | RecentChanges | Preferences
This page is read-only | View other revisions
Last edited September 18, 2015 6:52 pm by 198.98.94.133 (diff)
Search: