Riucc's Storage
RSS
태그
관리
쓰기
카테고리
  • IT (593)
    • 정리 (0)
    • C# (42)
    • ASP.NET MVC (16)
    • JQuery&Javascript (12)
    • CSS (11)
    • 데이터베이스 (32)
    • Windows Server (6)
    • Active Directory (3)
    • Exchange (9)
    • JAVA (2)
    • JSP (39)
    • JSP 게시판 만들기 (21)
    • JSP 개발 참고 (15)
    • JSP 안드로이드 (4)
    • Servlet (17)
    • Spring (42)
    • HTML (14)
    • NodeJS (46)
    • MongoDB (11)
    • 리눅스 (18)
    • 자료구조 (16)
    • 아이폰 (24)
    • 안드로이드 (68)
    • API 활용하기 (10)
    • 소켓네트워크 (28)
    • 라즈베리파이 (11)
    • AWS클라우드 (10)
    • 빅데이터Hadoop (22)
    • 커널모듈프로그래밍 (8)
    • 기타 (10)
    • 자격증 (26)
Riucc's Storage

[CSS] - <input type=" ">에 효과 주기, 둥근 테두리 만들기

CSS|2018. 9. 18. 02:03
336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.

○ <input type=" ">에 효과 주기, 둥근 테두리 만들기

 

※ id 접근 시에는 # 사용, class 접근 시에는 . 사용한다


<input type="text">

#contact-form input[type='text'] {

    border-radius:5px; // 테두리 둥글게 5px 값을 준다

}


<input type="submit" value="가입">

#contact-form input[type='submit']{ 

    border-radius: 5px;

}

#contact-form input[type='submit']:hover{ // :hover 는 input type 버튼의 마우스 댔을 때 효과

    cursor:pointer;  // 커서를 올리면 마우스 모양이 나오게 설정한다

}


// index.html

<link rel="stylesheet" href="css/style.css" type="text/css"> // CSS 참조하여 사용하기 위해

<form id="contact-form">

<header id="content-header">

<h3>회원가입</h3>

</header>

<div>

<label>Name*</label>

<input type="text">

</div>

<div>

<label>Email*</label>

<input type="email">

</div>

<div>

<label>Company</label>

<input type="text">

</div>

<div>

        <label>Phone</label>

        <input type="text">

</div>

<div>

<em>* 필요한 정보</em>

<input type="submit" value="가입">

</div>

<div class="clearfix"></div>

<div class="content-footer">

        <p>우리는 가입자의 정보를 무단으로 사용하지 않습니다.</p>

</div>

</form>


// style.css

#content-header h3 {

    font-size: 24px;

    font-weight: bold;

    padding-bottom: 20px

}


#contact-form {

    padding:10px 15px 15px 15px; // 패딩 설정, 시계방향(위 오른 아래 왼)

    border:4px solid #4ea0d8;  // 테두리(경계) 설정

    border-radius: 10px;  // 테두리 둥굴게

}


#contact-form div {

    margin-bottom:20px;

}

#contact-form label {

    display:inline-block; // inline-block 설정

    width:100px;

    font-weight: bold;

}


#contact-form input[type='text'], #contact-form input[type='email']{ // input type 접근 !!!

    border:#ccc 1px solid;

    border-radius:5px;

    height: 25px;

    width:65%;

}


#contact-form input[type='submit']{ // input type 접근 !!!

    padding: 12px 18px;

    color:#fff;

    background: #fa6e3e;

    border:0;

    border-radius: 5px;

    float:right;

    display:block;

}


#contact-form input[type='submit']:hover{ // input type 버튼의 효과(마우스 댔을 때)

    background: #d55427;

    cursor:pointer;  // 커서를 올리면 마우스 모양이 나오게 설정

}


#contact-form .content-footer p{  // 클래스 접근 시 . 사용, id 접근 시 # 사용

    font-style: italic;

    text-align: center;

    color: #666;

    font-size: 80%;

}



저작자표시 (새창열림)

'CSS' 카테고리의 다른 글

[CSS] - owlcarousel 이용한 다중 캐러셀에서 a href 안될 때 해결법  (0) 2018.09.29
[CSS] - bxslider 이용한 캐러셀, owlcarousel 이용한 다중 캐러셀  (0) 2018.09.28
[CSS] - after, hover, list-child 등을 이용한 간단한 테스트  (0) 2018.09.15
[CSS] - position : static, relative, absolute, fixed  (0) 2018.09.13
[CSS] - display : block, inline 그리고 메뉴 만들기  (0) 2018.09.13

댓글()
카테고리
  • IT (593)
    • 정리 (0)
    • C# (42)
    • ASP.NET MVC (16)
    • JQuery&Javascript (12)
    • CSS (11)
    • 데이터베이스 (32)
    • Windows Server (6)
    • Active Directory (3)
    • Exchange (9)
    • JAVA (2)
    • JSP (39)
    • JSP 게시판 만들기 (21)
    • JSP 개발 참고 (15)
    • JSP 안드로이드 (4)
    • Servlet (17)
    • Spring (42)
    • HTML (14)
    • NodeJS (46)
    • MongoDB (11)
    • 리눅스 (18)
    • 자료구조 (16)
    • 아이폰 (24)
    • 안드로이드 (68)
    • API 활용하기 (10)
    • 소켓네트워크 (28)
    • 라즈베리파이 (11)
    • AWS클라우드 (10)
    • 빅데이터Hadoop (22)
    • 커널모듈프로그래밍 (8)
    • 기타 (10)
    • 자격증 (26)
최근 등록 현황
최근 글
최근 월별 글
최근 댓글
최근 글
최근 월별 글
최근 댓글
최근 글
최근 월별 글
최근 댓글
달력
지난달
2025.7
다음달
일월화수목금토
12345
6789101112
13141516171819
20212223242526
2728293031
태그 구름
  • 리눅스
  • 커널 모듈 프로그래밍
  • 소켓
  • HTML
  • 소켓 프로그래밍
  • 카카오 로그인 연동
  • 정보처리산업기사 16년
  • nodejs MySQL 연동하기(Connection Pool)
  • 이클립스 디비 연동
  • 정보처리산업기사 15년 필기
  • 정규형
  • 정보처리산업기사 정리
  • 정규화
  • 데이터베이스
  • 정보처리산업기사 필기 정리
  • 정보처리산업기사 요약
  • 안드로이드
  • 자료구조
  • 정보처리산업기사 16년 필기
  • 안드로이드 카카오 로그인 연동
  • 정보처리산업기사 15년
  • 정보처리산업기사 총정리
  • 정보처리기사 실기 정리
  • nodejs express
  • 안드로이드 카카오 로그인
  • jsp
  • 카카오 로그인
  • 안드로이드 intent
  • 정보처리산업기사 필기
  • 이클립스 mysql 연동
카운터
전체 방문자
오늘
어제
Skin by M1REACT. Designed by M1STORY.TISTORY.COM. Valid XHTML 1.0 and CSS 3. Copyright ⓒ Riucc's Storage. All rights reserved.

티스토리툴바