탭 css 수정
This commit is contained in:
parent
a0b38fa00e
commit
8b5c838faa
@ -27,41 +27,41 @@
|
|||||||
|
|
||||||
<style>
|
<style>
|
||||||
.tabWrap {
|
.tabWrap {
|
||||||
background: #fff;
|
width: 100%;
|
||||||
padding: 10px 20px;
|
box-sizing: border-box;
|
||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
box-shadow: 0px 2px 4px rgba(0,0,0,0.1);
|
|
||||||
border-radius: 8px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.tabList {
|
.tabList {
|
||||||
list-style: none;
|
display: flex;
|
||||||
|
justify-content: center; /* 가운데 정렬 */
|
||||||
|
gap: 10px; /* li 사이 간격 */
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
display: flex;
|
list-style: none;
|
||||||
gap: 10px;
|
background: #f4f4f4;
|
||||||
|
border-radius: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tabList li {
|
.tabList li {
|
||||||
border: none;
|
flex: 1; /* 동일한 너비 */
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tabList li a {
|
.tabList li a {
|
||||||
display: block;
|
display: block;
|
||||||
padding: 8px 16px;
|
padding: 10px 0;
|
||||||
border: 1px solid #ccc;
|
|
||||||
border-radius: 6px;
|
|
||||||
background: #f9f9f9;
|
|
||||||
cursor: pointer;
|
|
||||||
font-size: 14px;
|
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color: #333;
|
color: #333;
|
||||||
transition: background 0.2s, color 0.2s;
|
font-weight: bold;
|
||||||
}
|
border-radius: 8px;
|
||||||
.tabList li a:hover {
|
transition: background 0.2s ease;
|
||||||
background: #f0f0f0;
|
background: #e0e0e0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tabList li.active a {
|
.tabList li.active a {
|
||||||
background: #456ded;
|
background-color: #2e3a59;
|
||||||
color: #fff;
|
color: white;
|
||||||
border: 1px solid #456ded;
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
|||||||
@ -16,42 +16,43 @@
|
|||||||
|
|
||||||
<style>
|
<style>
|
||||||
.tabWrap {
|
.tabWrap {
|
||||||
background: #fff;
|
width: 100%;
|
||||||
padding: 10px 20px;
|
box-sizing: border-box;
|
||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
box-shadow: 0px 2px 4px rgba(0,0,0,0.1);
|
|
||||||
border-radius: 8px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.tabList {
|
.tabList {
|
||||||
list-style: none;
|
display: flex;
|
||||||
|
justify-content: center; /* 가운데 정렬 */
|
||||||
|
gap: 10px; /* li 사이 간격 */
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
display: flex;
|
list-style: none;
|
||||||
gap: 10px;
|
background: #f4f4f4;
|
||||||
|
border-radius: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tabList li {
|
.tabList li {
|
||||||
border: none;
|
flex: 1; /* 동일한 너비 */
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tabList li a {
|
.tabList li a {
|
||||||
display: block;
|
display: block;
|
||||||
padding: 8px 16px;
|
padding: 10px 0;
|
||||||
border: 1px solid #ccc;
|
|
||||||
border-radius: 6px;
|
|
||||||
background: #f9f9f9;
|
|
||||||
cursor: pointer;
|
|
||||||
font-size: 14px;
|
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color: #333;
|
color: #333;
|
||||||
transition: background 0.2s, color 0.2s;
|
font-weight: bold;
|
||||||
}
|
border-radius: 8px;
|
||||||
.tabList li a:hover {
|
transition: background 0.2s ease;
|
||||||
background: #f0f0f0;
|
background: #e0e0e0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tabList li.active a {
|
.tabList li.active a {
|
||||||
background: #456ded;
|
background-color: #2e3a59;
|
||||||
color: #fff;
|
color: white;
|
||||||
border: 1px solid #456ded;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<script type="text/javascript" src="/js/jquery-3.5.0.js"></script>
|
<script type="text/javascript" src="/js/jquery-3.5.0.js"></script>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user