저는 CSS가 처음이에요. 제 첫 번째 버튼입니다. 버튼에 텍스트를 넣는 데 문제가 있습니다. 글쎄, 그것은 버튼에 있지만 오른쪽 정렬되지 않습니다. 이 문제를 해결하는 방법을 모르겠지만 여기에 내 코드가 있습니다텍스트가 DIV에 들어 가지 않습니다
body {
font-family: 'Open Sans', sans-serif;
background-color: #DB1F1F;
}
.navbar-menu {
margin: auto;
height: 100px;
width: 95px;
background-color: green;
padding: 10px 40px;
font-size: 25px;
}
.navbar-menu:hover {
opacity: 0.5;
}
나는 그게 뭐가 잘못되어 누군가 도와 줄 수 있습니까?
오와 : HTML
<!DOCTYPE html>
<html>
<head>
<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>
<link type="text/css" rel="stylesheet" href="stylesheet.css" />
<title>Button</title>
</head>
<body>
<center>
<div class="navbar-menu">HTML/CSS</div>
</center>
</body>
</html>
당신은 우리가 HTML로하고있는 일의 예를 들려 줄 수 있습니까? – Enigmadan
JS 피들을 게시하십시오. –
http://jsfiddle.net/PkDKA/ –