Jump to content

external .css not showing up


Earthkanu

Recommended Posts

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>

<head>

<style type="text/css">

body {

color: purple;

background-color: #d8da3d }

</style>

<center>

I hope I'm doing this right

<link rel="stylesheet" href"main header.css" type "text/css" />

<title>

Module 5 assignment

</title>

<style type="text/css">

</style>

</head>

<body>

<font size="+2" face="Times"color="red">

<CENTER>

This is the toughest project we've done so far

</CENTER>

</font>

<font size="+3" face="Comic Sans MS"color="green">

<CENTER>

This is the toughest project we've done so far

</CENTER>

</font>

<LINK REL=StyleSheet HREF="body1.css" TYPE="text/css" MEDIA=screen>

<p class="right">

Some people are about to be run over. Frankie has about 5 seconds. Some people are very

tall and merciless. Quincy is destroying San Antonio. Some people wears glasses. Beth

looks like a dude. Some people are squirrel-handed. Gregor is a weird name. Some people

have braces. Some people have headgear. Fran could play linebacker for the Raiders. Some

people have rigged the enemy base with explosives. Albert has. Some people have a Southern

accent, and those are hot. Trisha is a severe hottie. Some people are being fangoriously

devoured by a gelatinous monster. Hillary's legs are being digested. Everyone is different.

No two people are not on fire.

</p>

 

 

The content of the .css is:

 

.one {border-top: thick dotted black;

border-right: thick solid blue;

border-bottom: thick groove red;

border-left; thick double #000; }

 

 

What am I doing wrong?

Link to post
Share on other sites

change

<link rel="stylesheet" href"main header.css" type "text/css" />

 

to

 

<link rel="stylesheet" href="main header.css" type="text/css" />

 

 

change

<LINK REL=StyleSheet HREF="body1.css" TYPE="text/css" MEDIA=screen>

 

to

 

<link rel="stylesheet" HREF="body1.css" type="text/css" media="screen">

Link to post
Share on other sites

You are missing a closing head tag, and you have link tags all over the place when they should only be in the head.

 

You should take the time to learn the basics of HTML before trying to do anything else. That coding is atrocious. And I normally don't say that to people. But the point here is that if you had done lesson one of any HTML lessons, you would see the errors you have there. Go and take even two hours and do some online HTML tutorials, starting at lesson one. That will solve some of your problems.

Link to post
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.