Need help in CSS | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Need help in CSS

How should I add css on the #text that is not inside the html tag

30th May 2022, 12:49 PM
dinorex. asia
10 Answers
+ 1
Please link an example code. Usually every tag should go inside of the html tag and most go even on the body tag.
30th May 2022, 12:59 PM
Lisa
Lisa - avatar
+ 1
The "of" and "raised" is out of the tag
30th May 2022, 1:12 PM
dinorex. asia
+ 1
Simply style the container...
30th May 2022, 1:13 PM
Lisa
Lisa - avatar
0
<div class="container" > <span class="income" data-amount="{"
quot;:" 0"}">$0</span> " of " == <span class=" goal-text" data-amount="{"
quot;:1000}">$1000</span> " raised" </div>
30th May 2022, 1:11 PM
dinorex. asia
0
But I just wan to change the text colour on "of" and " raised" only
30th May 2022, 1:15 PM
dinorex. asia
0
Then it would be helpful to give a working example? You can link your code like this: Go to Code section, click +, select the programming language, insert your code, save. Come back to this thread, click +, Insert Code, sort for My Code Bits, select your code. You could use an own class for "of" and "raise" by putting them in own span-tags. Or just put it all in a subcontainer with an own class
30th May 2022, 1:19 PM
Lisa
Lisa - avatar
0
Okayyy
30th May 2022, 1:38 PM
dinorex. asia
0
I think I have solved the issue just style the container like what you have mentioned
31st May 2022, 2:06 AM
dinorex. asia
0
Thanks Lisa
31st May 2022, 2:06 AM
dinorex. asia
- 1
You can use external css Or internal Internal can be use your head tag <style> </styel> External Can be used Another CSS file like style. css <LINK src="style.css" >
1st Jun 2022, 5:57 AM
Ashiqur Rahman
Ashiqur Rahman - avatar