Normally this wouldn’t be an issue however I seem to be overlooking something.
I would like to align the images horizontally but they align vertically.
As you can see the divs are links which works fine except for the vertical alignment.
Any suggestions on how to get the images to line up next to one another?
Code:
<div id="mylinks">
<h1>More Links</h1>
<h2>Some Of My Links</h2>
<div class="link1"><a href="http://www.mysite1.com" title="Site1" accesskey="d"></a></div>
<div class="link2"><a href="http://www.mysite2.com/site2.htm" title="Site2" accesskey="r"></a></div>
<div class="link3"><a href="http://www.mysite3.com/site3.htm" title="Site3" accesskey="m"></a></div>
</div>
CSS
Code:
#mylinks {
display: block;
width: 100%;
border: none;
margin: 0 auto;
}
.link1 {
background: url(../images/site1.jpg) no-repeat;
margin-top: 25px;
margin-left: 0px;
width: 190px;
height: 61px;
}
.link1 a {
display:block;
width:100%;
height:100%;
font-size:0;
}
* html #link1 a {
display: inline;
display: block;
}
.link2 {
background:url(../images/site2.jpg) no-repeat;
margin-top: 0px;
margin-left:0px;
width: 190px;
height: 61px;
}
.link2 a {
display:block;
width:100%;
height:100%;
font-size:0;
}
* html #link2 a {
display: inline;
display: block;
}
.link3 {
background:url(../images/site3.jpg) no-repeat;
margin-top: 0px;
margin-left:0px;
width: 190px;
height: 61px;
}
.link3 a {
display:block;
height:61px;
width:100%;
font-size:0;
}
* html #link3 a {
display: inline;
display: block;
}