Blue background : background « CSS « HTML / CSS






Blue 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" lang="en" xml:lang="en">
<head>
<title>Art Class</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<style rel="stylesheet" type="text/css">
/* MLP Design (http://www.mlpDesign.tk). Released under Creative Commons Attribute 2.5 */
body {
  background: url(artclass-images/oenmwbg.gif) 50% 0 repeat-y #369;
  font-family: Verdana, sans-serif;
  color: #666;
  font-size: 10pt;
  margin: 0;
}

strong {
  background: inherit;
  color: #f63;
}

h1 {
  background: inherit;
  color: #777;
  font-size: 16pt;
  font-weight: normal;
  margin: 0;
  padding-top: 8px;
  text-transform: lowercase;
}

h2 {
  background: inherit;
  color: #f63;
  font-size: 9pt;
  font-weight: normal;
  margin: 0;
  padding: 2px 0 8px 0;
  text-transform: uppercase;
  border-bottom: #ddd 1px solid;
}

a:link,a:visited,a:active {
  background-color: inherit;
  color: #000;
  text-decoration: none;
}

a:hover {
  background-color: inherit;
  text-decoration: none;
  color: #f63;
}

blockquote {
  background: inherit;
  color: #888;
  display: block;
  padding: 0 5px;
  margin: 0 50px;
  font-size: 8pt;
  font-weight: normal;
  text-align: justify;
  border-left: #f63 5px solid;
}

blockquote p:first-letter {
  background: inherit;
  color: #f63;
  font-size: 150%;
  font-weight: bold;
  text-transform: uppercase;
}

ul {
  list-style: none;
  margin-left: 10px;
  padding: 1px;
}

ul li {
  padding-left: 15px;
  background: url(artclass-images/arw.gif) 0 3px no-repeat;
}

#header {
  width: 730px;
  height: 190px;
  background: url(artclass-images/oenmw.jpg) 50% no-repeat #69c;
  color: #777;
  margin: auto;
  font-weight: bold;
  text-transform: lowercase;
}

#body {
  width: 700px;
  background: #fff;
  color: inherit;
  margin: auto;
  padding: 13px;
  border: #ccc 2px solid;
  text-align: justify;
}

#content {
  width: 500px;
  float: left;
  text-align: justify;
}

#sidebar {
  width: 175px;
  height: auto;
  float: right;
  text-align: justify;
  margin-top: 15px;
}

#footer {
  width: 720px;
  margin: 10px auto;
  background: inherit;
  color: #fff;
  font-size: 75%;
}

.headerlt {
  float: left;
  padding: 80px 0 0 20px;
  font-size: 20pt;
  letter-spacing: 8px;
}

.menu {
  float: right;
  margin: 90px 5px 0 0;
  text-align: center;
  font-size: 8pt;
}

.menu a:link,.menu a:visited,.menu a:active {
  background: inherit;
  color: #555;
  text-decoration: none;
  display: block;
  border-left: #554 1px dashed;
  padding: 1px 8px;
}

.menu a:hover {
  background: inherit;
  color: #f60;
  text-decoration: none;
  border-left: #f61 5px solid;
  padding-left: 4px;
}

.sbhead {
  background: inherit;
  color: #888;
  font-weight: bold;
  border-bottom: #ddd 1px solid;
  padding: 1px 0 8px 0;
  text-transform: lowercase;
  text-align: right;
  font-size: 95%;
}

.sidebar {
  background: inherit;
  padding: 5px;
  width: 170px;
  font-size: 80%;
  color: #888;
  text-align: justify;
  margin-top: 10px;
}

.img {
  border: #aaa 1px solid;
  margin: 8px 5%;
  width: 90%;
}

.footer {
  float: right;
}

.footer a:link,.footer a:visited,.footer a:active {
  background: inherit;
  color: #ddd;
  text-decoration: none;
}

.footer a:hover {
  background: inherit;
  color: #fff;
  text-decoration: none;
}

.spacer {
  font-size: 0;
  clear: both;
  height: 1px;
}
</style>
</head>
<body>
<div id="header">
  <div class="menu"> <a href="">gallery</a></div>
  <div class="menu"> <a href="">schedule</a></div>
  <div class="menu"> <a href="">about us</a></div>
  <div class="menu"> <a href="">home</a></div>
  <div class="headerlt">art<strong>class</strong></div>
</div>
<div id="body">
  <div id="sidebar">
    <div class="sidebar">
      <div class="sbhead">: featured art</div>
      <img class="img" src="artclass-images/adj.gif" alt="" /></div>
    <div class="sidebar">
      <div class="sbhead">: credit</div>
      <p>The header-and featured art images appearing on this template are from Free Webpage Headers (with some minor editing).</p>
    </div>
    <div class="sidebar">
      <div class="sbhead">: notice</div>
      <p>This template is distributed under <a href="http://creativecommons.org/licenses/by-nc/2.5/">Creative Commons Attribution - Non Commercial  2.5 License</a>.</p>
      <p>Please retain the "Template Design by MLP Design" tag and link at the footer when you use it. Thank you.</p>
    </div>
  </div>
  <div id="content">
    <h1>About us</h1>
    <h2>Some subheader-content goes here.</h2>
    <p>Unless you know exactly what you are doing, do not make any changes or add html tags onto the html pages as this will affect the XHTML 1.0 code validation of the page.</p>
    <blockquote>
      <p>All changes to color, background, fonts, width, height, etc. should be made in the stylesheet (style.css) to preserve XHTML 1.0 validation.</p>
    </blockquote>
    <p>Open "style.css" in any text editor. To change font color, change the value of "color". For the background-color or image, locate "background". The width, height, font-size, text-align are all self-explanatory. If you need help using this template contact me</p>
    <p><br />
    </p>
    <h2>Bullets and lists</h2>
    <ul>
      <li>Open Web Design</li>
      <li>Creative Commons</li>
      <li>Free Webpage Headers</li>
    </ul>
    <ol>
      <li>http://www.openwebDesign.org</li>
      <li>http://creativecommons.org</li>
      <li>http://www.freewebpageheaders.com</li>
    </ol>
    <p>Some space fillers. Maecenas ac nisi. Integer ultricies sem eget nunc. Vivamus sollicitudin, nunc eu iaculis suscipit, nunc lorem dignissim arcu, eu tincidunt erat erat a magna. Etiam ac ante quis mi volutpat lacinia. Nullam ultrices gravida magna. Aenean sed tortor ac est gravida pellentesque. Nam sodales vulputate ante. Quisque dignissim tempus sem. Vivamus vel nulla. Sed ullamcorper bibendum libero. Nunc enim eros, adipiscing a, elementum at, porta vel, libero.</p>
  </div>
  <div class="spacer"></div>
</div>
<div id="footer">
  <div class="footer">Template Design by <a href="http://www.mlpDesign.net">MLP Design</a> | <a href="http://validator.w3.org/check?uri=referer">XHTML 1.0 Strict</a> | <a href="http://jigsaw.w3.org/css-validator/check/referer ">CSS Valid</a></div>
  <p>&copy; Copyright 2006 Your Name. All Rights Reserved.</p>
</div>
<div class="spacer"></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.Black background
48.background: #ffffff url(1024px-images/background.gif) top center repeat-y;
49.Round corner with background image 2
50.Block quote with background
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