how do I position the card to the far right? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

how do I position the card to the far right?

https://code.sololearn.com/WDf0KiEOvKQ5 the card floating in the middle of the top of the page i want to be on the right side. It had some code: <div class="pt-5 col-2"> on it on other html pages, but when I made the center part of the page with regular html and not bootstrap, this card wont go where its supposed to! I even tried defining it and giving it directions in css but nothing changesd... how do i fix this?? PLS HELP !! Also, how do I change the color of the card header tab to a # color? thankyou so much in advance !!!!

16th May 2022, 10:13 PM
Maria Milner
6 Answers
+ 3
hey, try setting the position of the container to relative and set its position, and set the position of the text within to absolute so it cannot overflow its container to change to a # color, just pick a hexadecimal color of your choice and style
16th May 2022, 11:45 PM
Mikeey
Mikeey - avatar
+ 1
Thankyou Michael!! that finally worked! =)
16th May 2022, 11:53 PM
Maria Milner
+ 1
yes but how do i do that, i have tried in css and in the html where the header is =( edit; did it!!! thanks
17th May 2022, 12:08 AM
Maria Milner
0
I think you should use the align=right attribute
16th May 2022, 10:25 PM
Abraham Oguche
Abraham Oguche - avatar
0
i still dont know where to change the color of it though...
16th May 2022, 11:55 PM
Maria Milner
0
pick a hexadecimal color and set it as the color of the card header
16th May 2022, 11:59 PM
Mikeey
Mikeey - avatar