question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Change the Font Size of an Element

See original GitHub issue

Challenge 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:closed
  • Created 7 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
Manish-Giricommented, Nov 28, 2016

@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!

0reactions
erictleungcommented, Nov 28, 2016

@axiomteck sounds like your issue is resolved. I’ll be closing the issue as it appears resolved. Happy coding, all!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found