Demo:
Here is the code I've been working on:
<style type="text/css">
#home
{
display: block;
width: 40px;
height: 38px;
background: url("bar1.png") no-repeat 0 0;
}
#home:hover
{
background-position: 0 -38px;
}
#myplaces
{
display: block;
width: 123px;
height: 38px;
background: url("bar2.png") no-repeat 0 0;
}
#myplaces:hover
{
background-position: 0 -38px;
}
</style>
</head>
<body>
<a id="home" href="#" title="Home"></a>
<a id="myplaces" href="#" title="My Places"></a>
</body>
I'm having trouble fitting them onto the same line. My CSS skills are still developing and I haven't found a solution through online searches. Any assistance would be greatly appreciated!