javascript - How do i set the relative path and folder paths in HTML and CSS from VS 2012? -
i'm creating simple html site css
, javascript
. there folders named css , scripts images images. project structure in image
the problem have how set paths css, images , js files html
i have styles.css file following style
html { padding-top: 25px; background-image: url(images/bg_page.png);
}
the link styles.css file html
<title>chapter 2</title> <link href="css/styles.css" rel="stylesheet" /> <link href="http://fonts.googleapis.com/css?family=gravitas+one" rel="stylesheet" />
problem: doesn't set styles in css html. don't know how set image url path in css well. 1 uses vs 2012, able fix path problems?
there "solution1" folder creates, kind of annoying. wonder there better way organize folders , files in vs 2012?
thanks
are set different folders? because solution shows different folders doesn't mean actual folders have been created. check source folder make sure.
if folders exist, try adding /
before images
in background-image
in css.
Comments
Post a Comment