Atif T.
Atif T.

Reputation: 9

A static site I published recently using AWS S3 is not reading the CSS files

I recently published a static website that I built using html, CSS and JavaScript and published it using AWS S3 Buckets. Although I'm able to view the site, its not reading any of the CSS files. My configuration in the html header element are using localhost as the local web server. This is what I have in all my HTML files. Please advise.

Below are some screenshots from AWS and code base for context: enter image description here enter image description here enter image description here

Upvotes: 0

Views: 891

Answers (2)

Harish KM
Harish KM

Reputation: 1363

Remove http://localhost:9000/DrainLeaf GAMES/ from lines 4, 5 & 6 of Support.htm. All hrefs should look like this: href="CSS/support.css".

Upvotes: 0

Biranchi
Biranchi

Reputation: 16327

Give relative local path to the .css and .jpg files without http.

Icon file should have proper size and have .ico extension to get displayed.

Upvotes: 1

Related Questions