Remote control example

Back to article

Main navigation

Select a site section

Photo gallery viewer

Images used

HTML markup

<div id="remote-control">
	<h2>
		Main navigation
	</h2>
	<ul>
		<li id="home"><a href="#" title="Home"><span>Home</span></a></li>
		<li id="sitemap"><a href="#" title="Sitemap"><span>Sitemap</span></a></li>
	</ul>
	<h2>
		Select a site section
	</h2>
	<ul>
		<li id="button1"><a href="#" title="Section 1"><span>Section 1</span></a></li>
		<li id="button2"><a href="#" title="Section 2"><span>Section 2</span></a></li>
		<li id="button3"><a href="#" title="Section 3"><span>Section 3</span></a></li>
		<li id="button4"><a href="#" title="Section 4"><span>Section 4</span></a></li>
		<li id="button5"><a href="#" title="Section 5"><span>Section 5</span></a></li>
		<li id="button6"><a href="#" title="Section 6"><span>Section 6</span></a></li>
		<li id="button7"><a href="#" title="Section 7"><span>Section 7</span></a></li>
		<li id="button8"><a href="#" title="Section 8"><span>Section 8</span></a></li>
		<li id="button9"><a href="#" title="Section 9"><span>Section 9</span></a></li>
		<li id="button10"><a href="#" title="Section 10"><span>Section 10</span></a></li>
		<li id="button11"><a href="#" title="Section 11"><span>Section 11</span></a></li>
		<li id="button12"><a href="#" title="Section 12"><span>Section 12</span></a></li>
	</ul>
	<h2>
		Photo gallery viewer
	</h2>
	<ul>
		<li id="view"><a href="#" title="View full gallery"><span>View</span></a></li>
		<li id="info"><a href="#" title="Info on gallery"><span>Info</span></a></li>
		<li id="help"><a href="#" title="Help"><span>Help</span></a></li>
		<li id="rewind"><a href="#" title="Go back to beginning"><span>Rewind</span></a></li>
		<li id="back"><a href="#" title="Back"><span>Back</span></a></li>
		<li id="forward"><a href="#" title="Forward"><span>Forward</span></a></li>
		<li id="top"><a href="#" title="Top of gallery"><span>Top of Gallery</span></a></li>
		<li id="bottom"><a href="#" title="Bottom of gallery"><span>Bottom of Gallery</span></a></li>
		<li id="ok"><a href="#" title="OK - start slideshow"><span>OK - start slideshow</span></a></li>
	</ul>
</div>

CSS code

#remote-control
{
	position: relative;
	background: url(/wp-content/uploads/remote-back2.jpg) no-repeat;
	width: 224px;
	height: 507px;
}

#remote-control h2,
	#remote-control span
{
	position: absolute;
	left: -5000px;
	}

#remote-control ul
{
	margin: 0;
	padding: 0;
	list-style-type: none;
	}

#home a,
#sitemap a,
#button1 a,
#button2 a,
#button3 a,
#button4 a,
#button5 a,
#button6 a,
#button7 a,
#button8 a,
#button9 a,
#button10 a,
#button11 a,
#button12 a,
#view a,
#info a,
#help a,
#rewind a,
#back a,
#forward a,
#top a,
#bottom a,
#ok a
{
	position: absolute;
	display: block;
	}

#remote-control li#home a
{
	left: 33px;
	top: 29px;
	width: 37px;
	height: 37px;
	background: url(/wp-content/uploads/remote-home.jpg) no-repeat;
	}

#remote-control li#home a:hover
{
	background-image: url(/wp-content/uploads/remote-home.jpg);
	background-repeat: no-repeat;
	background-position: 0 -37px;
	}

#remote-control li#sitemap a
{
	left: 154px;
	top: 29px;
	width: 37px;
	height: 37px;
	background: url(/wp-content/uploads/remote-sitemap.jpg) no-repeat;
	}

#remote-control li#sitemap a:hover
{
	background-image: url(/wp-content/uploads/remote-sitemap.jpg);
	background-repeat: no-repeat;
	background-position: 0 -37px;
	}

#remote-control li#button1 a,
#remote-control li#button2 a,
#remote-control li#button3 a,
#remote-control li#button4 a,
#remote-control li#button5 a,
#remote-control li#button6 a,
#remote-control li#button7 a,
#remote-control li#button8 a,
#remote-control li#button9 a,
#remote-control li#button10 a,
#remote-control li#button11 a,
#remote-control li#button12 a
{
	width: 41px;
	height: 21px;
	background: url(/wp-content/uploads/remote-button.jpg) no-repeat;
	}

#remote-control li#button1 a
{
	left: 38px;
	top: 114px;
	}

#remote-control li#button2 a
{
	left: 91px;
	top: 114px;
	}

#remote-control li#button3 a
{
	left: 145px;
	top: 114px;
	}

#remote-control li#button4 a
{
	left: 38px;
	top: 155px;
	}

#remote-control li#button5 a
{
	left: 91px;
	top: 155px;
	}

#remote-control li#button6 a
{
	left: 145px;
	top: 155px;
	}

#remote-control li#button7 a
{
	left: 38px;
	top: 196px;
	}

#remote-control li#button8 a
{
	left: 91px;
	top: 196px;
	}

#remote-control li#button9 a
{
	left: 145px;
	top: 196px;
	}

#remote-control li#button10 a
{
	left: 38px;
	top: 237px;
	}

#remote-control li#button11 a
{
	left: 91px;
	top: 237px;
	}

#remote-control li#button12 a
{
	left: 145px;
	top: 237px;
	}

#remote-control li#button1 a:hover,
#remote-control li#button2 a:hover,
#remote-control li#button3 a:hover,
#remote-control li#button4 a:hover,
#remote-control li#button5 a:hover,
#remote-control li#button6 a:hover,
#remote-control li#button7 a:hover,
#remote-control li#button8 a:hover,
#remote-control li#button9 a:hover,
#remote-control li#button10 a:hover,
#remote-control li#button11 a:hover,
#remote-control li#button12 a:hover
{
	background-image: url(/wp-content/uploads/remote-button.jpg);
	background-repeat: no-repeat;
	background-position: 0 -21px;
	}

#remote-control li#view a
{
	width: 29px;
	height: 30px;
	left: 41px;
	top: 331px;
	background: url(/wp-content/uploads/remote-circle3.jpg) no-repeat 0 -19px;
	}

#remote-control li#info a
{
	width: 33px;
	height: 23px;
	left: 74px;
	top: 312px;
	background: url(/wp-content/uploads/remote-circle3.jpg) no-repeat -33px 0px;
}

#remote-control li#help a
{
	width: 33px;
	height: 23px;
	left: 116px;
	top: 312px;
	background: url(/wp-content/uploads/remote-circle3.jpg) no-repeat -75px 0;
}

#remote-control li#rewind a
{
	width: 29px;
	height: 30px;
	left: 154px;
	top: 332px;
	background: url(/wp-content/uploads/remote-circle3.jpg) no-repeat -113px -20px;
}

#remote-control li#back a
{
	width: 25px;
	height: 59px;
	left: 58px;
	top: 365px;
	background: url(/wp-content/uploads/remote-circle3.jpg) no-repeat -17px -53px;
}

#remote-control li#forward a
{
	width: 23px;
	height: 59px;
	left: 139px;
	top: 365px;
	background: url(/wp-content/uploads/remote-circle3.jpg) no-repeat -98px -53px;
}

#remote-control li#top a
{
	width: 62px;
	height: 23px;
	left: 80px;
	top: 342px;
	background: url(/wp-content/uploads/remote-circle3.jpg) no-repeat -39px -30px;
}

#remote-control li#bottom a
{
	width: 61px;
	height: 22px;
	left: 80px;
	top: 424px;
	background: url(/wp-content/uploads/remote-circle3.jpg) no-repeat -39px -112px;
}

#remote-control li#ok a
{
	width: 44px;
	height: 46px;
	left: 89px;
	top: 371px;
	background: url(/wp-content/uploads/remote-circle3.jpg) no-repeat -48px -59px;
}

#remote-control li#view a:hover
{
	background: url(/wp-content/uploads/remote-circle3.jpg) no-repeat 0 -157px;

}
#remote-control li#info a:hover
{
	background: url(/wp-content/uploads/remote-circle3.jpg) no-repeat -33px -138px;
}

#remote-control li#help a:hover
{
	background: url(/wp-content/uploads/remote-circle3.jpg) no-repeat -75px -138px;
}

#remote-control li#rewind a:hover
{
	background: url(/wp-content/uploads/remote-circle3.jpg) no-repeat -113px -158px;
}

#remote-control li#back a:hover
{
	background: url(/wp-content/uploads/remote-circle3.jpg) no-repeat -17px -191px;
}

#remote-control li#forward a:hover
{
	background: url(/wp-content/uploads/remote-circle3.jpg) no-repeat -98px -191px;
}

#remote-control li#top a:hover
{
	background: url(/wp-content/uploads/remote-circle3.jpg) no-repeat -39px -168px;
}

#remote-control li#bottom a:hover
{
	background: url(/wp-content/uploads/remote-circle3.jpg) no-repeat -39px -250px;
}

#remote-control li#ok a:hover
{
	background: url(/wp-content/uploads/remote-circle3.jpg) no-repeat -48px -197px;
}