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 How to Make a Website CSS: Cascading Style Sheets Center the Wrapper

Ben Brenton
Ben Brenton
266 Points

Is a £ symbol equivalent to a # symbol when coding?

My MacBook Pro does not have # key on it (don't ask!), can I use the £ symbol for the same effect, i.e. for a div id tag? If not, do you know what symbol can be used as an equivalent, as I would prefer to use a keyboard shortcut rather than a copy/paste image.

Colin Marshall
Colin Marshall
32,861 Points

I know you said don't ask, but I must anyway. What happened to your # key??

William Li
William Li
Courses Plus Student 26,865 Points

+1 to Colin for asking the forbidden question, and I am kinda curious too.

Ben Brenton
Ben Brenton
266 Points

Never had one to begin with, the good people at Apple obviously overlooked this. Although, given the massive advantages the machine has given me over one which may have had the key, I can't complain too much!

2 Answers

rydavim
rydavim
18,780 Points

As far as I know, you will not be able to use any symbol other than # for id tags in html. Sorry!

EDIT On my keyboard Option-# gives me the £ symbol. Maybe Option-£ will give you the # symbol?

Colin Marshall
Colin Marshall
32,861 Points

Did this work Ben Brenton ? The only other solution I can think of is to get a usb/bluetooth keyboard, which is obviously not ideal.

Ben Brenton
Ben Brenton
266 Points

rydavim,

This did help, thank you very much. For anyone else who asks, alt-3 will give you a # symbol instead of £.

Ben.