Block quote with background : background « CSS « HTML / CSS






Block quote with background

   

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en-AU">
<head>
 <title>black.orange</title>
 <meta http-equiv="content-type" content="application/xhtml; charset=UTF-8" />
<style type='text/css'>
/*  
Name: 
Description:
Author: will rossiter
Copyright: Its a FREE template but i would like if you left this notice here :D

*/

/***Misc Tags***/

* {
 margin: 0px;
 padding: 0px;
}

body {
 background: #fff url(black.orange-Image/bodybg.png) repeat-x;
 font-family: Verdana, Arial, sans-serif;
 font-size: 16px;
 color: #000;
 text-align: center;}
 
a img{
 border: 0px;}

a {
text-decoration: none;}

.hidden {
 text-indent: -9000px;
 background: inherit;}

/***Header/logo tags***/

#header {
 width: 850px;
 margin: 0 auto;
 height: 180px;
 border-top: 1px solid #000;}
   
#logo {
 float: left;
 margin-left: 10px;
 margin-top: 10px;
 width: 250px;}

#logo h1,#logo h2 {
font-weight:400;
letter-spacing:-2px;

}

#logo h1 {
font-size:2.4em;
padding-top:10px;
color: #F58220;
}

#logo h2 {
font-size:1.3em;
color: #a0a0a0;
}
 
 
 /***Top Navigation - try not to findle this took me a while to work out and get right***/

#topnav {
 margin-top:105px;
 margin-left: 300px}

#topnav a{
 display: block;
 float: left;
 text-align: center;
 width: 95px;
 height: 35px;
 line-height: 35px;
 text-decoration: none;
 color: #a0a0a0;
 text-transform: uppercase;
 font-size: 0.7em;
 background-image:url(black.orange-Image/tab.png);
 background-position:bottom left;
 background-repeat:no-repeat;}

#topnav a:hover {
 background-image:url(black.orange-Image/tab.png);
 color: #000;
 background-position:top left;
 background-repeat:no-repeat;}
  
#topnav .active {
 background-image:url(black.orange-Image/tab.png);
 color: #000;
 background-position:top left;
 background-repeat:no-repeat;}
  
/***MAIN CONTENT (WHITE) AREA***/

#content {
 clear: both;
 text-align: left;
 width: 650px;
 margin: 20px auto 0 auto;
 padding: 5px;
 width: 655px;}


#content h2{
 padding-left: 8px;
 font-size: 1.2em;
 text-transform: uppercase;
 margin-left: 15px;
 letter-spacing:-1px;
 margin-bottom: 10px;
 color: #F58220;}

#content p {
 font-size: 0.8em;
 line-height: 1.5em;
 color: #8f8f8f;}

#content p a{
 color: #324A97;}
 
#content p a:hover {
 color: #fff;
 background: #324A97;}

#content blockquote {
 margin: 15px;
 border: 1px solid #b0b0b0;
 padding: 10px;
 width: 500px;
 background: #f4f4f4;
 font-size: 0.8em;
 font-family: Courier, "Lucidia Console", "Times New Roman", sans-serif;
 color: #a0a0a0;}
 
#content abbr {
 border-bottom: 1px dotted #8f8f8f;}


/***Random stuff Area***/

 
#latest {
 width: 100%;
 background: #333333 url(black.orange-Image/bg2.png) repeat-x;
 font-size: 0.7em;
 padding-top: 80px;
}

#container2 {
 clear: both;
 background: #333333;
 text-align: left;
 width: 650px;
 color: #fff;
 margin: 0 auto;}

#container2 h3{
 font-size: 1.2em;
 text-transform: uppercase;
 margin-left: 10px;
 letter-spacing:-1px;
 margin-bottom: 10px;
 color: #F58220;}
 
.name {
color: #c0c0c0;
}
 
.blocklinks {
 width: 320px;
 float: left;
 background: #333333;}

.blocklinks a.link {
  display: block;  
  padding: 10px;
  background: inherit;
  color: #fff;
  border-top: 1px dotted #a0a0a0;
}

.blocklinks a:hover.link { 
  color: #DDD;
  background: #525252;
  border-top: 1px dotted #a0a0a0;
}




#articles {
 width: 320px;
 float: right;
 background: #333333;}
  
/***FOOTER***/

#footer {
 width: 100%;
 clear: both;
 text-align: center;
 background: #333333;
 font-size: 0.8em;
 margin-top: 105px;
 color: #a0a0a0;}
</style>


</head>


<body>
<!--HEADER/LOGO-->
<div id="header">
 <div id="logo">
<h1>black.orange</h1>
<h2>I love fruit. Its good for you</h2>
 </div>
 
 <!--TAB NAVIGATION-->
 <div id="topnav">
<a href="#" class="active">Home</a><!--Use class="active" to show where user is-->
<a href="#">Portfolio</a>
<a href="#">Blog</a>
<a href="#">Templates</a>
<a href="#">Contact</a>
 </div>
</div>

<!--MAIN CONTENT-->
  <div id="content">
  
<h2>Welcome - A short about &rsaquo;</h2>
<p>Okay this design was not meant for open-release as a template (but I will release it :) so it may not be the easiest design to edit. Contact me @ <a href="mailto:will.rossiter@gmail.com">will.rossiter[at]gmail[dot]com</a> if you have any troubles. And no doubt - someone will. :P. If anyone wants to mod this to <a href="http://wordpress.com/">WordPress</a> or <a href="http://textpattern.com/">Textpattern</a> They can and I wish them luck.<br/>
</p>
<br />
<p>The header looks a bit funny because I did have a picture there but due to the rules I replaced it with normal text. The uploaded document "index.html" was checked and found to be valid XHTML 1.0 Strict.</p>
<br />
<br />
<h2>Some filler text</h2>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</p>
<br />
<blockquote><p>Go the block quote !! Put some example code or something here</p></blockquote>
<p>Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit</p>
<br />
<p> sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?</p>
</div>

<!--OUCH DID I NEED SO MANY DIVS HERE..:P..-->
<div id="latest">
     <div id="container2">
     <div id="randomcrap">
     <!--LEFT LINKS-->
 <div class="blocklinks">
 <h3>Links &rsaquo;</h3>
 <a href="http://www.openwebdesign.org" class="link"><span class="name">Open Web Design.org</span> - free templates and a forum full of talent and friendly people</a>
 <a href="http://www.oswd.org" class="link"><span class="name">OSWD.org</span> - free templates and helpful people</a>
 <a href="http://www.stylegala.com" class="link"><span class="name">StyleGala</span> - busy forum full of advice bout webdesign</a>
   <a class="link" href="http://www.ehostinfo.com/"><span class="name">Web 
   Hosting</span> - Web Hosting Directory</a></div>
    </div>
    <!--LASTEST ARTICLES-->
     <div id="articles">
 <div class="blocklinks">
 <h3>Latest Articles &rsaquo;</h3>
 <a href="#" class="link">will.r releases new template</a>
 <a href="#" class="link">My dog ate the neighbours cat</a>
 <a href="#" class="link">Google takes over the world</a>
 <a href="#" class="link">Well goodluck editing this</a>
 </div>
     </div>
     </div>
     <!--THE FOOTER-->
 <div id="footer">
 <p>Copyright &copy; 2005 willr Webdesign</p>
 &nbsp;
 </div>
 
</div>
</body>
</html>

   
    
    
  








Related examples in the same category

1.'background' Example
2.The background shorthand property provides for specifying all five separate background properties in one single property.
3.background: mistyrose
4.background: gray
5.background: rgb(128, 128, 128)
6.The background-color value can be transparent keyword, which is also the default value.
7.The background-color value can be a hexadecimal value
8.The background-color value can be a short hexadecimal value
9.background: yellow;
10.background: white url('http://java2s.com/style/logo.png') center center; (image and position)
11.background: url('http://java2s.com/style/logo.png') repeat-x; (background-image-repeat)
12.background: url('http://java2s.com/style/logo.png') repeat-y scroll; (background image repeat attachment)
13.background: mistyrose;
14.background: pink;
15.background: lightyellow;
16.background: rgb(234, 234, 234);
17.background: yellowgreen;
18.background: no-repeat fixed bottom center;
19.background x tiled
20.background y tiled
21.Background fixed
22.Whole page background
23.Whole page shading effect
24.HTML and CSS for background colors
25.Using more than one background image
26.Merge several image to one big background image
27.CSS Background Attributes Example
28.Link with background
29.hr border: none; background-color: #256579; color: #256579; height: 2px; width: 80%;
30.tfoot td background: #808080;color: white;
31.background attachment: fixed
32.option background-color: #3CB371;color: #ffffff;
33.code padding:3px; background-color:black; color:#FFFFFF;
34.background-attachment: fixed;
35.demonstrating the background-color property
36.Background grid
37.a:hover {color:#FF9900; text-decoration:underline; background-color:#f9f0f0;}
38.thead, tfoot {border:solid; background-color:#efefef; font-size:36px;}
39.Update background image when mouse hover
40.Using background image for DIV
41.background: url(img/document.gif) no-repeat left center;
42.Change background when mouse hover
43.a:hover background: inherit;
44.Using shade image to as the title bar background
45.Round corner with background image
46.Shading background
47.Blue background
48.Black background
49.background: #ffffff url(1024px-images/background.gif) top center repeat-y;
50.Round corner with background image 2
51.background: rgb(244, 244, 244);
52.The background shorthand property
53.background assigns the padding area inside the box to a background color and/or image.
54.Set URL for Background Image
55.Background with no repeat
56.Add background image to LI
57.background: lightblue
58.background: lightgreen
59.background: pink
60.Css Rollover with image