how to create a zebra striped table with CSS > BASIC_ORIGINAL

본문 바로가기
사이트 내 전체검색

BASIC_ORIGINAL

페이지 정보

profile_image
작성자 최고관리자
댓글 0건 조회 480회 작성일 23-04-08 03:10

본문

기관명 how to create a zebra striped table with CSS 대표
연락처 웹주소
업종
주소
사진
기관 소개내용
질문: how to create a zebra striped table with CSS



1. Start by creating the table using the HTML <table> elements.

2. Add a class attribute to the table tag and name it "zebra".

3. Then, create a CSS rule for the class "zebra" you created in step 2 by adding the following code to your style sheet:

  [code].zebra tr:nth-child(odd) {
    background-color: #000000;
  }[/code]

4. Finally, add the following code to add stripes to the table.
[code]
  .zebra tr:nth-child(even) {
    background-color: #ffffff;
  }
[/code]
And that's all there is to it! Now you have a zebra striped table with CSS!
지도
찾아오시는 길

댓글목록

등록된 댓글이 없습니다.

회원로그인

회원가입

음악듣기


사이트 정보

회사명 : 회사명 / 대표 : 대표자명
주소 : OO도 OO시 OO구 OO동 123-45
사업자 등록번호 : 123-45-67890
전화 : 02-123-4567 팩스 : 02-123-4568
통신판매업신고번호 : 제 OO구 - 123호
개인정보관리책임자 : 정보책임자명

접속자집계

오늘
569
어제
3,401
최대
4,062
전체
151,059
Copyright © 소유하신 도메인. All rights reserved.