Black background : background « CSS « HTML / CSS






Black 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">
<head>
<title>Artificial</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />

<style rel="stylesheet" type="text/css">
/*
Design by Free CSS Templates
http://www.freecsstemplates.org
Released for free under a Creative Commons Attribution 2.5 License
*/

body {
  margin: 0;
  padding: 0;
  background: #000000 url(artificial-images/img01.gif) repeat-x;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  color: #808080;
}

form {
  margin: 0;
  padding: 0;
}

fieldset {
  margin: 0;
  padding: 0;
  border: none;
}

input, textarea, select {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
}

h1, h2, h3 {
  text-transform: lowercase;
  font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
  font-weight: normal;
  color: #E6E6E6;
}

h1 {
  letter-spacing: -1px;
  font-size: 2.4em;
}

h2 {
  font-size: 1.8em;
}

h3 {
  font-size: 1.2em;
  font-weight: bold;
}

p, ul, ol {
  margin-bottom: 1.6em;
  line-height: 180%;
}

p {
}

blockquote {
  font-style: italic;
}

ul {
}

ol {
}

a {
  color: #FA9C39;
}

a:hover {
  text-decoration: none;
}

small {
}

hr {
  display: none;
}

img {
  border: none;
}

img.left {
  float: left;
  margin: 0 15px 0 0;
}

img.right {
  float: left;
  margin: 0 0 0 15px;
}

/* Header */

#feeds {
  width: 980px;
  height: 28px;
  margin: 0 auto;
  padding-top: 12px;
  text-align: right;
}

#feeds b {
  display: none;
}

#feeds a {
  padding: 0 21px;
  background: url(artificial-images/img02.gif) no-repeat left center;
  text-decoration: none;
  font-weight: bold;
  color: #FFFFFF;
}

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

#logo {
  width: 980px;
  height: 100px;
  margin: 0 auto;
  padding: 60px 0 0 0;
}

#logo h1, #logo p {
  margin: 0;
  float: left;
  color: #FFFFFF;
}

#logo h1 {
  padding-left: 40px;
  background: url(artificial-images/img03.gif) no-repeat left center;
  font-size: 4em;
}

#logo p {
  padding: 3px 0 0 5px;
  font-size: 1.4em;
}

#logo a {
  text-decoration: none;
  text-transform: lowercase;
  color: #FFFFFF;
}

/* Menu */

#menu {
  width: 980px;
  height: 60px;
  margin: 0 auto;
}

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

#menu li {
  display: inline;
}

#menu a {
  display: block;
  float: left;
  height: 43px;
  padding: 17px 30px 0 30px;
  background: url(artificial-images/img04.gif) no-repeat;
  text-transform: lowercase;
  text-decoration: none;
  font-size: 1.8em;
  color: #5B6371;
}

#menu a:hover {
  color: #000000;
}

#menu .active a {
  background-color: #738197;
  color: #FFFFFF;
}

/* Page */

#page {
  width: 980px;
  margin: 0 auto;
  padding: 40px 0;
}

/* Content */

#content {
  float: left;
  width: 660px;
  padding-top: 8px;
}

.post {
  text-align: justify;
}

.post .title {
  margin: 0;
  border-bottom: 1px solid #1A1A1A;
}

.post .meta {
  margin: 0;
  padding-left: 6px;
  background: url(artificial-images/img05.gif) no-repeat left center;
  color: #404040;
}

.post .meta a {
  color: #404040;
}

.post .entry {
  padding: 20px;
}

.post .more {
  text-align: right;
}

.post .more a {
  padding-left: 15px;
  background: url(artificial-images/img06.gif) no-repeat left center;
  text-decoration: none;
  font-weight: bold;
}

.post .more a:hover {
  text-decoration: underline;
}

.vline {
  border-bottom: 1px solid #1A1A1A;
}

/* Sidebar */

#sidebar {
  float: right;
  width: 280px;
}

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

#sidebar li {
  margin-bottom: 20px;
  background: #1A1A1A;
  border: 5px solid #050505;
}

#sidebar li ul {
  padding: 20px;
}

#sidebar li li {
  margin: 0;
  background: none;
  border: none;
}

#sidebar li li a {
  padding-left: 15px;
  background: url(artificial-images/img08.gif) no-repeat left center;
  text-decoration: none;
}

#sidebar li li a:hover {
  text-decoration: underline;
}

#sidebar h2 {
  height: 40px;
  margin: 0;
  padding: 10px 0 0 10px;
  background: #BAD08B url(artificial-images/img07.gif) repeat-x;
  letter-spacing: -1px;
  font-size: 1.8em;
  color: #000000;
}

/* Search */

#search form {
  padding: 20px;
}

/* Footer */

#footer {
  clear: both;
  height: 100px;
  padding: 20px;
  background: #1A1A1A;
  border-top: 10px solid #050505;
}

#footer p {
  margin: 0;
  text-align: center;
  color: #444444;
}

#footer a {
  color: #444444;
}

</style>
</head>
<body>
<div id="feeds"><a href="" id="entries-rss">Entries (RSS)</a> <b>&nbsp;|&nbsp;</b> <a href="" id="comments-rss">Comments (RSS)</a></div>
<hr />
<div id="logo">
  <h1><a href="">Artificial</a></h1>
  <p><a href="">Free CSS Template</a></p>
</div>
<hr />
<!-- start menu -->
<div id="menu">
  <ul>
    <li class="active"><a href="">Home</a></li>
    <li><a href="">Blogs</a></li>
    <li><a href="">Photos</a></li>
    <li><a href="">About</a></li>
    <li><a href="">Contact</a></li>
  </ul>
</div>
<div id="page">
  <div id="content">
    <div class="post">
      <h1 class="title">Welcome to Our Website!</h1>
      <p class="meta"><small>Posted by <a href="">Admin</a> on August 8th, 2007 <b>&nbsp;|&nbsp;</b> <a href="">Comments (12)</a></small></p>
      <div class="entry">
        <p>This is <strong>Artificial</strong>, a free, fully standards-compliant CSS template designed by Free CSS Templates. This free template is released under a <a target="_blank" href="http://creativecommons.org/licenses/by/2.5/">Creative Commons Attributions 2.5</a> license, so you're pretty much free to do whatever you want with it (even use it commercially) provided you keep the links in the footer intact. Aside from that, have fun with it :)</p>
        <p>This template is also available as a WordPress theme at Free WordPress Themes.</p>
        <p class="more"><a href="">Read full post&hellip;</a></p>
      </div>
    </div>
    <div class="post">
      <h2 class="title">Common Tags Example</h2>
      <p class="meta"><small>Posted by <a href="">Admin</a> on August 8th, 2007 <b>&nbsp;|&nbsp;</b> <a href="">Comments (12)</a></small></p>
      <div class="entry">
        <p>This is a paragraph enclosed in <code>&lt;p&gt;&lt;/p&gt;</code> HTML tags. Other text manipulation tags will look like these:</p>
        <ul>
          <li><strong>bold</strong> is enclosed with <code>&lt;strong&gt;&lt;/strong&gt;</code> tags</li>
          <li><em>italic</em> is enclosed with <code>&lt;em&gt;&lt;/em&gt;</code> tags</li>
          <li><em><strong>bold italic</strong></em> is enclosed with <code>&lt;em&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/em&gt;</code> tags</li>
          <li><code>code</code> is enclosed with <code>&lt;code&gt;&lt;/code&gt;</code> tags</li>
        </ul>
        <p class="more"><a href="">Read full post&hellip;</a></p>
      </div>
    </div>
    <div class="post">
      <h2 class="title">Sample Blockquotes</h2>
      <p class="meta"><small>Posted by <a href="">Admin</a> on August 8th, 2007 <b>&nbsp;|&nbsp;</b> <a href="">Comments (12)</a></small></p>
      <div class="entry">
        <p>The most common <em>lorem ipsum</em> text reads as follows:</p>
        <blockquote>
          <p>&#8220;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.&#8221;</p>
        </blockquote>
        <p class="more"><a href="">Read full post&hellip;</a></p>
      </div>
    </div>
  </div>
  <div id="sidebar">
    <ul>
      <li id="search">
        <h2>Search</h2>
        <form method="get" action="">
          <fieldset>
          <input type="text" id="s" name="s" value="" />
          <input type="submit" id="x" value="Search" />
          </fieldset>
        </form>
      </li>
      <li>
        <h2>Lorem Ipsum</h2>
        <ul>
          <li><a href="">Fusce dui neque fringilla</a></li>
          <li><a href="">Eget tempor eget nonummy</a></li>
          <li><a href="">Magna lacus bibendum mauris</a></li>
          <li><a href="">Nec metus sed donec</a></li>
          <li><a href="">Magna lacus bibendum mauris</a></li>
          <li><a href="">Velit semper nisi molestie</a></li>
          <li><a href="">Eget tempor eget nonummy</a></li>
        </ul>
      </li>
      <li>
        <h2>Volutpat Dolore</h2>
        <ul>
          <li><a href="">Eget tempor eget nonummy</a></li>
          <li><a href="">Magna lacus bibendum mauris</a></li>
          <li><a href="">Magna lacus bibendum mauris</a></li>
          <li><a href="">Velit semper nisi molestie</a></li>
          <li><a href="">Nec metus sed donec</a></li>
          <li><a href="">Magna lacus bibendum mauris</a></li>
          <li><a href="">Fusce dui neque fringilla</a></li>
        </ul>
      </li>
      <li>
        <h2>Magna Bibendum</h2>
        <ul>
          <li><a href="">Nec metus sed donec</a></li>
          <li><a href="">Magna lacus bibendum mauris</a></li>
          <li><a href="">Velit semper nisi molestie</a></li>
          <li><a href="">Eget tempor eget nonummy</a></li>
          <li><a href="">Nec metus sed donec</a></li>
          <li><a href="">Magna lacus bibendum mauris</a></li>
          <li><a href="">Velit semper nisi molestie</a></li>
        </ul>
      </li>
    </ul>
  </div>
  <div style="clear: both;">&nbsp;</div>
</div>
<div id="footer">
  <p id="legal">&copy;2007 All Rights Reserved. Designed by <a target="_blank" href="http://www.freecsstemplates.org/">Free CSS Templates</a></p>
  <p id="links"><a href="">Privacy</a> | <a href="">Terms</a> | <a href="http://validator.w3.org/check/referer" title="This page validates as XHTML 1.0 Transitional"><abbr title="eXtensible HyperText Markup Language">XHTML</abbr></a> | <a href="http://jigsaw.w3.org/css-validator/check/referer"><abbr title="Cascading Style Sheets">CSS</abbr></a></p>
</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.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