問題が発生しました。入力すると、画像の下に単語が表示されます。赤いボックスの画像の外側に単語を表示するにはどうすればよいですか。テーブルを作成して、その幅と高さを指定する必要がありますか?私はそれをcssで行い、それをhtmhttp://imgur.com/Yrwdnにリンクしたいと思い ます
<html>
<head>
<link rel="stylesheet" type="text/css" href="body.css"/>
</head>
<body>
<h1>Bully-Free Zone</h1>
<h2>"Online harassment has an off-line impact"</h2>
<!--Menu-->
<div id="nav">
<a href="mainpage.htm" class="nav-link">HOME</a>
<a href="page1.htm" class="nav-link">ASSISTANCE</a>
<a href="page2.htm" class="nav-link">CYBER-BULLYING SIGNS</a>
<a href="page3.htm" class="nav-link">REPORT</a>
</div>
<img src="nobullying.jpg" id="picture"/>
<!--Copyright-->
<div id="center">
<td> Copyright © 2012 Bully-FreeZone.com</td>
</div>
</body>
</html>
Css:
h1{color:black;text-align:center;font-size:40px;font-family:broadway;
}
h2{color:black; text-align:center;font-size:27px;font-style:italic;}
/*Menu Buttons Orange*/
a.nav-link:link
{
color: black;
text-decoration: underline;
}
a.nav-link:visited
{
color: black;
text-decoration: none;
}
a.nav-link:hover
{
color:black;
text-decoration: overline;
}
a.nav-link:active
{
color: black;
text-decoration: none;
}
/*Menu button styles*/
#nav{text-align:center; font-family:"Bernard MT Condensed"; font-size:30px;
}
#center{text-align:center;}
#picture{background-image: url(nobullying.jpg);
width:200px;
height:400px;
position:absolute;
left:10px;
Top:190px;
bottom:10px;
}