PROGRAMMING

이번주말에 공부할 내용.

🩷 슈 🧡 2010. 10. 22. 17:01
728x90
SMALL

생각대로 될지 모르겠지만, 표준코딩을 해야한다.
먼가를 만들어 내는 과정은 정말 즐거운 것이다.

http://www.w3schools.com/css/css_reference.asp 

CSS Selectors

In CSS, selectors are patterns used to select the element(s) you want to style.

The "CSS" column indicates in which CSS version the property is defined (CSS1 or CSS2).

Selector Example Example Selects: CSS
.class .intro All elements with class="intro" 1
#id #firstname The element with id="firstname" 1
* * All elements 2
element p All <p> elements 1
element,element div,p All <div> elements and all <p> elements 1
element element div p All <p> elements inside <div> elements 1
element>element div>p All <p> elements where the parent is a <div> element 2
element+element div+p All <p> elements placed immediately after a <div> element 2
[attribute] [target] All elements with a target attribute 2
[attribute=value] [target=_blank] All elements with a target attribute equal to "_blank" 2
[attribute~=value] [title=flower] All elements with a title attribute that contains space separated words, one of which is "flower" 2
[attribute|=language] [lang|=en] All elements where the lang attribute's value is "en", even if the value contains a hyphen (-), like "en-us" 2
:link a:link All links (<a> elements with href) 1
:visited a:visited All visited links 1
:active a:active Active links 1
:hover a:hover Links on mouse over 1
:focus input:focus The input element that has focus 2
:first-letter p:first-letter The first letter of all <p> elements 1
:first-line p:first-line The first line of all <p> elements 1
:first-child p:first-child All <p> elements that is the first child of its parent 2
:before p:before Content will be placed before each <p> element 2
:after p:after Content will be placed after each <p> element 2
:lang(language) p:lang(it) All <p> elements with the lang attribute containing "it" 2


728x90
LIST