Github Pages Website

i've forgotten how to get other pages to work, on ghpages, and it says that the page doesn't exist, lolz...
51 Replies
probablyraging
probablyraging12mo ago
Send the link to the repo again
Xlade
Xlade12mo ago
it's a new one, decided to essentially move to a diff repo, but yea--here: https://github.com/Xlade-The-Creator/website
probablyraging
probablyraging12mo ago
And you're referring to the links at the bottom of index.html? They seem to work fine for me
Xlade
Xlade12mo ago
hm one sec
probablyraging
probablyraging12mo ago
Maybe try a hard refresh on the page CTRL+F5?
Xlade
Xlade12mo ago
alr, guess i just needed to do a hard/forced refresh, sorry... ty, bro lmao, i did for me it's ctrl + shift + R
probablyraging
probablyraging12mo ago
Same thing different keybind if I'm not wrong 👍🏽
Xlade
Xlade12mo ago
ye and ty ....I can't figure out why my css doesn't work--😭
probablyraging
probablyraging12mo ago
In your head tag, include the file extension .css
Xlade
Xlade12mo ago
i just reverted it it didn't do anything lol wait nvm gh slow ty, lol
probablyraging
probablyraging12mo ago
Lol yeah it takes a bit to deploy changes, you might be better off making changes locally, testing them locally, and committing them once you're sure all is good. Save you same time
Xlade
Xlade12mo ago
kk
DanFMN
DanFMN12mo ago
Are you using br elements for margin?
No description
Xlade
Xlade12mo ago
I think so... basically using that element to put space between other elements/sections of text
DanFMN
DanFMN12mo ago
You can do marginBottom with css and accomplish the same thing without polluting the DOM
Xlade
Xlade12mo ago
Dom? also, okay
Xlade
Xlade12mo ago
I currently don't have any scripts, and I don't have any javascript implemented in my website yet—currently it's only strictly CSS and HTML, so I don't have any API's or anything like that involved, at the moment– I did briefly read some of the paragraphs and skim through the rest of it, though Ty
DanFMN
DanFMN12mo ago
DOM can be manipulated with JS, but I’m referring to how when creating nodes with HTML they get placed into it. That document needs to be sent to the client, so having all the extra elements will increase load times.
Xlade
Xlade12mo ago
Alright, ty how would I do this?
probablyraging
probablyraging12mo ago
Something like this
<div class="someDiv">
// your content here
</div>
<div class="someDiv">
// your content here
</div>
.someDiv {
margin-bottom: 20px;
}
.someDiv {
margin-bottom: 20px;
}
Xlade
Xlade12mo ago
tysm wait how do i change the amount of space, between each section of content?...
probablyraging
probablyraging12mo ago
You can increase the margin "20px" => "100px" for example, or however much margin you need
Xlade
Xlade12mo ago
ah, right, kk tnx again
Xlade
Xlade12mo ago
how do i put space between the two pieces of text?... lmao
No description
No description
No description
probablyraging
probablyraging12mo ago
You can use the line-height property on the <p> to do that. Just a heads up, you have a </div> within your <p>, the </div> should come after </p>
Xlade
Xlade12mo ago
if it's after, it messes up-
probablyraging
probablyraging12mo ago
You likely need to review your entire HTML then, you probably have a missing closing tag or something
Xlade
Xlade12mo ago
nvm, it's fixed it didn't mess up
probablyraging
probablyraging12mo ago
Also, think I already mentioned, you don't need to include the class attribute in your closing tags All you need to do is
<p class="class-name">
// content
</p>
<p class="class-name">
// content
</p>
Same goes for all closing tags like div and h2
Xlade
Xlade12mo ago
heh- haven't changed those yet, sry lol the two sections of text, are one <p>
probablyraging
probablyraging12mo ago
Not sure what you mean?
Xlade
Xlade12mo ago
line height would change the line height for both pieces of text, right? i only want to put space between the two, where the line break is, basically
probablyraging
probablyraging12mo ago
Which pieces of text are seperate?
Hi, there; I'm Xlade!...
Hi, there; I'm Xlade!...
and
Here, you can find information about me,
my channel, my mc server, and more.
Here, you can find information about me,
my channel, my mc server, and more.
??
Xlade
Xlade12mo ago
ye they are in one <p>
probablyraging
probablyraging12mo ago
So create a separate <p> for both, and on the first one you can add margin-bottom to the first
Xlade
Xlade12mo ago
separated by <br> bruh alr, ig lmao
probablyraging
probablyraging12mo ago
That is the correct way to do it lol
<p class="text-one">
Hi, there; I'm Xlade!...
</p>

<p class="text-two">
Here, you can find information about me,<br>
my channel, my mc server, and more.
</p>
<p class="text-one">
Hi, there; I'm Xlade!...
</p>

<p class="text-two">
Here, you can find information about me,<br>
my channel, my mc server, and more.
</p>
Xlade
Xlade12mo ago
alright wait, can I add more than one class to a single element?
probablyraging
probablyraging12mo ago
Yep, can add as many as you like
Xlade
Xlade12mo ago
like: <p class="border-text", class="border-text-one">?...
probablyraging
probablyraging12mo ago
One class attribute, multiple class names
<p class="class-one class-two class-three"> </p>
<p class="class-one class-two class-three"> </p>
Xlade
Xlade12mo ago
ah, kk ty this didn't do anything wait sry one sec yea nothing lol bruh
probablyraging
probablyraging12mo ago
Can you show the html portion you're talking about, and the css for it
Xlade
Xlade12mo ago
.... i got it now -_-
probablyraging
probablyraging12mo ago
Ok 😄
Xlade
Xlade12mo ago
gonna do what u suggested earlier... do stuff local, then put on gh
probablyraging
probablyraging12mo ago
Solid idea mate!
Xlade
Xlade12mo ago
lmao, tyvm, bro
probablyraging
probablyraging12mo ago
Not a problem at all bud. Just in the future, try to show code and changes you've made, it will make it a lot easier to help see what you're doing/changing 🙂
Xlade
Xlade12mo ago
alright