Images not showing on website

NoCapApps

Member
Messages
45
Reaction score
2
Points
8
my images are not showing on the webpage, and I cannot find what the file path for the images should be. they are in the images folder, in public_html.
 

NoCapApps

Member
Messages
45
Reaction score
2
Points
8
I have now noticed that CSS is also not loading, if I have it In the right place. I have a css file in public_html, next to index.html. should I change the directory index? it seems to have no effect whether I change it to public_html or anything else
 

ctyrd

Active Member
Messages
956
Reaction score
80
Points
28
I have now noticed that CSS is also not loading, if I have it In the right place. I have a css file in public_html, next to index.html. should I change the directory index? it seems to have no effect whether I change it to public_html or anything else

File path is relevent to root. public_html is root. https://nocapapps.x10.mx/newFav.png

Your img link is wrong.
Code:
<img src "/logo.png" alt="logo goes here" width="50" height="50">

should be
Code:
<img src="logo.png" alt="logo goes here" width="50" height="50">

css is linked in the <head> tag in the source of the index file.

Code:
<link href="/css/styles.css" rel="stylesheet" />
<link rel="icon" type="image/x-icon" href="favicon.ico" />

You really have no style in the css file. https://nocapapps.x10.mx/index.css
 
Last edited:
Top