Results 1 to 2 of 2

Thread: Linking a CSS external sheet to a HTML pageI am trying to test my web design skills b

  1. #1
    Join Date
    Dec 2010
    Posts
    31

    Linking a CSS external sheet to a HTML pageI am trying to test my web design skills b

    Is there some sort of code to link the two?
    Do I have to do something different in a text editor to make the pages link?
    Do I have to position the CSS file somewhere different in the site folder?

    Cheers

  2. #2
    Join Date
    Dec 2010
    Location
    South Florida
    Posts
    33
    to link an external stylesheet you have to write the following in the head of the html page:
    <link rel="stylesheet" type="text/css" href="style.css" />

    the filename in href="" is the name of your css-file. when you have it in another folder than the html-file, then you have to give the relative path. for example href="css/style.css".

    or when you have for example you html-file in a folder called "html" and you css-file in a folder called "css" then you must write href="../css/style.css".

Similar Threads

  1. Swapping your Web Design Skills.
    By OddJobSwap in forum Web Design, HTML Reference and CSS
    Replies: 0
    Last Post: 17 Dec 2009, 07:27 AM
  2. Web programer with some design skills needed.
    By PlanIt Products in forum Freelancing
    Replies: 0
    Last Post: 02 Feb 2008, 07:15 AM
  3. XL spread sheet to html web page
    By numbenator in forum Web Design, HTML Reference and CSS
    Replies: 0
    Last Post: 05 Jul 2005, 10:13 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •