I just started CSS. I can't seem to get it to work though

admin

Administrator
Staff member
I just started. Okay, so I made my CSS code:

<STYLE TYPE="text/css">
<!--

BODY {background: #000000}
H1 {font-size: 12pt; font-style: none; font-family: verdana; color: white}

-->
</STYLE>

then on this test site just to see if it works.

<HTML>
<LINK REL=stylesheet HREF=http://www.webdeveloper.com/forum/archive/index.php/"http://gunzmansion.atspace/css.css" TYPE="text/css">
HI
<H1>fdfdfdafdasf</H>
fdsfdasfs
</HTML>

Nothing seems to appear affected.

Help please?http://gunzmansion.atspace/css.css ???

You need a .com, .net, .org, .something -- its not a valid link for starters... also you really only need to give the name of the file, not the WHOLE link... So just "css.css"The best thing to do is start out with valid HTML (<!-- m --><a class="postlink" href="http://validator.w3.org/">http://validator.w3.org/</a><!-- m -->). Head to W3Schools.com (<!-- m --><a class="postlink" href="http://www.w3schools.com/">http://www.w3schools.com/</a><!-- m -->) for the basics on HTML and CSS. I think you'll really like that site. Once you're comfortable with the basics, head to A List Apart (<!-- m --><a class="postlink" href="http://www.alistapart.com/">http://www.alistapart.com/</a><!-- m -->) to see working design methods. It never hurts to visit Position Is Everything (<!-- m --><a class="postlink" href="http://www.positioniseverything.net/">http://www.positioniseverything.net/</a><!-- m -->) when you come across an Internet Explorer CSS rendering bug (and you will).Also, don't have any html in your css file, and look at your closing h1 tag.Thanks. What an embarassing problem. :\ All I needed was dot com... :(
 
Back
Top