programming-examples/css/Div based sidebar.html

88 lines
2.6 KiB
HTML
Raw Permalink Normal View History

2019-11-15 12:59:38 +01:00
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" subLang="en-US" xml:subLang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Div Based Sidebar</title>
<style rel="stylesheet" type="text/css">
#sidebar {
width: 400px;
float: left;
font-family: verdana, Helvetica, sans-serif;
font-size: 13px;
color: blue
}
#sidebar div {
padding: 32px 0 0 0
}
#sidebar ul {
padding: 14px 0 0 11px;
}
#sidebar li {
list-style-type: none;
line-height: 16px;
}
#sidebar li a {
font-size: 16px;
color: gray;
text-decoration: underline
}
#sidebar li a:visited {
text-decoration: underline
}
#sidebar li a:hover {
text-decoration: none
}
#sidebar p {
padding: 23px 0 0 12px;
width: 240px;
}
.name {
padding: 10px 0 0 10px;
display: block
}
#sidebar .more {
margin: 10px 0 0 10px
}
</style>
</head>
<body>
<div id="sidebar">
<div>
<img src="http://www.happycodings.com/images/happy.gif" alt="" width="200" height="120" /><br />
<ul>
<li><a href="http://www.c.happycodings.com/index.html">c</a></li>
<li><a href="http://www.csharp.happycodings.com/index.html">csharp</a></li>
<li><a href="http://www.cplusplus.happycodings.com/index.html">cplusplus</a></li>
<li><a href="http://www.java.happycodings.com/index.html">java</a></li>
<li><a href="http://www.visualbasic.happycodings.com/index.html">visualbasic</a></li>
<li><a href="http://www.html-css.happycodings.com/index.html">html-css</a></li>
<li><a href="http://www.android.happycodings.com/index.html">android</a></li>
<li><a href="http://www.asp.happycodings.com/index.html">asp</a></li>
<li><a href="http://www.php.happycodings.com/index.html">php</a></li>
<li><a href="http://www.javascript.happycodings.com/index.html">javascript</a></li>
<li><a href="http://www.sql.happycodings.com/index.html">sql</a></li>
</ul>
</div>
<div>
<img src="http://www.happycodings.com/images/happy.gif" alt="" width="200" height="120" /><br />
<p>Happy Codings is sample source code search engine.</p>
<strong class="name">Happy Codings</strong>
<a href="http://www.happycodings.com" class="more">Happy Codings</a>
</div>
</div>
</body>
</html>