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

Daniel Wigmore-Shepherd
Daniel Wigmore-Shepherd
1,308 Points

Having problem with CSS internal styling

I am on the final video of the first stage of the CSS deep dive but my page doesnt seem to be rendering the code properly. I wrote the code from the video, word for word, into a wordpad doc but saved it as a html file. however this internal styling code:

<html lang="en"> <head>
<title>Adding CSS</title> <style type = "text/css"> h1{ color: white; background-color: #E14607; } </style> </head>

Does not seem to be effective. Also this line "{\rtf1\ansi\ansicpg1252\deff0\deflang2057{\fonttbl{\f0\fswiss\fcharset0 Arial;}} {*\generator Msftedit 5.41.21.2509;}\viewkind4\uc1\pard\f0\fs20 \par \par \par \par \par \par \par \par \par" appears at the top of the page and "\par" appears all over the page where the <p> tags are. Can anyone help?

1 Answer

Daniel Wigmore-Shepherd
Daniel Wigmore-Shepherd
1,308 Points

It works when I do it in notepad. Hmmmm, is there a better text editor that is compatible? Notepad is horrible.

James Barnett
James Barnett
39,199 Points

Wordpad isn't a text editor it's a word processor that's not what you want.

Notepad will work in a pinch however, your life will be much easier if you use a text editor meant for coding, notepadd++ is a one of the best on Windows.