can someone please tell me how can I fix the text on the picture? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

can someone please tell me how can I fix the text on the picture?

Can someone please tell me how to get and. fix the text inside the picture? later i will try to position myself inside picture but idk how to get text on the picture and how to put the pictures horizontaly next to each other so that they are nexxt to each other and not only to margin-left/right with this code it looks how i want with text on picture but i dont think this is a good practice : .choice p { color:white; font-weight: bold; font-size: 20px; padding:0px; /*++++*/ position: relative; top:-150px and this is not good because for other item i will need to change this -150px because it will look different with different text. https://code.sololearn.com/Wa21A5A189a1

24th Jan 2021, 12:17 PM
kaspars kaspars
kaspars kaspars - avatar
10 Answers
+ 4
Abhay please check code below to see if the crashing has stop. https://code.sololearn.com/W0a21A116a10/?ref=app
24th Jan 2021, 12:46 PM
ODLNT
ODLNT - avatar
+ 3
Everytime I run your code, sololearn crashes It Also crashes when I navigate to css section.
24th Jan 2021, 12:34 PM
Abhay
Abhay - avatar
+ 3
kaspars kaspars please add a comment to js panel. Any comment will do. I ask because when your code is ran on the sl app it crashes. Adding a comment to the js panel(website) will stop the code from crashing the app.
24th Jan 2021, 1:44 PM
ODLNT
ODLNT - avatar
+ 2
ODLNT that works fine, ty!
24th Jan 2021, 12:48 PM
Abhay
Abhay - avatar
+ 1
I also cant get smaller padding: for the text, i use .choice p { padding: } i can get only bigger padding and cannot get smaller..
24th Jan 2021, 1:01 PM
kaspars kaspars
kaspars kaspars - avatar
24th Jan 2021, 4:06 PM
Abhay
Abhay - avatar
+ 1
Get the tag/Id name of the text and make the position absolute while making the position of the image relative
24th Jan 2021, 4:31 PM
Olajide Ademola
Olajide Ademola - avatar
0
So I almost fixed it but no now the text is fckt up and the three pictures is not side toside in full screen. https://code.sololearn.com/Wa21A5A189a1 But still icant make smaller padding for text and the text goes over the picture for middle picture!
24th Jan 2021, 1:30 PM
kaspars kaspars
kaspars kaspars - avatar
0
when i. do like olajide admola. text is words on each other. is skill to make page like this enaugh to get a job as html css and javascript programmer?
24th Jan 2021, 8:28 PM
kaspars kaspars
kaspars kaspars - avatar
0
Hi I did some edits. Let me know what you think. https://code.sololearn.com/WukF4kIoStMX/?ref=app
25th Jan 2021, 4:10 PM
Chris Coder
Chris Coder - avatar