Moving an UL to the right of a page

So my website looks like this right now (I know it’s stupid, it’s just for practice):

I want to move the ‘Related’ menu in the top right corner so that the items all run down the page vertically. The items should be next to the main article text (the two cyan boxes) with no overlapping text.

I tried a lot of different things to get this right but nothing’s worked. My HTML is below. If anyone can help that would be great.

<!DOCTYPE html>
<html style="background-color:rgb(0, 43, 54);", style="max-width: 800px">
    <meta charset="utf-8">

    <title>My page title</title>
    <link href="stylingsheet.css" rel="stylesheet" type="text/css">


    <aside id="aside_menu">
        <ul class="navigation_links1">
          <li><a href="">Oh I do like to be beside the seaside</a></li>
          <li><a href="">Oh I do like to be beside the sea</a></li>
          <li><a href="">Although in the North of England</a></li>
          <li><a href="#">It never stops raining</a></li>
          <li><a href="">Oh well...</a></li>

    <header id="header_colour_font">
      <h1 class="header_footer_background_colour">Header</h1>
      <ul class="navigation_links2">
        <li><a href="">Home</a></li>
        <li><a href="">Our team</a></li>
        <li><a href="">Projects</a></li>
        <li><a href="">Contact</a></li>

       <!-- A Search form is another common non-linear way to navigate through a website. -->

         <input type="search" name="q" placeholder="Search query">
         <input type="submit" value∫="Go!">



      <!-- It contains an article -->

        <div id="text_colour"> 
        <h2 class="headings_group">Article heading</h2>

        <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Donec a diam lectus. Set sit amet ipsum mauris. Maecenas congue ligula as quam viverra nec consectetur ant hendrerit. Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur.</p>

<div id="box1">
        <h3 class="headings_group">Subsection</h3>

        <p>Donec ut librero sed accu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aenean ut gravida lorem. Ut turpis felis, pulvinar a semper sed, adipiscing id dolor.</p>

        <p>Pelientesque auctor nisi id magna consequat sagittis. Curabitur dapibus, enim sit amet elit pharetra tincidunt feugiat nist imperdiet. Ut convallis libero in urna ultrices accumsan. Donec sed odio eros.</p>

      <div id="box2">
        <h3 class="headings_group">Another subsection</h3>

        <p lang="la">Donec viverra mi quis quam pulvinar at malesuada arcu rhoncus. Cum soclis natoque penatibus et manis dis parturient montes, nascetur ridiculus mus. In rutrum accumsan ultricies. Mauris vitae nisi at sem facilisis semper ac in est.</p>

        <p lang="la">Vivamus fermentum semper porta. Nunc diam velit, adipscing ut tristique vitae sagittis vel odio. Maecenas convallis ullamcorper ultricied. Curabitur ornare, ligula semper consectetur sagittis, nisi diam iaculis velit, is fringille sem nunc vet mi.</p>



<div class="header_footer_background_colour">
    <footer id="text_colour">
      <p>©Copyright 2050 by nobody. All rights reversed.</p>


My suggestion would to be to use CodePen or something similar to that.

Here’s some that I did awhile back →

It uses grids useful if you want to change things around and I think it might also use flex. Anyways, feel free to fork it or create your own. I use CodePen when I am coming up with a new website as it is kind of my mockup of it. Just a suggestion and my opinion.

1 Like

Hi @williamfranklinus — As @Pepster64, it would be good to provide a link to some working code. this is a CSS issue, and you haven’t really posted any, so it’s hard to help with this. :slight_smile:

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.