Pizzaz4me
@Pizzaz4me
pineapple on pizza
So, below the button "projects", I tried to create a drop down menu based on the display and hover function, but it doesn't work. How do I make it so
HTML, CSS, JS
xfinnbar Make a div with a class dropdown with a button and some items inside it:
Open dropdown
This is a dropdown item
This is a dropdown item
Use the :focus-within pseudo-class to detect button clicks in CSS:
.dropdown-items {
display: none;
flex-direction: column;
background: #333;
}
.dropdown-items a {
padding: 10px; /* just a bit of spacing and color, not strictly needed */
color: white;
}
.dropdown:focus-within .dropdown-items {
display: flex; /* i'm using flexbox to posi2 years ago
image
How do I move and "List - This page contains different lists" further down without using the css "top:" function and how do I move "List - This
HTML, CSS, JS
IntellectualGuy Add this to your css
/For putting it on the same line/
h5 {display:inline}
/For making more space/
.unordered_list {margin-top:16px/Change this value if you want to/}
`2 years ago
Coder100 h5 naturally has a display: block; so in your css add:
h5 { display: inline; }
then, using the margin property, you can add well margin
.unordered_list {
margin: 8px;
}
tweak 8px to your liking. Also try out margin-top, margin-bottom, margin-right, and margin-left.2 years ago
image
So I was building a navigation bar, and I noticed that part of the area that was supposed to be the nav bar wasn't fully colored. And I don't k
HTML, CSS, JS
So, I'm trying to position the error message image right of the text box, but it's not working. what do I do?
HTML, CSS, JS
firefish Do you mean to move the alert box? You cannot do that, but you need to do some manual update stuff.2 years ago
so, I learned how to make text boxes for my project, but, I don't know how to position them. How do I? my goal is to get the text box close to the but
HTML, CSS, JS
So, I created another folder, and tried to get a button to link to a HTML file in that folder. But, it's not working. How do I do it? Also, I added a
HTML, CSS, JS
Coder100 Don't forget headers have margins. This is what happens when you just add one tiny piece of code:
image
that tiny piece of code:
h3 { margin: 0; }
xD2 years ago
ch1ck3n https://replit.com/@ch1ck3n/why-is-this-not-working#style.css
#desc{
position: absolute;
bottom: 40px;
text-align: center;
margin-left: 23.5%;
}
i think this is what you're going for.
note: add the id of desc to the h32 years ago
Why isn't my button working. I first tried to make it go to another file in another folder, but that didn't work. I then tried to just have a basic li
HTML, CSS, JS
Coder100 You linked your script wrong (script.js)
Your functions should be lowercase brokenStuff()
Corrected code form index.html
My Website
My Website
Broken Rock Paper Scissors
`2 years ago
So, this was my first time using buttons to open files in a folder, and it isn't working. What is wrong and how do I fix it? Edit: ignore this post
Python
So, I was creating a JOKE WEBSITE THAT DOES NOT WORK which makes you think you are creating a free disnep+ account. I just finished the buttons when I
HTML, CSS, JS
realTronsi This is because of how flex display works. Try changing it to
#buttons{
display: flex;
flex-direction: row;
position: relative;
top: 300px;
left: 455px;
align-items: center;
}
2 years ago
So, I want to delete my account because I don't like my username and I want to create a new account with the username I want. I looked around but not
HTML, CSS, JS
Bookie0 To delete an account:
Go to account:
Screen Shot 2020-12-30 at 1.20.26 PM
and go to my account and press request account deletion
Screen Shot 2020-12-30 at 1.20.45 PM
then it will prompt you with this, and press enter.
Screen Shot 2020-12-30 at 1.21.51 PM
However, you can change your username without deleting your account. Go here
click account
Screen Shot 2020-12-30 at 1.22.43 PM
Change username:
image
and change your username.
Screen Shot 2020-12-30 at 1.23.29 PM
That's all, then y2 years ago
FloCal35 here
Go to your profile
Click the edit your profile button
Go to the my account tab
Press request account deletion
Warning, All cycles and repls will be lost
> I think2 years ago
Baconman321 You can go to repl.it/~/cli, click account under the "run a command" input, and change your username (only once).
Much better than deleting an account because all your repls will be deleted as well, while changing your username just changes your username.2 years ago
So, I just learned how to make tables, I thought of making a fake restraunt Menu Website, because I was at a loss for ideas, and while I was positioni
HTML, CSS, JS
Squirrel777 Like Baconman321 said, why did you base it off of the parent div? Remove the id="Menu-Veggie" from line 8, and add it to `` on line 9!2 years ago
Baconman321 Because the table is relative, you are positioning it based off of the parent div, not the webpage as a whole. Try positioning it absolutely?2 years ago
So, I was testing out the alert system, but I am doing something wrong because it is not working. Is the problem with how I linked the files? or how I
HTML, CSS, JS
Coder100 problem
image
Forgot a little ,
Solution
var pics = [
"New-Juventus-logo.jpg", // <
"https://tse3.mm.bing.net/th?id=OIP.Wnuzv5xWVPvNhDl4G_9JsAHaEK&pid=Api&P=0&w=280&h=159",
`2 years ago
Is It possible to remove the "main.py" file using the os library in python? I've been trying, but it keeps giving me errors. I only know how to delete
Coder100 import os
os.system("rm main.py")
ironically you can't do this twice.
also your repl breaks2 years ago
EpicGamer007 you can delete the main file without using the os module!
all you have to do is go to the console, then type rm main.py. this will remove the python file. now you can setup your files. but the problem is repl will not recognize what to do when you press the runbutton. to fix this, you create a file called .replit and in there, you can type python3 [yourfile].py and it should work without any errors!2 years ago
How do I change the dimensions of the picture on the website. I uploaded 2 images but they are really big so I wanted to decrease the size but I could
HTML, CSS, JS
How does "from replit import db" work?. I know it's a database, but how do you learn it? It's not like they have a tutorial on how to learn repl's dat
Coder100 replit is a module like os. db is a method from replit, like how system is.
So anyways, it's literally just an object, sooo easy!
from replit import db
db["my-var"] = input("Click that check mark!")
print(db["my-var"])
`2 years ago
PattanAhmed @PlaySoccer Hi,
Yeah, It's a database.
They made some tutorials on how to use Repl.it database, You can find one on your Repl too:-
01
02
And if you want docs, here are some:-
https://docs.repl.it/misc/database
https://repl.it/talk/learn/Replit-DB/43305
That's it.
I think there are some PyPi tutorials on the first link...
Thanks!
Hope this helps!2 years ago
RYANTADIPARTHI db
You just have to name whatever variable you want to save to the database there, like this:
from replit import db
userinput = userinput
return db[user_input]
So that input is saved, you can use db.keys() to save something, and remember.
convers = db.keys()
That's it2 years ago
So, I started this banking simulator project but when I was testing whatever code I had all of it didn't run. This is my first time creating variables
Python
RYANTADIPARTHI call the function how() at the end of your code
Screenshot 2020-11-14 at 5.42.32 PM
Just call it and maybe it will work2 years ago
DynamicSquid You define a function how(), but never call it. Call it at the end of your else statement2 years ago
So, I typed up some code that I think is supposed to make the red square jump but it doesn't. I tried some other tutorial and I ran into the same erro
RYANTADIPARTHI divs, brackets
You need to have a closing `` tag in your HTML, and in your js, the last brackets seem messy or unnecessary, try getting them out.
Screenshot 2020-11-08 at 7.55.08 PM
And this
Screenshot 2020-11-08 at 7.55.34 PM2 years ago
seanlnge There are a few typos around the entire code, so you need to fix that before you do anything else.
Jumping is a very hard task to implement. I have spent hours working on code to make something jump in the past, with bad progress. The way that seems to make the most sense is just to have a variable that will go up a certain amount a certain number of times, then go down that same number of times. Although easy to jump to, it is a horrible idea, as there are so many bugs and errors that can happ2 years ago
I typed code which I think should create a jumping animation, but, it doesn't. What is wrong with my code and what should be there instead?
HTML, CSS, JS
PattanAhmed @PlaySoccer Hi,
Seems like you have spelled some things wrong...
On line 14 in your script.js file, you have:-
charcter.classList.remove("animatae")
Which is wrong...
Change it to like this instead:-
character.classList.remove("animate")
Try
and tell me the results
That's it
Thanks!
Hope this helps!2 years ago
RYANTADIPARTHI Character and animate are spelled wrong, and you did not call the function.
Screenshot 2020-11-08 at 7.41.28 AM
Probably after you change that, it will work.2 years ago
Is it possible to change my username?
RYANTADIPARTHI Yes, just click on your account:
Screenshot 2020-11-06 at 7.32.33 PM
And when you get there, click on your username section, and change it.2 years ago
So, I made a frame in html,css,js and positioned it to be in the center or close to it. I opened the panel in a new tab and it was in the center. But
HTML, CSS, JS
fuzzyastrocat Were the tabs you opened the exact same size? You're adding a constant offset to the box's position, so that won't scale with screen size.
Even if the answer to the above question was no, I'd suggest changing your css to this (and it might fix it):
#game {
overflow: hidden;
position: relative;
height: 400px;
width: 800px;
border: 5px solid black;
background-color: rgb(85, 85, 179);
top: calc(50vh - 200px);
left: calc(50vw - 400px);
}
#character {
width: 20px;
height: 50px2 years ago
Coder100 image
You made a typo here lol
You meant:
animation: block 1s infinite linear;
`2 years ago