Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

CSS CSS Flexbox Layout Building a Layout with Flexbox Aligning Items to the Bottom of a Column

How did you make the entire button clickable?

Unless I'm missing it, I can't find where the link display was set to block. Is there another way that the entire button (outside the text) is clickable?

2 Answers

Wrap the button tags in the anchor tags like this

<a href="#"><button>Button Text</button></a>
Rich Donnellan
Rich Donnellan
25,767 Points

Technically speaking, these are anchor tags styled to look like buttons. In the workspace associated with the video, reference line 32 in index.html:

<a class="button" href="#">Learn More</a>

The styling for the link is in base.css on line 106.