Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set CSS file in relative instead of URL. #1

Open
Dorson opened this issue Dec 12, 2019 · 3 comments
Open

Set CSS file in relative instead of URL. #1

Dorson opened this issue Dec 12, 2019 · 3 comments
Assignees
Labels
help wanted Extra attention is needed HTML code issues Issue with HTML code of file.

Comments

@Dorson
Copy link
Owner

Dorson commented Dec 12, 2019

Figure out for how to set the CSS style file in relative ./file-blaBLAbla.css
on Github page, instead of the absolute URL link with www.URL..............

Very IMPORTANT for the people who will download the file to local directories on their PC.

OR less important, if the project is only useful online :-)

@Dorson Dorson added help wanted Extra attention is needed HTML code issues Issue with HTML code of file. labels Dec 12, 2019
@Dorson Dorson self-assigned this Dec 12, 2019
@petermorgandev
Copy link

If a CSS file is in the same directory as a HTML file you can use <link rel="stylesheet" href="styles.css" />. Replace "styles.css" with the name of the file you would like to use.

@Dorson
Copy link
Owner Author

Dorson commented Dec 16, 2019

Thx. @PeterMorganGH
Now using global URL, then relative ./style.css after that to re-set the global with local,

Missing info at this point is, what the raltive CSS path is on Github pages.

Also, not an issue, if the relative CSS file path can always overwrite the Internet URL, from downloaded copies.

Let's see how to set that up without failing :-)

@Dorson
Copy link
Owner Author

Dorson commented Dec 16, 2019

The

./ works as of now.

The global, I set to the raw subdomain of Github:

https://raw.githubusercontent.com/Dorson/LTS-flex-css-style-theme-generator/master/LTS-flex-theme.css

Later on things might change to

./css/LTS-flex-theme.css
OR
/css/LTS-flex-theme.css

if things get to complex.

./ as the relative root for Github pages seems to work as of now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed HTML code issues Issue with HTML code of file.
Projects
None yet
Development

No branches or pull requests

2 participants