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 CSS Basics (2014) Basic Layout Clearing Floats

Harry Woodford
Harry Woodford
1,865 Points

fonts family not changing

in my css i've given my <span> text a font family and color. it adapts to the color I've given it but it seems to use the font that the body{} contains

Harry Woodford
Harry Woodford
1,865 Points

<span>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. </span>

================================ @import url(http://fonts.googleapis.com/css?family=Poiret+One|Comfortaa); body{ font-family: "Poiret+One", "Comfortaa", Arial, Verdana;

}

.span{ font-family: verdana; font-size: 1em; color:white; }

3 Answers

Harry Woodford
Harry Woodford
1,865 Points

May have worked it out... I'm treating the span like it was a class when its a tag

Hey Harry,

Would you mind posing your code?

Harry Woodford
Harry Woodford
1,865 Points

solved it... my god what a dumb mistake. I treated the span as a class when its a tag element.... cool. thanks

Erik McClintock
Erik McClintock
45,783 Points

Harry,

If you post your CSS, we will be able to better help you.

Something else to think about, as well: are you using special fonts that need to be included with @font-face rules or with special link tags in your HTML head? Are you using fonts that you need to link a path to locally within the site itself, and perhaps the path is broken or the fonts aren't there?

Erik

Harry Woodford
Harry Woodford
1,865 Points

problem solved... thanks :)