CSS Title as Images Example

Download a zipped copy of this file with the complete folder structure

body {
	color:#F2B368;
	text-align: center;
	background-image: url('media/bg.gif');
	margin:50px 0px; padding:0px;
	}

#container {
	margin: 0 auto;
	width: 270px;
	background-color: #000;
	border: medium solid #000;
	}

#title1, #title2 {
	position: relative;
	margin: 0 auto;
	width: 248px;
	height: 43px;
	border: medium solid #000;
	margin: 10px;
	display: block;
        margin-left: auto;
        margin-right: auto;
	}

#title1 {
	background-image: url('media/title1.png');
	}
#title2 {
	background-image: url('media/title2.png');
	}

#box1, #box2 {
	position: relative;
	width: 240px;
	border: solid #000;
	background-color: #333;
	border: medium solid #000;
	margin: 10px;
	display: block;
	margin-left: auto;
	margin-right: auto;
	}

Tags: , , ,

One Response to “DIV Titles with Images Example”

Trackbacks/Pingbacks

  1. Web Design with Dreamweaver

Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>