안효원 안효원 2022-01-19
lastCommit
@e5f1a891c9321f440bc86f942ac0fa580ef6c8f0
vscode/float/index.html
--- vscode/float/index.html
+++ vscode/float/index.html
@@ -44,6 +44,38 @@
     <!-- MAIN -->
     <main>
 
+        <!-- SECTION1 -->
+        <section id="section1">
+            <div class="wrap">
+                <ul>
+                    <li id="box1" class="box">
+                        <a href="#">
+                            <h3>원서<br>접수</h3>
+                            <p>자세히보기</p>
+                        </a>
+                    </li>
+                    <li id="box2" class="box">
+                        <a href="#">
+                            <h3>입학<br>상담</h3>                                   <p>자세히보기</p>
+                        </a>
+                    </li>
+                    <li id="box3" class="box">
+                        <a href="#">
+                            <h3>입시자료<br>신청</h3>
+                            <p>자세히보기</p>
+                        </a>
+                    </li>
+                    <li id="box4" class="box">
+                        <a href="#">
+                            <h3>수강<br>신청</h3>
+                            <p>자세히보기</p>
+                        </a>
+                    </li>
+                </ul>
+            </div>
+        </section>
+        <!-- SECTION1 -->
+
     </main>
     <!-- MAIN -->
 
@@ -52,5 +84,10 @@
 
     </footer>
     <!-- FOOTER -->
-</body>
-</html>
(No newline at end of file)
+</body> 
+</html>
+
+
+
+
+
vscode/float/main.css
--- vscode/float/main.css
+++ vscode/float/main.css
@@ -1,4 +1,13 @@
 @charset "utf-8";
+
+/* 변수 선언 */
+:root{
+    --img-box1: url('https://www.icqa.or.kr/images/cn/box1_1_bg.png');
+    --img-box2: url('https://www.icqa.or.kr/images/cn/box1_2_bg.png');
+    --img-box3: url('https://www.icqa.or.kr/images/cn/box1_3_bg.png');
+    --img-box4: url('https://www.icqa.or.kr/images/cn/box1_4_bg.png');
+}
+
 /* 공통 */
 * {
     box-sizing: border-box;
@@ -96,9 +105,82 @@
     color: #005baa;
 }
 
+/* MAIN */
+section {
+    width: 100%;
+    margin-top: 25px;
+}
 
+section:after {
+    content: '';
+    display: block;
+    clear: both;
+}
 
+/* SECTION1 */
+#section1 ul li {
+    background-color: #333;
+    float: left;
+    min-height: 225px;
+    text-align: center;
+    width: 23%;
+    margin-left: 2%;
+}
 
+#section1 ul li a{
+    color: #fff;
+    display: block;
+    padding: 50px 0;
+    width: 100%;
+}
+
+#section1 ul li h3 {
+    font-size: 1.6rem;
+    font-weight: 600;
+}
+#section1 ul li p {
+    font-size: 0.8rem;
+    margin-top: 15px;
+    border: 1px solid white;
+    padding: 5px 15px;
+    display: inline-block;
+}
+
+#section1 .box {
+    background-position: right bottom;
+    background-size: contain;
+    background-repeat: no-repeat;
+}
+
+#section1 #box1 {
+    margin-left: 0;
+    background-color: #00a882;
+    background-image: var(--img-box1)
+}
+#section1 #box1:hover {
+    background-color: #00c29a;
+}
+#section1 #box2 {
+    background-color: #2263c8;
+    background-image: var(--img-box2)
+}
+#section1 #box2:hover {
+    background-color: #2875db;
+}
+#section1 #box3 {
+    background-color: #2083cb;
+    background-image: var(--img-box3)
+}
+#section1 #box3:hover {
+    background-color: #2592df;
+}
+#section1 #box4 {
+    background-color: #ff893e;
+    background-image: var(--img-box4)
+}
+#section1 #box4:hover {
+    background-color: #ff944c;
+}
 
 
 
Add a comment
List