Add no repeat icon to title text : Title section « CSS Controls « HTML / CSS

HTML / CSS » CSS Controls » Title section 
Add no repeat icon to title text

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<html xmlns="" xml:lang="en" lang="en">
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <style type="text/css" media="screen">

    font-size: 12px;

  #divID h1 {
    font-size: 24px;
    color: #369;
    padding-left: 30px;
    background: url(icon.gifno-repeat 0 50%;


<div id="divID">
  <h1>This is the Title of this page.</h1>


Related examples in the same category
1.Underlined title
2.Add background image to title text
3.Title format: font-family: Arial, sans-serif;color: #369;
4.Add border line to title text
5.Use background to highlight title text
6.Title section
7.Set line height for titled section
8.Set font family for titled section
9.Set title letter space for titled section
10.Change title font style for titled section
11.Letter drop for titled section
12.Titled section with justified alignment
13.Align title to the center
14.Text transformation for title
15.Set title size to small-caps
16.Paragraph indent for titled section
17.Place contact link list to the right top
18.Adding shading to top bar
19.Top links
20.Place language selection, about and contact information on the very top of the page  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.