ฉันรู้ว่านี่เป็นคำถามที่ค่อนข้างง่าย แต่ฉันคิดไม่ออกสำหรับชีวิตของฉัน ฉันมีลิงค์สองลิงค์ที่ใช้กับภาพพื้นหลัง นี่คือสิ่งที่ดูเหมือนในปัจจุบัน (ขออภัยสำหรับเงาเป็นเพียงภาพร่างคร่าวๆของปุ่ม):

อย่างไรก็ตามฉันต้องการให้ทั้งสองปุ่มอยู่เคียงข้างกัน ฉันคิดไม่ออกจริงๆว่าจะต้องทำอะไรกับการจัดตำแหน่ง
นี่คือ HTML
<div id="dB"}>
    <a href="http://notareallink.com" title="Download" id="buyButton">Download</a> 
</div>
<div id="gB">
    <a href="#" title="Gallery" onclick="$j('#galleryDiv').toggle('slow');return false;" id="galleryButton">Gallery</a>     
</div>
นี่คือ CSS
#buyButton {
    background: url("assets/buy.png") 0 0 no-repeat;
    display:block;
    height:80px;
    width:232px;
     text-indent:-9999px;
}
#buyButton:hover{
width: 232px;
height: 80px;
background-position: -232px 0;
}
#buyButton:active {
width: 232px;
height: 80px;
background-position: -464px 0;
}
#galleryButton {
    background: url("images/galleryButton.png") 0 0 no-repeat;
    display:block;
    height:80px;
    width:230px;
     text-indent:-9999px;
}
#galleryButton:hover{
width: 230px;
height: 80px;
background-position: -230px 0;
}
#galleryButton:active {
width: 230px;
height: 80px;
background-position: -460px 0;
}
          float:left;ทั้งสองอย่างdivทำได้อย่างสมบูรณ์แบบ คุณสามารถโพสต์ความคิดเห็นของคุณเป็นคำตอบได้หรือไม่? ขอบคุณ!
                display: inline-block;แต่ได้รับการสนับสนุนน้อยกว่า ...
                





float:left;