I am trying to create a webpage using html and css and I want to have some elements in the right side of the page, right below the main menu bar. They are intented to be images with links to commercials, useful sites etc. The css part is that one:
.gen_image
{
width:150px;
margin-bottom:40px;
border:2px solid orange;
margin-left:1250px;
}
The html part is that:
<a href="https://twitter.com/eudoxusgr" target="_blank"><img src="Twitter.png" class="gen_image"></a>
<a href="https://eclass.uoa.gr/" target="_blank"><img src="open_eclass_banner.png" class="gen_image"></a>
<a href="https://www.uoa.gr/" target="_blank"><img src="uoa_logo_gr.svg" class="gen_image"></a>
While they are put correctly in the right side of the page, when I try to add some elements in the center of the page they go down. How can I keep them in the same height at the right side of the page? I tried using float:right; but didn't worked for me because the images where put the one next to the others and I also tried adding position:relative; witch didn't prevent from going down when I add elements in the center.