Results 1 to 8 of 8

Thread: [RESOLVED] css trouble

  1. #1

    Thread Starter
    Hyperactive Member ninjanutz's Avatar
    Join Date
    Jun 2005
    Location
    Bayside
    Posts
    256

    Resolved [RESOLVED] css trouble

    im having trouble importing an external style sheet. i dunno wats wrong. i saved the text document as a text with the .css extension and i made the <link rel='stylesheet' type='text/css' href='text.css'> link to it in the document for the site but wen i go to the site it doesnt work. could someone help me out?

  2. #2
    Frenzied Member DeadEyes's Avatar
    Join Date
    Jul 2002
    Posts
    1,196

    Re: css trouble

    this is what I use:
    <link rel="stylesheet" type="text/css" media="screen" href="/stylesheets/default.css">

    where the css is stored in a stylesheets subdirectory of root

  3. #3

    Thread Starter
    Hyperactive Member ninjanutz's Avatar
    Join Date
    Jun 2005
    Location
    Bayside
    Posts
    256

    Re: css trouble

    still doesnt work and i cant figure out why

  4. #4

    Thread Starter
    Hyperactive Member ninjanutz's Avatar
    Join Date
    Jun 2005
    Location
    Bayside
    Posts
    256

    Re: css trouble

    ok i fixed the problem by taking an existing style sheet and copying it and changing the contents but it seems even wen i add the .css extension it still maintains the .txt does anyone know why this is?

  5. #5
    Frenzied Member DeadEyes's Avatar
    Join Date
    Jul 2002
    Posts
    1,196

    Re: css trouble

    How are you changing the extension?
    In windows if you don't have extensions set to display and you right click to rename: test.css what you'll actually get is test.css.txt.
    Open thefile in notepad and do a Save As "test.css" <include the quotes>

  6. #6
    PowerPoster Pc_Madness's Avatar
    Join Date
    Dec 2001
    Location
    Melbourne, Australia
    Posts
    2,765

    Re: css trouble

    If your ending up with styles.css.txt and your using Windows, open up a Windows Explorer Window, Tools -> Folder Options -> View Tab -> Untick Hide Extensions for known file types.
    Don't Rate my posts.

  7. #7

    Thread Starter
    Hyperactive Member ninjanutz's Avatar
    Join Date
    Jun 2005
    Location
    Bayside
    Posts
    256

    Re: css trouble

    thanks but my friend made a batch file for me that converts it

  8. #8
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: css trouble

    Quote Originally Posted by Pc_Madness
    If your ending up with styles.css.txt and your using Windows, open up a Windows Explorer Window, Tools -> Folder Options -> View Tab -> Untick Hide Extensions for known file types.
    That doesn't help.... it just hides the extension.... but it's still on the file...

    ninjanutz - After you upload your CSS file, try clearing out your cache in your webbrowser, that's probably part of your problem. I know I've had issues with that before myself.

    Tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

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