0

Here´s my css code:

body {
    background-image: url(http://relevantfl.org/wp- content/uploads/2013/07/light_grey_3000x3000.jpg);  
    color: white;
    font: 12px/1.4em Arial,sans-serif;
}

Here´s my html code:

<!DOCTYPE html>
<html>
<head >
<link href=”/Users/EdvinHedblom/Library/Mobile Documents/com~apple~CloudDocs/design.css” rel=”stylesheet” type="text/css"  media="all" />
</head>

The problem is that when i run the code in browser it only shows my html-code and no style at all.

3
  • This means that you are not refering to the CSS path correctly Commented May 15, 2015 at 10:43
  • There is no any image on link which you given. And you given color white and font. But there is no any text in your HTML. so. didn't show anything. Also make sure you given correct css path. Commented May 15, 2015 at 10:44
  • Be sure to use the right quotes (e.g. ' and not `) when writing, since this will seriously screw up code! Commented May 15, 2015 at 10:46

1 Answer 1

2

You have used bad quotes, use " or '.

<link href="/Users/EdvinHedblom/Library/Mobile Documents/com~apple~CloudDocs/design.css" rel="stylesheet" type="text/css"  media="all" />

Then remember then you are linking file from your local machine, remote server can find it if you move your HTML to server.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.