Edrol97
Silver Coder
Hi all, I've made a Jokes page for my site, but it aligns a navbar to the left when I try and add it in the body. Does anyone know how I can prevent this?
Here's a link with minimal JS on it and no JSON
CSS:
@font-face {
font-family: Eliot;
src: url(Fonts/Eliothand2-Regular.otf);
}
@font-face {
font-family: Eliot Headline;
src: url(Fonts/EliotHeadline-Regular.ttf);
}
body {
margin: 0;
background-image: url(img/background/Laugh.svg);
background-repeat: repeat;
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
font-family: monospace;
}
button {
cursor: url(img/background/cursors/pointer1.png), pointer;
}
.jokecontainer {
background-color: rgba(255, 255, 255, 0.8);
padding: 20px;
box-shadow: 0 6px 10px rgba(0, 0, 0, 1);
border-radius: 15px;
width: 85%;
text-align: center;
color: black;
}
.heading {
font-size: 25px;
font-weight: 200;
font-family: Eliot Headline;
text-shadow: 5px 5px 2px rgba(0, 0, 0, 0.3);
letter-spacing: 2px;
}
.joke {
font-family: Eliot;
font-size: 40px;
font-weight: 500;
margin: 40px;
}
.btn {
font-size: 18px;
font-weight: 700;
border-radius: 5px;
cursor: pointer;
padding: 10px;
background-color: rgba(255, 255, 255, 0.3);
border-color: rgba(255, 255, 255, 0.6);
text-transform: uppercase;
width: 300px;
color: darkgreen;
}
.btn:hover {
background-color: rgba(255, 255, 255, 0.5);
box-shadow: 0 4px 4px rgba(0, 0, 0, 0.3);
transition: all 300ms ease;
cursor: url(img/background/cursors/pointer1.png), pointer;
}
Here's a link with minimal JS on it and no JSON
Last edited:

