Left bar with news item : Menu « CSS Controls « HTML / CSS






Left bar with news item

   
<!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">
<head>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <!-- Unneeded but smart to have -->
<style type='text/css'>
/* CSS Document */
html,body {
  background-color: #AFC4E2;
  color: #234;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 100%;
  text-align: center;
}

a {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 90%;
  color: #678;
  text-decoration: none;
  font-weight: bold;
  background: inherit;
}

a:hover,a:active {
  text-decoration: underline;
}

p {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 90%;
  font-weight: normal;
  color: #234;
  background: inherit;
}

#container {
  width: 760px;
  height: auto;
  background-color: #FFFFFF;
  color: #234;
  border: 2px solid #999;
  padding: 10px;
  margin: 20px auto;
  text-align: right;
}

/* HEADER STYLES */
#header {
  background-image: url(clouds.jpg);
  background-repeat: no-repeat;
  text-align: left;
  height: auto;
  padding: 5px;
  margin: 5px;
}

#header h1 {
  color: #345;
  background: none;
  padding: 0px;
  line-height: 0px;
  text-indent: 10px;
}

#header h2 {
  color: #678;
  background: none;
  padding: 0px;
  text-indent: 50px;
}

/* NAV STYLES */
#header #nav {
  text-align: right;
  background: none;
  padding: 0px;
  margin: 0px;
}

#header #nav ul {
  padding: .4px;
  margin: 0;
}

#header #nav ul li {
  list-style: none;
  display: inline;
  padding: 0;
  margin: 0;
}

#header #nav ul li a {
  padding: 5px;
  background-color: #0066CC;
  color: #EFF;
  text-decoration: none;
  border-top: thin solid #012;
  border-left: thin solid #012;
  border-right: thin solid #012;
  border-bottom: none;
}

#header #nav ul li a.selected {
  background-color: #FFF;
  color: #678;
  border-bottom: #FFF thin solid;
}

#header #nav ul li a:hover,#header #nav ul li a:active {
  background-color: #FFF;
  color: #123;
  border-bottom: #FFF thin solid;
}

/* FOOTER STYLES */
#footer {
  clear: both;
  padding: 5px;
  margin: 5px;
  background: #FFFFFF;
  color: #999999;
  font-family: Geneva, Arial, Helvetica, sans-serif;
  font-size: 80%;
  font-weight: normal;
  text-align: center;
}

#footer p {
  background: #FFFFFF;
  color: #999999;
  font-family: Geneva, Arial, Helvetica, sans-serif;
  font-size: 90%;
  text-align: center;
  font-weight: normal;
}

#footer a {
  font-weight: bold;
  font-family: Geneva, Arial, Helvetica, sans-serif;
  font-size: 90%;
  color: #333333;
  background: inherit;
  text-decoration: none;
}

#footer a:hover {
  text-decoration: underline;
}

/* CONTENT STYLES */
#content {
  float: right;
  padding: 5px;
  margin: 5px;
  font-family: Geneva, Arial, Helvetica, sans-serif;
  font-size: 97%;
  font-weight: normal;
  line-height: 1.5em;
  color: #234;
  background: inherit;
  text-align: right !important;
  width: 68%;
  height: auto;
}

#content h3 {
  font-family: Georgia, "Times New Roman", Times, serif;
  color: #548FBC;
  background: inherit;
  padding: 3px 5px 3px 0px;
  margin: 3px 5px 3px 0px;
}

#content p {
  text-align: right !important;
  color: #234;
  font-family: Geneva, Arial, Helvetica, sans-serif;
  font-size: 97%;
  background: inherit;
  padding-right: 20px;
}

/* SIDEBAR STYLES */
#sideBar {
  float: left;
  text-align: left;
  width: 28%;
  border-right: none;
  border-top: thin dotted #012;
  border-bottom: thin dotted #012;
  height: auto;
  background-color: #EEE;
  color: #234;
  margin-top: 15px;
  padding-top: 5px;
}

#sideBar h3 {
  color: #71A8C6;
  background: inherit;
  font-size: 115%;
  padding: 3px 0px 2px 3px;
  margin: 3px 0px 2px 3px;
}

#sideBar p {
  font-size: 80%;
  color: #345;
  font-family: Geneva, Arial, Helvetica, sans-serif;
  font-weight: normal;
  background: inherit;
  padding: 1px 1px 1px 15px;
  margin: 0px;
}

#sideBar h4 {
  color: #30557A;
  background: inherit;
  font-size: 100%;
  padding: 1px 0px 1px 1px;
  margin: 1px 0px 1px 1px;
}

/* ALTERNAT SideBar Navigation
#sideBar #navigation{
padding:0px 0px 0px 0px;
margin:3px 0px 3px 0px;
background:none;
color:#012;
width:100%;
text-align:right !important;
}
#sideBar #navigation ul{
list-style:none;
display:block;
padding:0px;
margin:0px;
}
#sideBar #navigation ul li{
list-style:none;
display:block;
padding-top:9px;
padding-right:-1px;
padding-bottom:9px;
padding-left:0px;
}
#sideBar #navigation ul li a{
background-color:#CCCCCC;
padding:5px 5px 5px 5px;
margin:3px 0px 5px 3px;
border-bottom:thin solid #234;
border-top:thin solid #234;
border-left:thin solid #234;
border-right:none;
text-decoration:none;
color:#567;
}
#sideBar #navigation ul li a:hover,
#sideBar #navigation ul li a:active,  */
  /* MULTIPLE SIDEBAR HOVERS AND ACTIVES CAUSE SOME EXTRA SPACING HERE */
  /*
#sideBar #navigation ul li a.current:hover,
#sideBar #navigation ul li a.current:active{
border-right:thin solid #FFF;
background:#FFF;
color:#012;
}
#sideBar #navigation ul li a.current{
background:#FFF;
border-right:thin solid #FFF;
color:#567;
}
*/
#sideBar #navigation {
  width: 100%;
  height: auto;
  background: inherit;
  color: inherit;
  text-align: center;
}

#sideBar #navigation ul {
  padding: 5px 0px 5px 40px;
  margin: 0;
}

#sideBar #navigation ul li {
  list-style: none;
  display: block;
  padding: 0px 0px 5px 0px;
  margin: 0px 0px 5px 0px;
  text-align: center;
  border-bottom: thin solid #012;
  width: 75%;
}

a.current {
  color: #F60 !important;
  background: none;
}

#sideBar #navigation ul li a {
  width: 100%;
  height: auto;
  padding: 5px;
  margin: 5px;
  text-align: center;
  background: #EEE;
  color: #3D5676;
  text-decoration: none;
}

#sideBar #navigation ul li:hover a:hover,#sideBar #navigation ul li:hover a:active
  {
  color: #F60;
  background: inherit;
  text-decoration: none;
}

/* MISC Styles */
#box {
  border: thin dashed #001;
  background-color: #FDFDFD;
  color: #234;
  height: auto;
  width: 90%;
  padding: 5px;
  margin: 5px;
}

a.affiliate {
  margin: 10px;
  line-height: 2.5em !important;
  padding: 3px 3px 3px 10px;
  text-decoration: none;
  font-family: Geneva, Arial, Helvetica, sans-serif;
  font-size: 75%;
}

a.affiliate:hover,a.affiliate:active {
  color: #F60;
  background: inherit;
}
</style>



<title>^ Mile High ^</title>
</head>

<body>

<div id="container" align="center"> <!-- BEGIN CONTAINER -->

<div id="header"> <!-- BEGIN HEADER -->
<h1>Website Name</h1> <!-- Big Website name or page name -->
<h2>-- Website Slogan Goes Here --</h2> <!-- Slogan or wuote of some sort? -->

<div id="nav"> <!-- BEGIN NAV TABS -->

<ul>
  <li><a class="selected" href="#">Home</a></li> <!-- 'class="selected"' if you are on the page -->
  <li><a href="#">Check</a></li>
  <li><a href="#">Out My</a></li> <!-- MAIN TABBED MENU -->
  <li><a href="#">Tabbed</a></li>
  <li><a href="#">Menu!</a></li>
</ul>

</div> <!-- END NAV TABS -->
</div> <!-- END HEADER -->

<div id="content"> <!-- BEGIN MAIN CONTENT -->

<h3>Miles in the Sky</h3>
<p>Welcome to Mile High web design! This is my first venture with tab navigation and in many respects it is very similar to a previous design of mine. There are many extra styles included in the CSS and both the XHTML and the CSS have been annotated with lots of comments to make it easier to mess around with.</p>
<p>This design is made with all valid XHTML 1.0 Transitional and CSS 2. Mostly using ID's and styling the tags themselves. If you like this design, please check out my others at <a href="http://www.oswd.org">OSWD.</a></p>

<h3>Lorem Ipsum</h3>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. In velit dui, molestie eu, pellentesque iaculis, rhoncus ac, leo. Etiam convallis, nisi sit amet imperdiet placerat, ante magna nonummy risus, at sodales eros pede ac mauris. Suspendisse potenti. Vestibulum ut mauris a ligula convallis varius. Quisque porta bibendum nunc. Pellentesque ullamcorper tellus ac erat. Integer massa leo, molestie vel, iaculis vestibulum, elementum in, purus. Quisque ultrices magna. Aliquam erat volutpat. Phasellus mattis sapien in libero. Sed vehicula tristique purus. Vivamus tristique felis quis quam. Etiam vel augue pellentesque neque facilisis viverra. Proin ut mauris.</p>

</div> <!-- END CONTENT -->
<div id="sideBar"> <!-- BEGIN SIDEBAR -->

<h3>Secondary Nav</h3>
<div id="navigation"> <!-- BEGIN SECONDARY NAVIGATION -->

<ul>
   <li><a href="#">Extra</a></li>
   <li><a href="#">sideBar</a></li>
   <li><a href="#" class="current">Navigation</a></li> <!-- If currently on page, put class="current" on the li element -->
</ul>

</div> <!-- END EXTRA NAVIGATION -->

<h3>News</h3>

<div id="box">
<h4>1.21.06</h4>
<p>Here would be an excellent place to put the latest new or some links to a blog of some sort.</p>
</div> <!-- END OF BOX -->

<h3>Affiliates</h3>
<a class="affiliate" href="http://www.oswd.org">&raquo; OSWD &laquo;</a><br />
<a class="affiliate" href="#">&raquo; An Affiliate &laquo;</a><br />
<a class="affiliate" href="#">&raquo; Another &laquo;</a><br /><br />

<a class="affiliate" style="font-size:x-small;" href="http://validator.w3.org/check?uri=referer">XHTML</a>&nbsp;&amp;&nbsp;
<a class="affiliate" style="font-size:x-small;" href="http://jigsaw.w3.org/css-validator/validator">CSS</a><br />
 
</div><!-- END SIDEBAR -->

<div id="footer"> <!-- BEGIN FOOTER -->
<p>&copy; 2006 YourSite -- All Rights Reserved :.: Design V1.0 by <a href="http://24.15.71.248/">Jacob Tallman</a> 
- <a href="http://www.ehostinfo.com/">Web Hosting</a></p>
</div> <!-- END FOOTER -->

</div> <!-- END CONTAINER -->

</body>
</html>

   
    
    
  








Related examples in the same category

1.Use show or hide UL with link
2.Horizontal menu
3.CSS only menu with mouse over
4.Left bar menu
5.Menu bar with highlight
6.Menu with highlight
7.fixed width floated menu
8.Mouse hover left bar
9.Left navigation bar
10.Use UL and LI to wrap link menu
11.Tab Menu
12.Left bar menu list
13.Top tab menu bar
14.Navigation menu on the top
15.Wide and tall menu
16.Shading menu bar
17.Top menu bar with arrow icon
18.3D top bar background
19.Left menu bar aligned to the bottom
20.Indented vertical menu
21.Single column layout with top menu bar
22.Two-level left menu bar
23.Right section bar with shading menu
24.Right menu bar with image background
25.Right menu bar with section
26.Top menu bar
27.Using top arrow to indicate top menu selection
28.Wide and tall top menu bar
29.List menu bar with background image
30.Two level menu bar
31.Top menu with arrow indication
32.Two column, two leve top menu bar
33.List menu with image
34.Menu List item
35.List menu bar
36.Top menu list bar with bold bottom
37.Side menu bar
38.Scrollable section in side menu bar
39.Selected menu item indication
40.Card layout with top menu bar
41.Side menu bar with lot of space in between
42.HTML skeleton code for creating a two-level horizontal drop menu
43.using jQuery to toggle a hidden menu
44.Vertical menu
45.Horizontal menu bar
46.Vertical menu bar
47.sliding door menu
48.horizontal list menu
49.Sub navigation menu
50.Pure css menu
51.Two column layout with menu on the left
52.Navigation menu horizontal
53.Pure CSS drop-down menu
54.Menu item with border
55.Vertical menu on the left
56.LI menu
57.Mouse hover effect for left menu
58.Post item layout with menu
59.Left menu bar with mouse hover effect
60.a:hover background: transparent url(img/menu_arrow.gif) bottom center no-repeat;
61.Menu item with border 2
62.Link menu
63.Left menu bar with thicker border
64.Change border and background with mouse hover for left menu bar
65.Nested left menu bar
66.Vertical menu bar 2
67.Fixed left menu bar
68.Dark background for menu bar
69.Link menu item with side bar
70.Tag like top menu bar
71.Two line top menu bar
72.Menu item separated with border
73.Using arrow image to indicate current menu selection
74.Two level top menu bar
75.Tab menu bar with mouse hover effect
76.Menu bar with background image
77.Two level side menu bar
78.Continue read link