Quotation with background : Quotation « CSS Controls « HTML / CSS






Quotation with background

  
<!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" lang="en" xml:lang="en">
<head>
<title>Morning Swim</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="author" content="Homefront Studios" />
<meta name="description" content="oswd, open source template" />
<style type='text/css'>
body,html {
  background: #e3f0c1;
  color: #1B403E;
  margin: 0;
  padding: 0;
}

body {
  min-width: 800px;
  background: #e3f0c1 url(Morning-Swim-images/wrap_bg.gif) repeat-y top
    center;
  font: 0.8em/1.4em Tahoma, Geneva, sans-serif;
}

#wrap {
  background: #F4F7EB;
  width: 760px;
  margin: 0 auto;
}

#header {
  background: #B29742 url(Morning-Swim-images/header_bg.jpg) no-repeat top
    center;
  height: 175px;
  margin: 0;
  padding: 0;
}

#header h1 {
  color: #7AA410;
  font: italic bold 400% "Times New Roman", Times, serif;
  margin: 0;
  padding: 40px 20px;
}

#nav {
  background: #AFCD70;
  border-top: 2px solid #889F57;
  border-bottom: 2px solid #889F57;
  padding: 5px 10px;
}

#nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#nav li {
  display: inline;
  margin: 0;
  padding: 0 2em 0 0;
}

#nav li a {
  font-weight: 700;
  text-decoration: none;
}

#nav li a:link {
  color: #060;
}

#nav li a:visited {
  color: #768756;
}

#main {
  color: #1B403E;
  background: #F4F7EB;
  float: left;
  width: 500px;
  border-right: 1px dashed #E3F0C1;
  padding: 20px 0;
}

#main h2,#main h3,#main p {
  padding: 0 20px;
}

#main h2,#main h3 {
  color: #B19A53;
}

#sidebar {
  background: #F4F7EB;
  float: right;
  width: 240px;
  padding: 20px 0;
}

#sidebar ul {
  padding-bottom: 1em;
}

#sidebar li {
  color: #AFCD70;
  list-style: circle;
}

#sidebar li a {
  text-decoration: none;
}

#sidebar li a:link {
  color: #547999;
}

#sidebar li a:visited {
  color: #895499;
}

#sidebar h3,#sidebar p {
  padding: 0 10px 0 0;
}

#sidebar h3 {
  color: #b19a53;
}

#footer {
  color: #060;
  border-top: 2px solid #889F57;
  border-bottom: 2px solid #889F57;
  background: #AFCD70;
  clear: both;
  font-size: 0.75em;
  text-align: center;
}

#footer p {
  margin: 0;
  padding: 5px;
}

sup,sub {
  color: #7AA410;
}

blockquote {
  background: #e3f0c1;
  border-left: 2px solid #afcd70;
  font: 0.9em/1.5em "Palatino Linotype", "Book Antiqua", Palatino, serif;
  color: #898D67;
  letter-spacing: .05em;
  margin-top: 15px;
  margin-bottom: 15px;
  padding: 6px;
}

.blendedlinks {
  color: #060;
  text-decoration: none;
}

#nav li a:hover,#nav li a:active {
  color: #E3F0C1;
}

#main p,#sidebar p {
  color: #1B403E;
}

#sidebar li a:hover,#sidebar li a:active {
  color: #999254;
}
</style>


</head>
<body>
<div id="wrap">
<div id="header"><h1>Morning Swim</h1></div><!-- header -->
<div id="nav">
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">News</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Templates</a></li>
<li><a href="#">Graphics</a></li>
</ul>
</div><!-- nav -->
<div id="main">
<h2>Welcome to Morning Swim</h2>
<p>Fresh, like the newly-risen sun on a mountain lake in summer, when the world is golden and bright.  Jump in!</p>
<p>This template validates as proper XHTML/CSS, with none of those pesky tables or proprietary tags to clutter things up.</p>
<p>Thanks for looking!</p>
<blockquote>
<b>Blockquote</b>
<br />
Aenean tempor. Mauris tortor quam, elementum eu, convallis a, semper quis, purus. Cras at tortor in purus tincidunt tristique. In hac habitasse platea dictumst. Ut eu lectus eu metus molestie iaculis. In ornare. Donec at enim vel erat tempor congue. Nullam varius. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nulla feugiat hendrerit risus. Integer enim velit, gravida id, sollicitudin at, consequat sit amet, leo. Fusce imperdiet condimentum velit. Phasellus nonummy interdum est. Pellentesque quam.
</blockquote>
<h3>Consectetuer adipiscing elit</h3>
<p>Nulla dictum. Praesent turpis libero, pretium in, pretium ac, malesuada sed, ligula. Sed a urna eu ipsum luctus faucibus. Curabitur fringilla. Suspendisse sit amet quam. Sed vel pede id libero luctus fermentum. Vestibulum volutpat tempor lectus. Vivamus convallis tempus ante. Nullam adipiscing dui blandit ipsum. Nullam convallis lacus ut quam. Mauris semper elit at ante. Vivamus tristique. Pellentesque pharetra ante at pede. In ultrices arcu vitae purus. In rutrum, erat at mollis consequat, leo massa consequat libero, ac vestibulum libero tellus sed risus. Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</p>
<p>Maecenas eu velit nec magna venenatis consequat. In neque. Vivamus pellentesque, lacus eu aliquet semper, lorem metus rhoncus metus, a ornare orci ante a diam. Nunc sem nisl, aliquet quis, elementum nec, imperdiet in, wisi. Proin in lorem. Etiam molestie diam eget ante. Morbi quis tortor id lacus mollis venenatis. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam vel orci sit amet tellus mollis eleifend. Donec urna diam, viverra eget, ultricies gravida, ultrices eu, erat. Proin vel arcu. Sed diam. Cras hendrerit arcu sed augue. Sed justo felis, luctus a, accumsan in, tincidunt facilisis, libero. Phasellus eu eros.</p>
</div><!-- main -->
<div id="sidebar">
<h3>Design Origins</h3>
<p>Made on Earth by humans in the web design shop of Homefront Studios.
<br />
...With feeling!<sup>*</sup></p>
<p><sub>* And a good amount of pixie dust</sub></p>
<h3>Link Roll</h3>
<ul>
<li><a href="http://www.homefrontstudios.com">Homefront Studios</a></li>
<li><a href="http://www.homefrontstudios.com/eme.asp">Contact me</a></li>
<li><a href="http://www.oswd.org/">OSWD</a></li>
<li><a href="http://validator.w3.org/check/referer">Valid XHTML</a></li>
<li><a href="http://jigsaw.w3.org/css-validator/check/referer">Valid CSS</a></li>
</ul>
<h3>Using this Design</h3>
<p>This template is released as an open source web design, which means that you are free to use it 
and edit it any way you wish for personal or commercial purposes.</p>
<p>The image used is royalty-free stock photography with no usage restrictions.</p>
<p>We would feel the love if you'd leave the Homefront Studios link in the footer, though it's not 
required.  If you use this template, we'd love to see it grow, so please, <a 
href="http://www.homefrontstudios.com/eme.asp">drop us a line</a> and tell us where we can sneak a peek 
at our little guy.</p>
</div><!-- sidebar -->
<div id="footer">
<p>Homefront Studios Web Design - <a href="http://www.ehostinfo.com/">Web 
Hosting</a></p>
</div><!-- footer -->
</div><!-- wrap -->
</body>
</html>

   
    
  








Related examples in the same category

1.Text wraps quotations
2.Quotation style
3.Quotations
4.Quotation with quotation mark image
5.Sidebar with links, text and quotations
6.Quotation with left bar
7.Quotation with quotation mark
8.Quotation Example
9.Using content property to add quotation marks to blockquote
10.Using div to create quotation box
11.Content and quotation
12.Quotation on the right, wrap with text
13.Paragraph wraps around quotation
14.Using classes and CSS overrides to create an alternate pull quote
15.Creating pull quotes in CSS
16.Quote with border