Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript JavaScript Basics (Retired) Storing and Tracking Information with Variables The Variable Challenge

How do I enlarge the text that is displayed?

I would like to enlarge the story text to paragraph or h3 size, I do not know how to so. Please help. Here is a snapshot of my work:

https://w.trhou.se/ho5zc288rn

alert("Wanna make a story? Follow the instructions"); change it into this var heading = 'Wanna make a story? Follow the instructions'; var headingBig = heading.fontsize(7); alert(headingBig);

5 Answers

I mean how do I enlarge the text that is displayed with the document.write command?

Antonio De Rose
Antonio De Rose
20,885 Points

whilst you are in the screen you want to increase, try CTRL+

David Esparza
David Esparza
1,723 Points

The way to enlarge the text is by going to css stylesheet "main.css". Since your javascript is in the <div> class named ".container" you can change font-size.

Antonio De Rose
Antonio De Rose
20,885 Points

sorry did not understand your question.

is this what you want to do <h3>The Story Maker</h3> <p>The Story Maker</p>

Rod R
Rod R
3,050 Points

I went to the css file (main.css) and changed the 'font-size' setting on line 13 from 100% to 150%. saved, reloaded the preview. It enlarged the overall display.