Jma529 / prj-rev-bwfs-dasmoto

0 stars 0 forks source link

Using relative path references #1

Open zannain opened 6 years ago

zannain commented 6 years ago

Use relative reference when linking stylesheets over absolute references. And double check that the webpage loads. This will ensure that when you push code to an online repository then others can clone the application or webpage and receive the styles. An absolute path is only going to work on your local machine whereas a relative path will work on anyone.

<!-- absolute reference -->
<!-- extra link tag -->
<!-- closing the link tag -->
<link href"  <link href="/Users/Jma529/Desktop/Coding Projects/Dasmoto's Project/Resources/style.css" type=text/css rel="stylesheet">
<!-- relative reference -->
<!-- closing the link tag -->
<link href="./Resources/style.css" type=text/css rel="stylesheet" />

How the webpage looks using absolute references when I cloned your project

image

How the webpage looks using relative reference paths image

Jma529 commented 6 years ago

Good to know, I hadn't learned about this yet :)