So I’m trying to create something similar to the attached image:
Basically I have an unordered list of links and I want it to run down the right side of the page to the right of the article main text. Float:right moves it to the right side of the page on the bottom but not next to the main article text. Absolute aligns it to the top but then the text overlaps with the main article. Basically, I want the menu on the right running down the page with no overlapping text.
2
Answers
just use inline-block or use flexbox
Put the left and right side contents into 2 different containers and then put those 2 containers into a single container and give the
display
of this parent container toflex
. It will do it.And you can also add
align-items: flex-start
to verticallly align them at thetop
. Like this: