3 replies
  • WEB DESIGN
  • |
I can't get my webpage to look ok after after endless attempts to put css coding in an external text file and my page will just end up all messed up! Instructions I found tell me to put css coded lines in a notepad and to save it as a .css file and then point to it as per this example below

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

Where do I stick this line in my source? My web page is in my signature below and what css lines must be transferred to the notepad? Any help would be appreciated...
#css #external #file
  • Profile picture of the author Brandon Tanner
    Originally Posted by alcymart View Post


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

    Where do I stick this line in my source?
    That line goes in the 'Head' section of your source.

    Then you would copy everything between the <style type="text/css"> tag and the </style> tag into mystyles.css (but not the opening and closing tags themselves).

    BTW, you should have warned me to put on my sunglasses before viewing your headline, lol.
    Signature

    {{ DiscussionBoard.errors[2953839].message }}
    • Profile picture of the author QuinNguyen
      Originally Posted by Brandon Tanner View Post

      That line goes in the 'Head' section of your source.

      Then you would copy everything between the <style type="text/css"> tag and the </style> tag into mystyles.css (but not the opening and closing tags themselves).

      BTW, you should have warned me to put on my sunglasses before viewing your headline, lol.
      Also make sure your css file is in the same directory as your index file
      {{ DiscussionBoard.errors[2953849].message }}
    • Profile picture of the author alcymart
      Originally Posted by Brandon Tanner View Post

      That line goes in the 'Head' section of your source.

      Then you would copy everything between the <style type="text/css"> tag and the </style> tag into mystyles.css (but not the opening and closing tags themselves).

      BTW, you should have warned me to put on my sunglasses before viewing your headline, lol.
      Thanks a million Brandon, it worked!
      {{ DiscussionBoard.errors[2956094].message }}

Trending Topics