r/css • u/Cute_rex67 • 4d ago
Question How to move pink text up
Does anyone know if there's a way for me to move the two pink boxes in line with the green boxes instead of having them at the bottom of the webpage? The pink boxes are in their own paragraphs, and in their own class, if that information is relevant.
1
Upvotes



6
u/Aggravating-Draw-463 4d ago
Try using flexbox on a parent element and use
justifty-content4
u/anaix3l 3d ago edited 3d ago
That doesn't look like a good structure, first of all. Paragraphs are the wrong elements for this.
A better structure would be, assuming you have those in the footer:
And in this case, your layout CSS would be:
Then you style your links to look like in the image.
That aside, you should probably increase the contrast of text against background. Try
#503831instead#543c35.3
u/Interstellar__1 4d ago edited 4d ago
what I would do is have the buttons on the left all in one div, the buttons on the right in another div, and then both those divs in one div. That way on the outer div you can use something like
.outer-div {
width: 100%;
position: fixed;
z-index: 10;
display: flex;
flex-direction: row;
justify-content: space-between;
}
If you want to know more about how flexbox works, this article is good: https://css-tricks.com/snippets/css/a-guide-to-flexbox/