I am new to this and would really appreciate some guidance. I am trying to position my images in a div using css. I have used the inline element and it still appears underneath the image. Here is my code for my ui buttons:
#UIButtons {
position:fixed;
top: 50%;
left: 40%;
width:45em; /* this is correct and displays how I want it to*/
height:18em;
margin-top: -9em;
margin-left: -15em;
background: url(backtabss.png);
}
#UIButtons ul{ /* this has set the height ok*/
position:relative;
top: 9%;
right: 50%;
width:45em;
}
#UIButtons li {/*not sure what this is doing to be honest*/
position:relative;
top: 70%;
left: 45%;
display: inline; /* this is not working my images are appearing vertical*/
padding: 40px;
}
I have commented the code to let you know whats happening. The HTML is:
<div id="UIButtons">
<ul>
<li><a href="tutorials.html"><img src="beginBUT.png" alt="Click to start Tutorials" title=" Click this button to start Tutorials" width="300" height="250"/></a></li>
<li><a href="sChords.html"><img src="beginCHO.png" alt= "Click to view Chord Sheet" title=" Click this button to view Chord Sheet" width="300" height="250"/></a></li>
</ul>
</div>
Thank you for time. I have looked at other suggests on here but none are helping me, in fact its confusing me more!