Change the Font Size of an Element
See original GitHub issueChallenge Change the Font Size of an Element has an issue.
User Agent is: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.99 Safari/537.36
.
Please describe how to reproduce this issue, and include links to screenshots if possible.
My code:
<style>
.p {
font-size: 16px;
}
.red-text {
color: red;
}
</style>
<h2 class="red-text">CatPhotoApp</h2>
<p class="red-text">Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
<p>kitty ipsum text Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
font-size - CSS: Cascading Style Sheets - MDN Web Docs
The font-size CSS property sets the size of the font. Changing the font size also updates the sizes of the font size-relative <length>...
Read more >Changing the Font Size of an Element
Hello,. I am not able to get past this section. Can anyone assist? Here is my code: <style> .red-text { color: red; p...
Read more >How to change font size in HTML? - Tutorialspoint
To change the font size in HTML, use the style attribute. The style attribute specifies an inline style for an element.
Read more >How to Change Font Size in CSS - HubSpot Blog
Learn how to change the size of different elements on your web page using the font-size property in CSS.
Read more >HTML DOM Style fontSize Property - W3Schools
Set the font size of an element to "x-large": · ("demo").style.fontSize = "x-large"; ; A demonstration of possible values: var listValue = selectTag.options[ ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@axiomteck Your code is incorrect.
p
elements are HTML elements, so they don’t need the.
in CSS, which are required for classes.Please visit the Help Room first for help with issues like these, in future. Happy Coding!
@axiomteck sounds like your issue is resolved. I’ll be closing the issue as it appears resolved. Happy coding, all!