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 trialBenjamin Wornell
10,458 PointsUsing id with # does not work in Safari (7.1) but does in Firefox (32.0.3). Is there alternative syntax for Safari?
Used the same code shown in video:
html used id="wrapper" in div element
css code is #wrapper { [formatting stuff here]
}
The exact same code doesn't work in Safari, but does in Firefox.
2 Answers
Kris Phelps
7,609 PointsA common reason that CSS doesn't work when you make changes is because of browser caching. In Safari, press: CMD + SHIFT + R
Jonathan Grieve
Treehouse Moderator 91,253 PointsI'm not sure I understand your question. But I can't think of a single browser that wouldn't support CSS ID selectors or the id attribute.
For clarity you don't need to use the # when you're declaring a HTML ID but it goes in your CSS declaration. :-)
Benjamin Wornell
10,458 PointsBenjamin Wornell
10,458 PointsThanks, I think this was it. Left the machine for a while and it worked when I came back even though I made no changes.