본문 바로가기

전체 글76

hover를 이용한 메뉴바 menubar (HTML, CSS) DOCTYPE html> Documentbody{ background-color:black; text-align: center;}nav{ position: absolute; width:100%; top: 50%; left: 50%; transform: translate(-50%, -50%);}.box{ text-decoration: none; color : #FFB6C1; background: transparent; padding: 20px 30px; border-radius: 10px; font-weight: bold; text-transform: uppercase; transition: all 0.1s ease-in-out; border: 2px solid #FFB6C1; margin: 0 10px .. 2020. 7. 15.
메뉴바(menubar) 만들기(HTML, CSS, JAVASCRIPT) DOCTYPE html> Document*{ margin: 0; padding: 0; box-sizing: border-box; font-family: sans-serif;}body{ display: flex; justify-content: center; align-items: center; min-height: 100vh;}nav{ position: relative; display: flex;}nav a{ position: relative; margin: 0 20px; font-size:2em; color:#000000; text-decoration: none;}nav #underline{ position: absolute; left: 0; height: 4px; width: 0; background:.. 2020. 7. 15.
간단한 DropDown(드롭다운) 메뉴 만들기(Javascript) 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 Document body{ margin : 10px; padding: 10px; text-align: center; } .dropdown{ position: relative; display: inline-block; } .button{ padding: 10px 40px; font-size:20px; background-color: brown; color: wheat; } #drop-con.. 2020. 7. 14.
배열 요소 중 절댓값이 제일 작은 값 찾기(Java) 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 import java.util.Scanner; import java.util.Arrays; public class Solution { public static void main(String[] args) { int[] arr = new int[5]; Scanner sc = new Scanner(System.in); for(int i = 1; i 2020. 7. 13.