This is the page I want to design. I am giving you a picture of what I want:
So I wrote the following code. I put the links in one div element and the list in another div element so that they are like block elements and are positioned one over another.
However, The list section seems to start from the same place as that of the links section. I put the two different background colors for each one for you to see that. The design is like messed up and I can't figure out what is wrong here.Clearly div element is not doing its job I suppose. How can I position the links section over the list section and what is wrong with my code ?
I have another question. I used border-radius to contain individual links and to make them circular. In my PC, they work fine. But when I resize the browser window, they become like capsule shaped. What should I do to make them appear circular at all time.
Sorry for the long question..
#links{
position:relative;
margin:10px 0px 0px 0px;
width:100%;
left:9%;
background-color:blue;
}
a.separate_link{
float:left;
width:10%;
height:20%;
padding: 0px;
border-radius: 100px;
margin:0px 10px 0px 10px;
background-color:#ffffff;
text-decoration:none;
text-align:center;
text-bottom:20px;
color:#000000;
font-size:50%;
}
div.gen_info{
background-color:yellow;
padding:12px;
color:#5E6063
}
<div id="links">
<a href="#" id="link1"class="separate_link"><p>General Information</p></a>
<a href="#" id="link2"class="separate_link"><p>Officials</p></a>
<a href="#" id="link3"class="separate_link"><p>Achievements</p></a>
</div>
<div class="gen_info">
<div id="listofgeninfo">
<ul>
<li><a href="index.html#finli">History</a></li>
<li><a href="index.html#finhistory">About</a></li>
<li><a href="index.html#finmarh">Information</a></li>
<li><a href="index.html#finhi">Location</a></li>
</ul>
</div>