{"id":752,"date":"2022-05-28T10:33:07","date_gmt":"2022-05-28T01:33:07","guid":{"rendered":"https:\/\/blog.dozzing.kr\/?p=752"},"modified":"2025-10-24T11:36:35","modified_gmt":"2025-10-24T02:36:35","slug":"html-css-table-%eb%a0%88%ec%9d%b4%ec%95%84%ec%9b%83-%ec%88%99%ec%a0%9c-cart-%ed%8e%98%ec%9d%b4%ec%a7%80-%eb%a7%8c%eb%93%a4%ea%b8%b0","status":"publish","type":"post","link":"https:\/\/blog.dozzing.kr\/?p=752","title":{"rendered":"[HTML\/CSS] Table \ub808\uc774\uc544\uc6c3 \uc219\uc81c : Cart \ud398\uc774\uc9c0 \ub9cc\ub4e4\uae30"},"content":{"rendered":"<h2>\ud83d\udcab <strong>nth-child \uc140\ub809\ud130<\/strong><\/h2>\n<p><code>:nth-child(n)<\/code> : \uc5ec\ub7ec \uc694\uc18c \uc911 \uc6d0\ud558\ub294 n\ubc88\uc9f8 \uc694\uc18c\ub9cc \uc2a4\ud0c0\uc77c\uc744 \uc8fc\uace0 \uc2f6\uc744 \ub54c \uc0ac\uc6a9<\/p>\n<pre><code class=\"language-css line-numbers\">.cart-table td:nth-child(2) {\n  color: red;\n}\n<\/code><\/pre>\n<p>.cart-table \uc548\uc5d0 \uc788\ub294 \ubaa8\ub4e0 td\ub97c \ucc3e\uc740 \ub2e4\uc74c 2\ubc88\uc9f8 \ub098\uc624\ub294 td\uc5d0\ub9cc color<\/p>\n<pre><code class=\"language-css line-numbers\">.cart-table td:nth-child(even) {\n  color: red;\n}\n<\/code><\/pre>\n<ul>\n<li><code>even<\/code> : \uc9dd\uc218<\/li>\n<li><code>odd<\/code> : \ud640\uc218<\/li>\n<\/ul>\n<pre><code class=\"language-css line-numbers\">.cart-table td:nth-child(3n+0) {\n  color: red;\n}\n<\/code><\/pre>\n<p>\uc774\ub7ec\uba74 3\uc758 \ubc30\uc218\ub85c \ub4f1\uc7a5\ud558\ub294 3,6,9,12.. \ubc88\uc9f8 \ub4f1\uc7a5\ud558\ub294 \uc694\uc18c\uc5d0\ub9cc \uc2a4\ud0c0\uc77c\uc744 \uc904 \uc218 \uc788\uc74c<br \/>\n3n + 1 \uc774\ub807\uac8c \uc791\uc131\ud558\uba74 (3\uc758\ubc30\uc218 +1) \ubc88\uc9f8 \ub4f1\uc7a5\ud558\ub294 \uc694\uc18c\uc5d0\ub9cc \uc2a4\ud0c0\uc77c\uc744 \uc904 \uc218 \uc788\uc74c<\/p>\n<h2>\ud83d\udcab \uc140 <strong>\ud569\uce58\uae30<\/strong><\/h2>\n<ul>\n<li>\uac00\ub85c \uc140 \ud569\uce58\uae30<\/li>\n<\/ul>\n<pre data-language=HTML><code class=\"language-markup line-numbers\">&lt;td colspan=\"4\"&gt;&lt;\/td&gt;\n<\/code><\/pre>\n<p><code>&lt;td colspan=\"n\"&gt;<\/code> : n\ub9cc\ud07c \uac00\ub85c\ub85c \uc140 \ud569\uce58\uae30<\/p>\n<ul>\n<li>\uc138\ub85c \uc140 \ud569\uce58\uae30<\/li>\n<\/ul>\n<pre data-language=HTML><code class=\"language-markup line-numbers\">&lt;td rowspan='2'&gt;&lt;\/td&gt;\n<\/code><\/pre>\n<p><code>&lt;td rowspan='n'&gt;<\/code> : n\ub9cc\ud07c \uc138\ub85c\ub85c \uc140 \ud569\uce58\uae30<\/p>\n<h2>\ud83d\udcab table \ud14c\ub450\ub9ac \ub465\uae00\uac8c<\/h2>\n<ul>\n<li>1\ubc88\uc9f8 \ubc29\ubc95<\/li>\n<\/ul>\n<pre><code class=\"language-css line-numbers\">table {\n  border-collapse : collapse;\n  border-spacing : 0;\n}\n\n(\uc67c\ucabd\uc704\uc5d0\uc788\ub294 td) {\n  border-top-left-radius : 5px;\n}\n<\/code><\/pre>\n<ul>\n<li>2\ubc88\uc9f8 \ubc29\ubc95<\/li>\n<\/ul>\n<pre><code class=\"language-css line-numbers\">table {\n  border-collapse : collapse;\n  border-radius : 7px;\n  border-style : hidden;\n  box-shadow : 0 0 0 1px #666;\n}\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\ud83d\udcab nth-child \uc140\ub809\ud130 :nth-child(n) : \uc5ec\ub7ec \uc694\uc18c \uc911 \uc6d0\ud558\ub294 n\ubc88\uc9f8 \uc694\uc18c\ub9cc \uc2a4\ud0c0\uc77c\uc744 \uc8fc\uace0 \uc2f6\uc744 \ub54c \uc0ac\uc6a9 .cart-table td:nth-child(2) { color: red; } .cart-table \uc548\uc5d0 \uc788\ub294 \ubaa8\ub4e0 td\ub97c \ucc3e\uc740 \ub2e4\uc74c 2\ubc88\uc9f8 \ub098\uc624\ub294 td\uc5d0\ub9cc color .cart-table td:nth-child(even) { color: red; } even : \uc9dd\uc218 odd : \ud640\uc218 .cart-table td:nth-child(3n+0) { color: red; } \uc774\ub7ec\uba74 3\uc758 \ubc30\uc218\ub85c \ub4f1\uc7a5\ud558\ub294 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[50,46,33],"tags":[48,40,47,34],"class_list":["post-752","post","type-post","status-publish","format-standard","hentry","category-frontend","category-html-css","category-web","tag-css","tag-html","tag-html-css","tag-web"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>[HTML\/CSS] Table \ub808\uc774\uc544\uc6c3 \uc219\uc81c : Cart \ud398\uc774\uc9c0 \ub9cc\ub4e4\uae30 - Dozzing World<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/blog.dozzing.kr\/?p=752\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"[HTML\/CSS] Table \ub808\uc774\uc544\uc6c3 \uc219\uc81c : Cart \ud398\uc774\uc9c0 \ub9cc\ub4e4\uae30 - Dozzing World\" \/>\n<meta property=\"og:description\" content=\"\ud83d\udcab nth-child \uc140\ub809\ud130 :nth-child(n) : \uc5ec\ub7ec \uc694\uc18c \uc911 \uc6d0\ud558\ub294 n\ubc88\uc9f8 \uc694\uc18c\ub9cc \uc2a4\ud0c0\uc77c\uc744 \uc8fc\uace0 \uc2f6\uc744 \ub54c \uc0ac\uc6a9 .cart-table td:nth-child(2) { color: red; } .cart-table \uc548\uc5d0 \uc788\ub294 \ubaa8\ub4e0 td\ub97c \ucc3e\uc740 \ub2e4\uc74c 2\ubc88\uc9f8 \ub098\uc624\ub294 td\uc5d0\ub9cc color .cart-table td:nth-child(even) { color: red; } even : \uc9dd\uc218 odd : \ud640\uc218 .cart-table td:nth-child(3n+0) { color: red; } \uc774\ub7ec\uba74 3\uc758 \ubc30\uc218\ub85c \ub4f1\uc7a5\ud558\ub294 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/blog.dozzing.kr\/?p=752\" \/>\n<meta property=\"og:site_name\" content=\"Dozzing World\" \/>\n<meta property=\"article:published_time\" content=\"2022-05-28T01:33:07+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-10-24T02:36:35+00:00\" \/>\n<meta name=\"author\" content=\"Dozzing\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\uae00\uc4f4\uc774\" \/>\n\t<meta name=\"twitter:data1\" content=\"Dozzing\" \/>\n\t<meta name=\"twitter:label2\" content=\"\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04\" \/>\n\t<meta name=\"twitter:data2\" content=\"1\ubd84\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/blog.dozzing.kr\/?p=752\",\"url\":\"https:\/\/blog.dozzing.kr\/?p=752\",\"name\":\"[HTML\/CSS] Table \ub808\uc774\uc544\uc6c3 \uc219\uc81c : Cart \ud398\uc774\uc9c0 \ub9cc\ub4e4\uae30 - Dozzing World\",\"isPartOf\":{\"@id\":\"https:\/\/blog.dozzing.kr\/#website\"},\"datePublished\":\"2022-05-28T01:33:07+00:00\",\"dateModified\":\"2025-10-24T02:36:35+00:00\",\"author\":{\"@id\":\"https:\/\/blog.dozzing.kr\/#\/schema\/person\/52258baef65b530d3e867e4c1f79c36f\"},\"breadcrumb\":{\"@id\":\"https:\/\/blog.dozzing.kr\/?p=752#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/blog.dozzing.kr\/?p=752\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/blog.dozzing.kr\/?p=752#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/blog.dozzing.kr\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"[HTML\/CSS] Table \ub808\uc774\uc544\uc6c3 \uc219\uc81c : Cart \ud398\uc774\uc9c0 \ub9cc\ub4e4\uae30\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/blog.dozzing.kr\/#website\",\"url\":\"https:\/\/blog.dozzing.kr\/\",\"name\":\"Dozzing World\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/blog.dozzing.kr\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ko-KR\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/blog.dozzing.kr\/#\/schema\/person\/52258baef65b530d3e867e4c1f79c36f\",\"name\":\"Dozzing\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/blog.dozzing.kr\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/0bbe3fe675c3641965411ffb61a1368b3bf05e794deaa3c7bd0ef7b4690a614a?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/0bbe3fe675c3641965411ffb61a1368b3bf05e794deaa3c7bd0ef7b4690a614a?s=96&d=mm&r=g\",\"caption\":\"Dozzing\"},\"sameAs\":[\"https:\/\/blog.dozzing.kr\/\"],\"url\":\"https:\/\/blog.dozzing.kr\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"[HTML\/CSS] Table \ub808\uc774\uc544\uc6c3 \uc219\uc81c : Cart \ud398\uc774\uc9c0 \ub9cc\ub4e4\uae30 - Dozzing World","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/blog.dozzing.kr\/?p=752","og_locale":"ko_KR","og_type":"article","og_title":"[HTML\/CSS] Table \ub808\uc774\uc544\uc6c3 \uc219\uc81c : Cart \ud398\uc774\uc9c0 \ub9cc\ub4e4\uae30 - Dozzing World","og_description":"\ud83d\udcab nth-child \uc140\ub809\ud130 :nth-child(n) : \uc5ec\ub7ec \uc694\uc18c \uc911 \uc6d0\ud558\ub294 n\ubc88\uc9f8 \uc694\uc18c\ub9cc \uc2a4\ud0c0\uc77c\uc744 \uc8fc\uace0 \uc2f6\uc744 \ub54c \uc0ac\uc6a9 .cart-table td:nth-child(2) { color: red; } .cart-table \uc548\uc5d0 \uc788\ub294 \ubaa8\ub4e0 td\ub97c \ucc3e\uc740 \ub2e4\uc74c 2\ubc88\uc9f8 \ub098\uc624\ub294 td\uc5d0\ub9cc color .cart-table td:nth-child(even) { color: red; } even : \uc9dd\uc218 odd : \ud640\uc218 .cart-table td:nth-child(3n+0) { color: red; } \uc774\ub7ec\uba74 3\uc758 \ubc30\uc218\ub85c \ub4f1\uc7a5\ud558\ub294 [&hellip;]","og_url":"https:\/\/blog.dozzing.kr\/?p=752","og_site_name":"Dozzing World","article_published_time":"2022-05-28T01:33:07+00:00","article_modified_time":"2025-10-24T02:36:35+00:00","author":"Dozzing","twitter_card":"summary_large_image","twitter_misc":{"\uae00\uc4f4\uc774":"Dozzing","\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04":"1\ubd84"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/blog.dozzing.kr\/?p=752","url":"https:\/\/blog.dozzing.kr\/?p=752","name":"[HTML\/CSS] Table \ub808\uc774\uc544\uc6c3 \uc219\uc81c : Cart \ud398\uc774\uc9c0 \ub9cc\ub4e4\uae30 - Dozzing World","isPartOf":{"@id":"https:\/\/blog.dozzing.kr\/#website"},"datePublished":"2022-05-28T01:33:07+00:00","dateModified":"2025-10-24T02:36:35+00:00","author":{"@id":"https:\/\/blog.dozzing.kr\/#\/schema\/person\/52258baef65b530d3e867e4c1f79c36f"},"breadcrumb":{"@id":"https:\/\/blog.dozzing.kr\/?p=752#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/blog.dozzing.kr\/?p=752"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/blog.dozzing.kr\/?p=752#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/blog.dozzing.kr\/"},{"@type":"ListItem","position":2,"name":"[HTML\/CSS] Table \ub808\uc774\uc544\uc6c3 \uc219\uc81c : Cart \ud398\uc774\uc9c0 \ub9cc\ub4e4\uae30"}]},{"@type":"WebSite","@id":"https:\/\/blog.dozzing.kr\/#website","url":"https:\/\/blog.dozzing.kr\/","name":"Dozzing World","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/blog.dozzing.kr\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ko-KR"},{"@type":"Person","@id":"https:\/\/blog.dozzing.kr\/#\/schema\/person\/52258baef65b530d3e867e4c1f79c36f","name":"Dozzing","image":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/blog.dozzing.kr\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/0bbe3fe675c3641965411ffb61a1368b3bf05e794deaa3c7bd0ef7b4690a614a?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0bbe3fe675c3641965411ffb61a1368b3bf05e794deaa3c7bd0ef7b4690a614a?s=96&d=mm&r=g","caption":"Dozzing"},"sameAs":["https:\/\/blog.dozzing.kr\/"],"url":"https:\/\/blog.dozzing.kr\/?author=1"}]}},"_links":{"self":[{"href":"https:\/\/blog.dozzing.kr\/index.php?rest_route=\/wp\/v2\/posts\/752","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.dozzing.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.dozzing.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.dozzing.kr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.dozzing.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=752"}],"version-history":[{"count":2,"href":"https:\/\/blog.dozzing.kr\/index.php?rest_route=\/wp\/v2\/posts\/752\/revisions"}],"predecessor-version":[{"id":1280,"href":"https:\/\/blog.dozzing.kr\/index.php?rest_route=\/wp\/v2\/posts\/752\/revisions\/1280"}],"wp:attachment":[{"href":"https:\/\/blog.dozzing.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=752"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.dozzing.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=752"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.dozzing.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=752"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}