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

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.