Results 1 to 7 of 7

Thread: stylesheets

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Sep 1999
    Location
    London, England
    Posts
    213
    I have never used stylesheets before.

    I am using the following style. How can I reference this in a style sheet so that I do not have to keep retyping it when I need to use it ?

    <style rollover>
    A:link {color: #003E71; text-decoration: none}
    A:visited {color: #003E71; text-decoration: none}
    A:hover {color: RED; text-decoration: none}
    </style>

  2. #2
    Frenzied Member
    Join Date
    Aug 2000
    Posts
    1,539

    use include

    Put that code in a file called mystyles.css
    and put:
    <!--#INCLUDE FILE="mystyles.css" -->
    on top of your pages...

  3. #3
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    Another solution is to create your css document and add a meta tag:

    <link REL=""STYLESHEET"" TYPE=""text/css"" HREF=""mystylesheet.css"">"

    just add this line to all your pages instead of the style tags...

    BTW- do not include the <STYLE> tags in a stylesheet..
    oOOo--oOOo
    __/\/\onte96
    oOOo--oOOo
    Senior Programmer/Analyst
    MCP
    monte96_@hotmail.com
    monte96@vbgarage.com


    Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..

  4. #4
    Guest
    sorry to butt in guys, but which of the above is the most efficient way to apply the stylesheet to your document? Im having trouble applying a stylesheet to a frame in my frameset, when its already been applied successfully in another frame in the same set. i think my problem is with linking or including it. please help.

  5. #5
    Guru Clunietp's Avatar
    Join Date
    Oct 1999
    Location
    USA
    Posts
    1,844
    Behemoth

    Make sure you include the style sheet reference in EACH page, use the method that Monte96 suggested

  6. #6
    Guest

    I'm not normally stupid, but...

    im working on one page at a time at the mo. the stylesheet works in the page at the bottom of the frame, but the one im trying to fix (on the left of the frameset) doesnt respond. the best ive got is by applying the stylesheet in dreamweaver. The WYSIWYG window show the stylesheet applied properly, but when i view it in the browser it doesnt work.

    Ive tried copying the code from the other frame, (which is the same as monte69's method), and I've tried rewriting the head content of my document (with a little help from the O'Reilly CSS book), and still nothing.

    Ta.

  7. #7
    Guest
    Ive fixed it now, thanks everybody. The problem was with dreamweavers linking. Ive got broken links everywhere now, so theres a lot of cleaning up to do. I was doing it right all along (bloody macromedia! *@!$)

Posting Permissions

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



Click Here to Expand Forum to Full Width