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

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,868 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,814 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.