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 comment
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 comment
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 comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.