Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 4 of 4
  1. #1
    Junior Member
    Join Date
    Aug 2010
    Posts
    2
    Member #
    22978
    Hello all,

    I am completely new to web development and am trying to learn by building my own website. The issue I have run into is getting my css to work on my page.

    HTML:
    <html>

    <head>
    <LINK rel="stylesheet" type="text/css" href="style.css">
    <title> The Shore Report </title>
    </head>

    <body>

    <img src="TheShoreReport.jpg" >

    <img src="Web Background.jpg" >


    </body>

    </html>

    CSS:
    body
    {
    background-color:#b0c4de;
    }

    Is there something wrong with my link or what?

  2.  

  3. #2
    Junior Member
    Join Date
    Aug 2010
    Posts
    3
    Member #
    22980
    <LINK rel="stylesheet" type="text/css" href="style.css">
    This is the correct way of linking or referencing your style sheet, but unless it isn't in your main directory (or otherwords in a different folder) then the href is incorrect. If it is in a folder then simply put href="foldername/style.css", and also could try adding media="screen" at the end.

    Hope that helps.

  4. #3
    Junior Member
    Join Date
    Aug 2010
    Posts
    2
    Member #
    22978
    i have that code, still not working :/

  5. #4
    Senior Member aeroweb99's Avatar
    Join Date
    Feb 2008
    Location
    Port Huron, Michigan
    Posts
    1,037
    Member #
    16468
    Liked
    1 times
    Your css is not actually on that page is it? I had to ask...

    There is nothing wrong with the code so it has to be a file path issue or you have the wrong file extension or something.


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 10:58 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com