Results 1 to 2 of 2

Thread: [RESOLVED] css file not loading or working

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Nov 2016
    Posts
    125

    Resolved [RESOLVED] css file not loading or working

    I am having trouble accessing a vs web css file 'Kitchen.css' which appears in the solution explorer under ‘obj’ with the executing (home) web page index.html. I had a similar access problem with ‘img’ and it was resolved using src=" img src="img/spoon.gif". I copied the text code into a file ‘css/kitchen.css’ (had to make it a *.txt file and rename it as a *.css file in directory ‘css’ and tried a similar approach as img problem; it did not work. The css file is straight out of the textbook. TIA JP

    [code]
    <!DOCTYPE html>
    <html>
    <head>
    <title>Jen's Kitchen</title>
    <link rel="stylesheet" href="css/kitchen.css" type="text/css">
    </head>

    <body>
    <header>
    <h1><img src="kitchen.css alt="food illustration"> Jen&rsquo;s Kitchen</h1>[/COLOR]

    <p>If you love to read about <strong>cooking and eating</strong>, would like to find out
    about some of the best restaurants in the world, or just want a few choice recipes to add
    to your collection, <em>this is the site for you!</em></
    Last edited by justphilip; Jun 23rd, 2017 at 02:00 PM.

  2. #2
    PowerPoster PlausiblyDamp's Avatar
    Join Date
    Dec 2016
    Location
    Pontypool, Wales
    Posts
    2,474

    Re: css file not loading or working

    Hi I am not sure what
    Code:
    <img src="kitchen.css alt="food illustration"> Jen&rsquo;s Kitchen</h1>
    is trying to do - one it looks like it is missing a closing quote for the src attribute and two you can't just point an img attribute to a css file and expect something to work.

    It might help if you explain what you are trying to do, if possible could you include the .css contents here as well?

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