SlideShare uma empresa Scribd logo
1 de 22
HTML5 & CSS3
오늘 구현하는 내일의 웹 표준

   8장 눈을 즐겁게




                              이영권
              whiletrue0222@gmail.com

                                   아꿈사
          http://cafe.naver.com/architect1
살펴보는 내용
•   Border-radius
•   RGBa
•   Box-shdow
•   Transform
•   Linear-gradient
•   @font-face
Tip17. 테두리를 둥글게

테두리
기본 폼
<form action="/login" method="post">
 <fieldset id="login">
   <legend>
    로그인
   </legend>
   <ol>
    <li>
      <label for="email">
       이메일 주소
      </label>
      <input id="email" type="email" name="email">
    </li>
    <li>
      <label for="password">
       비밀번호
      </label>
      <input id="password" type="password"
        name="password" value="" autocomplete="off"/>
    </li>
    <li><input type="submit" value="로그인"></li>
   </ol>
 </fieldset>
</form>
기본 CSS
Border-radius
input, fieldset, legend{

border-radius: 5px;

/*mozilla*/
-moz-border-radius: 5px;

/*webkit */
-webkit-border-radius: 5px;
}
살펴보는 내용
•   Border-radius
•   RGBa
•   Box-shdow
•   Transform
•   Linear-gradient
•   @font-face
Tip18. 그림자, 그래디언트, 변형 다루기
기본 css
linear-gradient
#badge{
background-image: linear-gradient(
   top, #fff, #efefef
 );

background-image: -moz-linear-gradient(
   top, #fff, #efefef
 );

  처음제안된 문법
  background-image: -webkit-gradient(
    linear,left top, left bottom,
    color-stop(0, #fff),
    color-stop(1, #efefef)
 );
}
box-shadow
Syntax
box-shadow: h-shadow v-shadow blur spread color inset;

#badge{
box-shadow: 5px 5px 5px #333;

    -moz-box-shadow: 5px 5px 5px #333;
    -webkit-box-shadow: 5px 5px 5px #333;
    -o-box-shadow: 5px 5px 5px #333;
}

http://www.w3schools.com/cssref/playit.asp?filename=playcss_box-
shadow&preval=10px%2010px%2050px%2020px%20pink%20inset
transform
#badge{
transform: rotate(-7.5deg);

    -moz-transform: rotate(-7.5deg);
    -o-transform: rotate(-7.5deg);
    -webkit-transform: rotate(-7.5deg);
    -ms-transform: rotate(-7.5deg);
}



http://www.w3schools.com/cssref/css3_pr_transform.asp
rgba
알파는 0 ~ 1
#info{
  background-color: rgba(255,255,255,0.95);
}
살펴보는 내용
•   Border-radius
•   RGBa
•   Box-shdow
•   Transform
•   Linear-gradient
•   @font-face
진짜 서체 사용하기
웹에서는 폰트 선택에 제한이 있다.

‘웹 안전’ 서체는 대부분의 플랫폼에서 지원하
는 것을 말함.
http://naradesign.net/wp/2009/06/05/844/
@font-face
CSS2 명세의 일부였고 IE5에서 구현되었다.
But
IE는 EOT만, 다른 브라우저는 TTF/OTF

EOT: Embedded OpenType Font
TTF: TrueType Font
OTF: OpenType Font
WOFF: Web Open Font Format

지원여부
http://caniuse.com/#feat=fontface
http://caniuse.com/#search=eot
http://caniuse.com/#search=ttf
http://caniuse.com/#search=woff
Font-family 정의
사용할 폰트를 정의하는 것. 이 선언만으로는 적용되지 않음.
브라우저는 자신이 쓸 수 있는 형식을 찾을 때까지 순서대로 시도함.

@font-face {
  font-family: 'GarogierRegular';
  src: url('fonts/Garogier_unhinted-webfont.eot');
  src: url('fonts/Garogier_unhinted-webfont.woff')
                                     format('woff'),
     url('fonts/Garogier_unhinted-webfont.ttf')
                                     format('truetype'),
     url('fonts/Garogier_unhinted-webfont.svg')
                                     format('svg');
  font-weight: normal;
}
Font-family 사용
@font-face로 정의한 폰트를 사용.

body{
 font-family: "GarogierRegular";

    // 폴백
    font-family: "GarogierRegular", Georgia,
            "Palatino", "Palatino Linotype",
            "Times", "Times New Roman",
            serif;
}
GarogierRegular 적용




미적용
살펴보는 내용
•   Border-radius
•   RGBa
•   Box-shdow
•   Transform
•   Linear-gradient
•   @font-face
정리
             Transform
                         Box-shdow            RGBa




                              Border-radius
 Linear-gradient




@font-face
감사합니다.

Mais conteúdo relacionado

Mais procurados

Web Standards HTML5_CSS3
Web Standards HTML5_CSS3Web Standards HTML5_CSS3
Web Standards HTML5_CSS3Eulsoo Jung
 
WebStandards-Basic 2.Semantic markup
WebStandards-Basic 2.Semantic markupWebStandards-Basic 2.Semantic markup
WebStandards-Basic 2.Semantic markupEulsoo Jung
 
시맨틱한 HTML5 마크업 구조 설계, 어떻게 할까?
시맨틱한 HTML5 마크업 구조 설계, 어떻게 할까?시맨틱한 HTML5 마크업 구조 설계, 어떻게 할까?
시맨틱한 HTML5 마크업 구조 설계, 어떻게 할까?Toby Yun
 
쉬운 예제 중심의 HTML5 / CSS / MediaQuery / JQuery 강의
쉬운 예제 중심의 HTML5 / CSS / MediaQuery / JQuery 강의쉬운 예제 중심의 HTML5 / CSS / MediaQuery / JQuery 강의
쉬운 예제 중심의 HTML5 / CSS / MediaQuery / JQuery 강의Minha Yang
 
Best practice of HTML5 Semantic Markup
Best practice of HTML5 Semantic MarkupBest practice of HTML5 Semantic Markup
Best practice of HTML5 Semantic MarkupToby Yun
 
WebStandards-Basic 1.Introduce
WebStandards-Basic 1.IntroduceWebStandards-Basic 1.Introduce
WebStandards-Basic 1.IntroduceEulsoo Jung
 
처음부터 다시 배우는 HTML5 & CSS3 강의자료 10일차
처음부터 다시 배우는 HTML5 & CSS3 강의자료 10일차처음부터 다시 배우는 HTML5 & CSS3 강의자료 10일차
처음부터 다시 배우는 HTML5 & CSS3 강의자료 10일차Michael Yang
 
4주 CSS Layout
4주 CSS Layout4주 CSS Layout
4주 CSS Layout지수 윤
 

Mais procurados (8)

Web Standards HTML5_CSS3
Web Standards HTML5_CSS3Web Standards HTML5_CSS3
Web Standards HTML5_CSS3
 
WebStandards-Basic 2.Semantic markup
WebStandards-Basic 2.Semantic markupWebStandards-Basic 2.Semantic markup
WebStandards-Basic 2.Semantic markup
 
시맨틱한 HTML5 마크업 구조 설계, 어떻게 할까?
시맨틱한 HTML5 마크업 구조 설계, 어떻게 할까?시맨틱한 HTML5 마크업 구조 설계, 어떻게 할까?
시맨틱한 HTML5 마크업 구조 설계, 어떻게 할까?
 
쉬운 예제 중심의 HTML5 / CSS / MediaQuery / JQuery 강의
쉬운 예제 중심의 HTML5 / CSS / MediaQuery / JQuery 강의쉬운 예제 중심의 HTML5 / CSS / MediaQuery / JQuery 강의
쉬운 예제 중심의 HTML5 / CSS / MediaQuery / JQuery 강의
 
Best practice of HTML5 Semantic Markup
Best practice of HTML5 Semantic MarkupBest practice of HTML5 Semantic Markup
Best practice of HTML5 Semantic Markup
 
WebStandards-Basic 1.Introduce
WebStandards-Basic 1.IntroduceWebStandards-Basic 1.Introduce
WebStandards-Basic 1.Introduce
 
처음부터 다시 배우는 HTML5 & CSS3 강의자료 10일차
처음부터 다시 배우는 HTML5 & CSS3 강의자료 10일차처음부터 다시 배우는 HTML5 & CSS3 강의자료 10일차
처음부터 다시 배우는 HTML5 & CSS3 강의자료 10일차
 
4주 CSS Layout
4주 CSS Layout4주 CSS Layout
4주 CSS Layout
 

Destaque

Domain driven design_chapter2
Domain driven design_chapter2Domain driven design_chapter2
Domain driven design_chapter2Youngkwon Lee
 
Windows viac cpp_15장_16장
Windows viac cpp_15장_16장Windows viac cpp_15장_16장
Windows viac cpp_15장_16장Youngkwon Lee
 
Regex & property sheet
Regex & property sheetRegex & property sheet
Regex & property sheetYoungkwon Lee
 
소프트웨어 아키텍트가 알아야할 97가지
소프트웨어 아키텍트가 알아야할 97가지소프트웨어 아키텍트가 알아야할 97가지
소프트웨어 아키텍트가 알아야할 97가지Youngkwon Lee
 
Taocp 1.4.1 subroutine
Taocp 1.4.1 subroutineTaocp 1.4.1 subroutine
Taocp 1.4.1 subroutineYoungkwon Lee
 
아꿈사 2011 연말행사 자유발표 - 맥킨지, 발표의 기술
아꿈사 2011 연말행사 자유발표 - 맥킨지, 발표의 기술아꿈사 2011 연말행사 자유발표 - 맥킨지, 발표의 기술
아꿈사 2011 연말행사 자유발표 - 맥킨지, 발표의 기술Youngkwon Lee
 

Destaque (7)

Domain driven design_chapter2
Domain driven design_chapter2Domain driven design_chapter2
Domain driven design_chapter2
 
Windows viac cpp_15장_16장
Windows viac cpp_15장_16장Windows viac cpp_15장_16장
Windows viac cpp_15장_16장
 
Regex & property sheet
Regex & property sheetRegex & property sheet
Regex & property sheet
 
소프트웨어 아키텍트가 알아야할 97가지
소프트웨어 아키텍트가 알아야할 97가지소프트웨어 아키텍트가 알아야할 97가지
소프트웨어 아키텍트가 알아야할 97가지
 
Taocp 1.4.1 subroutine
Taocp 1.4.1 subroutineTaocp 1.4.1 subroutine
Taocp 1.4.1 subroutine
 
아꿈사 2011 연말행사 자유발표 - 맥킨지, 발표의 기술
아꿈사 2011 연말행사 자유발표 - 맥킨지, 발표의 기술아꿈사 2011 연말행사 자유발표 - 맥킨지, 발표의 기술
아꿈사 2011 연말행사 자유발표 - 맥킨지, 발표의 기술
 
웹질팁
웹질팁웹질팁
웹질팁
 

Semelhante a HTML5&CSS3 8장. 눈을 즐겁게

[전파교육] css day 2014
[전파교육] css day 2014[전파교육] css day 2014
[전파교육] css day 2014Kyoung Hwan Min
 
웹브라우저는 어떻게 동작하나?
웹브라우저는 어떻게 동작하나?웹브라우저는 어떻게 동작하나?
웹브라우저는 어떻게 동작하나?Joone Hur
 
웹표준 (XHTML + CSS)
웹표준 (XHTML + CSS)웹표준 (XHTML + CSS)
웹표준 (XHTML + CSS)ymtech
 
CSS3 Top10
CSS3 Top10CSS3 Top10
CSS3 Top10Toby Yun
 
ASP.NET MVC Framework 개발자를 위한 Razor Syntax.pdf
ASP.NET MVC Framework 개발자를 위한 Razor Syntax.pdfASP.NET MVC Framework 개발자를 위한 Razor Syntax.pdf
ASP.NET MVC Framework 개발자를 위한 Razor Syntax.pdfSangHoon Han
 
프론트엔드스터디 E02 css dom
프론트엔드스터디 E02 css dom프론트엔드스터디 E02 css dom
프론트엔드스터디 E02 css domYoung-Beom Rhee
 
Network path reference
Network path referenceNetwork path reference
Network path referenceSol Kim
 
HTML5 스펙 소개
HTML5 스펙 소개HTML5 스펙 소개
HTML5 스펙 소개Toby Yun
 
웹 브라우저는 어떻게 동작하나? (2)
웹 브라우저는 어떻게 동작하나? (2)웹 브라우저는 어떻게 동작하나? (2)
웹 브라우저는 어떻게 동작하나? (2)Joone Hur
 
WebKit at the Future Web Forum 2010
WebKit at the Future Web Forum 2010WebKit at the Future Web Forum 2010
WebKit at the Future Web Forum 2010Joone Hur
 
웹표준(XHTML+CSS)
웹표준(XHTML+CSS)웹표준(XHTML+CSS)
웹표준(XHTML+CSS)ymtech
 
Front-end Development Process - 어디까지 개선할 수 있나
Front-end Development Process - 어디까지 개선할 수 있나Front-end Development Process - 어디까지 개선할 수 있나
Front-end Development Process - 어디까지 개선할 수 있나JeongHun Byeon
 
History and Status of HTML5
History and Status of HTML5History and Status of HTML5
History and Status of HTML5Channy Yun
 
처음부터 다시 배우는 HTML5 & CSS3 강의자료 12일차
처음부터 다시 배우는 HTML5 & CSS3 강의자료 12일차처음부터 다시 배우는 HTML5 & CSS3 강의자료 12일차
처음부터 다시 배우는 HTML5 & CSS3 강의자료 12일차Michael Yang
 
Social Tutorial Platform: Webbles
Social Tutorial Platform: Webbles Social Tutorial Platform: Webbles
Social Tutorial Platform: Webbles Wonkyung Lyu
 

Semelhante a HTML5&CSS3 8장. 눈을 즐겁게 (20)

[전파교육] css day 2014
[전파교육] css day 2014[전파교육] css day 2014
[전파교육] css day 2014
 
Asp.net Razor
Asp.net Razor Asp.net Razor
Asp.net Razor
 
웹브라우저는 어떻게 동작하나?
웹브라우저는 어떻게 동작하나?웹브라우저는 어떻게 동작하나?
웹브라우저는 어떻게 동작하나?
 
웹표준 (XHTML + CSS)
웹표준 (XHTML + CSS)웹표준 (XHTML + CSS)
웹표준 (XHTML + CSS)
 
CSS3 Top10
CSS3 Top10CSS3 Top10
CSS3 Top10
 
ASP.NET MVC Framework 개발자를 위한 Razor Syntax.pdf
ASP.NET MVC Framework 개발자를 위한 Razor Syntax.pdfASP.NET MVC Framework 개발자를 위한 Razor Syntax.pdf
ASP.NET MVC Framework 개발자를 위한 Razor Syntax.pdf
 
프론트엔드스터디 E02 css dom
프론트엔드스터디 E02 css dom프론트엔드스터디 E02 css dom
프론트엔드스터디 E02 css dom
 
Network path reference
Network path referenceNetwork path reference
Network path reference
 
HTML5 스펙 소개
HTML5 스펙 소개HTML5 스펙 소개
HTML5 스펙 소개
 
웹 브라우저는 어떻게 동작하나? (2)
웹 브라우저는 어떻게 동작하나? (2)웹 브라우저는 어떻게 동작하나? (2)
웹 브라우저는 어떻게 동작하나? (2)
 
웹표준 교육
웹표준 교육웹표준 교육
웹표준 교육
 
Pp3 devweb
Pp3 devwebPp3 devweb
Pp3 devweb
 
Html5 performance
Html5 performanceHtml5 performance
Html5 performance
 
WebKit at the Future Web Forum 2010
WebKit at the Future Web Forum 2010WebKit at the Future Web Forum 2010
WebKit at the Future Web Forum 2010
 
웹표준(XHTML+CSS)
웹표준(XHTML+CSS)웹표준(XHTML+CSS)
웹표준(XHTML+CSS)
 
Front-end Development Process - 어디까지 개선할 수 있나
Front-end Development Process - 어디까지 개선할 수 있나Front-end Development Process - 어디까지 개선할 수 있나
Front-end Development Process - 어디까지 개선할 수 있나
 
History and Status of HTML5
History and Status of HTML5History and Status of HTML5
History and Status of HTML5
 
ch04
ch04ch04
ch04
 
처음부터 다시 배우는 HTML5 & CSS3 강의자료 12일차
처음부터 다시 배우는 HTML5 & CSS3 강의자료 12일차처음부터 다시 배우는 HTML5 & CSS3 강의자료 12일차
처음부터 다시 배우는 HTML5 & CSS3 강의자료 12일차
 
Social Tutorial Platform: Webbles
Social Tutorial Platform: Webbles Social Tutorial Platform: Webbles
Social Tutorial Platform: Webbles
 

Último

Console API (Kitworks Team Study 백혜인 발표자료)
Console API (Kitworks Team Study 백혜인 발표자료)Console API (Kitworks Team Study 백혜인 발표자료)
Console API (Kitworks Team Study 백혜인 발표자료)Wonjun Hwang
 
A future that integrates LLMs and LAMs (Symposium)
A future that integrates LLMs and LAMs (Symposium)A future that integrates LLMs and LAMs (Symposium)
A future that integrates LLMs and LAMs (Symposium)Tae Young Lee
 
Merge (Kitworks Team Study 이성수 발표자료 240426)
Merge (Kitworks Team Study 이성수 발표자료 240426)Merge (Kitworks Team Study 이성수 발표자료 240426)
Merge (Kitworks Team Study 이성수 발표자료 240426)Wonjun Hwang
 
Continual Active Learning for Efficient Adaptation of Machine LearningModels ...
Continual Active Learning for Efficient Adaptation of Machine LearningModels ...Continual Active Learning for Efficient Adaptation of Machine LearningModels ...
Continual Active Learning for Efficient Adaptation of Machine LearningModels ...Kim Daeun
 
MOODv2 : Masked Image Modeling for Out-of-Distribution Detection
MOODv2 : Masked Image Modeling for Out-of-Distribution DetectionMOODv2 : Masked Image Modeling for Out-of-Distribution Detection
MOODv2 : Masked Image Modeling for Out-of-Distribution DetectionKim Daeun
 
캐드앤그래픽스 2024년 5월호 목차
캐드앤그래픽스 2024년 5월호 목차캐드앤그래픽스 2024년 5월호 목차
캐드앤그래픽스 2024년 5월호 목차캐드앤그래픽스
 

Último (6)

Console API (Kitworks Team Study 백혜인 발표자료)
Console API (Kitworks Team Study 백혜인 발표자료)Console API (Kitworks Team Study 백혜인 발표자료)
Console API (Kitworks Team Study 백혜인 발표자료)
 
A future that integrates LLMs and LAMs (Symposium)
A future that integrates LLMs and LAMs (Symposium)A future that integrates LLMs and LAMs (Symposium)
A future that integrates LLMs and LAMs (Symposium)
 
Merge (Kitworks Team Study 이성수 발표자료 240426)
Merge (Kitworks Team Study 이성수 발표자료 240426)Merge (Kitworks Team Study 이성수 발표자료 240426)
Merge (Kitworks Team Study 이성수 발표자료 240426)
 
Continual Active Learning for Efficient Adaptation of Machine LearningModels ...
Continual Active Learning for Efficient Adaptation of Machine LearningModels ...Continual Active Learning for Efficient Adaptation of Machine LearningModels ...
Continual Active Learning for Efficient Adaptation of Machine LearningModels ...
 
MOODv2 : Masked Image Modeling for Out-of-Distribution Detection
MOODv2 : Masked Image Modeling for Out-of-Distribution DetectionMOODv2 : Masked Image Modeling for Out-of-Distribution Detection
MOODv2 : Masked Image Modeling for Out-of-Distribution Detection
 
캐드앤그래픽스 2024년 5월호 목차
캐드앤그래픽스 2024년 5월호 목차캐드앤그래픽스 2024년 5월호 목차
캐드앤그래픽스 2024년 5월호 목차
 

HTML5&CSS3 8장. 눈을 즐겁게

  • 1. HTML5 & CSS3 오늘 구현하는 내일의 웹 표준 8장 눈을 즐겁게 이영권 whiletrue0222@gmail.com 아꿈사 http://cafe.naver.com/architect1
  • 2. 살펴보는 내용 • Border-radius • RGBa • Box-shdow • Transform • Linear-gradient • @font-face
  • 4. 기본 폼 <form action="/login" method="post"> <fieldset id="login"> <legend> 로그인 </legend> <ol> <li> <label for="email"> 이메일 주소 </label> <input id="email" type="email" name="email"> </li> <li> <label for="password"> 비밀번호 </label> <input id="password" type="password" name="password" value="" autocomplete="off"/> </li> <li><input type="submit" value="로그인"></li> </ol> </fieldset> </form>
  • 6. Border-radius input, fieldset, legend{ border-radius: 5px; /*mozilla*/ -moz-border-radius: 5px; /*webkit */ -webkit-border-radius: 5px; }
  • 7. 살펴보는 내용 • Border-radius • RGBa • Box-shdow • Transform • Linear-gradient • @font-face
  • 10. linear-gradient #badge{ background-image: linear-gradient( top, #fff, #efefef ); background-image: -moz-linear-gradient( top, #fff, #efefef ); 처음제안된 문법 background-image: -webkit-gradient( linear,left top, left bottom, color-stop(0, #fff), color-stop(1, #efefef) ); }
  • 11. box-shadow Syntax box-shadow: h-shadow v-shadow blur spread color inset; #badge{ box-shadow: 5px 5px 5px #333; -moz-box-shadow: 5px 5px 5px #333; -webkit-box-shadow: 5px 5px 5px #333; -o-box-shadow: 5px 5px 5px #333; } http://www.w3schools.com/cssref/playit.asp?filename=playcss_box- shadow&preval=10px%2010px%2050px%2020px%20pink%20inset
  • 12. transform #badge{ transform: rotate(-7.5deg); -moz-transform: rotate(-7.5deg); -o-transform: rotate(-7.5deg); -webkit-transform: rotate(-7.5deg); -ms-transform: rotate(-7.5deg); } http://www.w3schools.com/cssref/css3_pr_transform.asp
  • 13. rgba 알파는 0 ~ 1 #info{ background-color: rgba(255,255,255,0.95); }
  • 14. 살펴보는 내용 • Border-radius • RGBa • Box-shdow • Transform • Linear-gradient • @font-face
  • 15. 진짜 서체 사용하기 웹에서는 폰트 선택에 제한이 있다. ‘웹 안전’ 서체는 대부분의 플랫폼에서 지원하 는 것을 말함. http://naradesign.net/wp/2009/06/05/844/
  • 16. @font-face CSS2 명세의 일부였고 IE5에서 구현되었다. But IE는 EOT만, 다른 브라우저는 TTF/OTF EOT: Embedded OpenType Font TTF: TrueType Font OTF: OpenType Font WOFF: Web Open Font Format 지원여부 http://caniuse.com/#feat=fontface http://caniuse.com/#search=eot http://caniuse.com/#search=ttf http://caniuse.com/#search=woff
  • 17. Font-family 정의 사용할 폰트를 정의하는 것. 이 선언만으로는 적용되지 않음. 브라우저는 자신이 쓸 수 있는 형식을 찾을 때까지 순서대로 시도함. @font-face { font-family: 'GarogierRegular'; src: url('fonts/Garogier_unhinted-webfont.eot'); src: url('fonts/Garogier_unhinted-webfont.woff') format('woff'), url('fonts/Garogier_unhinted-webfont.ttf') format('truetype'), url('fonts/Garogier_unhinted-webfont.svg') format('svg'); font-weight: normal; }
  • 18. Font-family 사용 @font-face로 정의한 폰트를 사용. body{ font-family: "GarogierRegular"; // 폴백 font-family: "GarogierRegular", Georgia, "Palatino", "Palatino Linotype", "Times", "Times New Roman", serif; }
  • 20. 살펴보는 내용 • Border-radius • RGBa • Box-shdow • Transform • Linear-gradient • @font-face
  • 21. 정리 Transform Box-shdow RGBa Border-radius Linear-gradient @font-face