Announcement

Collapse
No announcement yet.

CSS Problem

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    CSS Problem

    I'm working on CSS at the moment and have created a Directory on my Desktop called Templates 13. This includes the actinic style sheet and has been working very well for testing purposes.

    I've also uploaded to my webspace at this URL

    http://www.magicalwonders.com/Templates13/13new.html

    So I can test the results on line. This has been working fine all day, except suddenly the style sheet is not getting picked up when viewed online. The above page should be displaying a blue background.

    It still works fine offline, so am completely baffled!

    Anyone got any ideas?

    Myles
    www.magicalwonders.com

    #2
    Your css file references an image called background1.gif

    Are you sure it's uploaded to your website? As it's in your css file you might need to add it as an additional file for upload.

    Mike

    Edit. Hmm. It seems to be there but appears to be white?

    Edit2. This is just the template, not the generated code. the background image and other things gets converted from the netquotevars at compile/upload time.
    -----------------------------------------

    First Tackle - Fly Fishing and Game Angling

    -----------------------------------------

    Comment


      #3
      I'm only using two files at the moment. A copy of the actinic style sheet and a file referencing it called 13New.html.

      On my desktop they're in a directory called Templates13. It works fine on my machine locally, and has been working online earlier today. It's very odd.

      I think I'll rename everything, upload again and see what happens.
      www.magicalwonders.com

      Comment


        #4
        Well after several hours of tinkering I believe I've spotted what the problem was.

        In my local directory the style sheet was called ACTINIC, whereas it is referenced in the act_primary as actinic. (lower case) It doesn't seem to matter offline, but I guess it's case sensitive when uploaded?

        I notice that the act_primary states:

        <LINK REL=STYLESHEET HREF="actinic.css">
        Would it be more correct to state..
        <LINK REL=STYLESHEET HREF="styles.css" type="text/css"> ?
        Myles
        www.magicalwonders.com

        Comment


          #5
          Edit2. This is just the template, not the generated code. the background image and other things gets converted from the netquotevars at compile/upload time.
          I forgot to mention I'm not using Actinics colour commands. I've amended the CSS for my own colours. But it's all fixed now so no probs.

          Thanks for taking the time to take a look Mike.

          Myles
          www.magicalwonders.com

          Comment


            #6
            Originally posted by magicalwonders
            On my desktop they're in a directory called Templates13.
            Often best to keep the files in the main Actinic Site folder once you have the test sorted - Actinic can throw a wobbly with references outside the main folder - plus it will do away with those annoying nag screens informing that you have created a heinous crime against society

            Did you add the type="text/css" to the link? Did it make any difference to the validation you have been doing?


            Bikster
            SellerDeck Designs and Responsive Themes

            Comment


              #7
              Often best to keep the files in the main Actinic Site folder once you have the test sorted -
              I understand Jonty. My Test Directory is so I can keep track of what I've worked on. I will replace the original files (after making copies) as and when I'm satisfied with the changes.

              Did you add the type="text/css" to the link? Did it make any difference to the validation you have been doing?
              I haven't tried this yet but I don't think it will affect the validation at the moment. I was trying to confirm that it is correct to include type="text/css". Maybe it doesn't need it with the current Doc Type, I don't know. I just want to get into the habit of doing it right.
              www.magicalwonders.com

              Comment

              Working...
              X