Jump to content

CSS file not incorporating into HTML page


AmyT

Recommended Posts

I'm on my first CD of the Beg Web Design course. I've successfully set up my HMTL page (index.html per CD instructions). Now my CSS page (root.css) is not "taking." Both were created as "new text doc" as instructed and both are on the same (base) directory level. I've upgraded to Internet 8 from 7 but still nothing. Any suggestions anyone?

Link to comment
Share on other sites

The link in the head section should be

<link rel="stylesheet" type="text/css" media="screen" href="root.css" />

 

Sometimes when you save a file from a text editor it gets saved with a .txt extension like root.css.txt so check in your file manager and delete the .txt extension if it's been automatically added on.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.

Loading...
×
×
  • Create New...