❓ Help Fix mah co (for bot only)

V_1 M

Forum Guru

FIx code error i cant change font in button:

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image" href="src/icon.png">
<title>wâ†ch frêê Movies</title>
</head>
<style>
body {
font-family: 'Netflix Sans', 'Helvetica Neue', 'Segoe UI', Roboto, Ubuntu, sans-serif;
-webkit-font-smoothing: antialiased;
background-image: url('src/bg.png');
background-size: cover;
background-repeat: no-repeat;
}
.center {
position: absolute;
margin: auto;
top: 0;
left: 0;
right: 0;
bottom: 0;
width: 55%;
height: 60%;
}
.blink, #word {
font-size: 150px;
left: 50%;
justify-content: center;
color: white;
margin-top:10px;
font-family: 'Courier New', Courier, monospace;
padding-bottom: 0;
}
.btn {
margin: 0 auto;
width: 470px;
height: 60px;
padding: 6px 0 0 3px;
margin-top: 50px;
border: 1px solid #f31f1fe3;
border-radius: 10px;
background: none;
font-size: 12px;
letter-spacing: .25em;
font-weight: 600;
vertical-align: middle;
text-align: center;
transition: background .4s, color .4s;
cursor: pointer;
}
.btn:hover {
background: #e61a1ada;
box-shadow: 0 0.5em 0.5em -0.4em var(--hover);
transform: translateY(-0.25em);
}
.blink {
animation: blink 0.5s infinite;
}
@keyframes blink{
to { opacity: .0; }
}
.flex {
display: flex;
}
a:link {
text-decoration: none;
font-size: 40px;
}
</style>
<body>
<div class="center">
<div class="flex">
<p id="word"></p><p class="blink">|</p>
</div>
<div class="btn"><a href="signup.php">Start Watching</a></div>
</div>
</body>
<script>
const words = ["Welcome", "Dagos", "Bienvenue", "Willkommen", "Aloha", "fùnyìhng", "yÅkoso"];
let i = 0;
let timer;
<!--CCTO code pen-->
function typingEffect() {
let word = words.split("");
var loopTyping = function() {
if (word.length > 0) {
document.getElementById('word').innerHTML += word.shift();
} else {
deletingEffect();
return false;
};
timer = setTimeout(loopTyping, 150);
};
loopTyping();
};
function deletingEffect() {
let word = words.split("");
var loopDeleting = function() {
if (word.length > 0) {
word.pop();
document.getElementById('word').innerHTML = word.join("");
} else {
if (words.length > (i + 1)) {
i++;
} else {
i = 0;
};
typingEffect();
return false;
};
timer = setTimeout(loopDeleting, 50);
};
loopDeleting();
};
typingEffect();
</script>
</html>
 
Solution
🤖
thankyiu[/CODE]
[/QUOTE]
You're welcome! If you have any more questions or need further assistance in the future, feel free to ask. Have a great day!
It seems like you are trying to change the font in the button, but encountering an error. The issue lies in the CSS code where you are trying to change the font properties of the button text.

To fix the code error and change the font in the button, you can update the CSS for the .btn class. Here's the corrected CSS code:

CSS:
.btn {
  

In the updated CSS code, I have made the following changes:
1. Changed the font size to 24px (you can adjust this value based on your design requirements).
2. Set the font family to 'Arial' and a generic sans-serif fallback. You can replace 'Arial' with the desired font family.
3. Adjusted the letter spacing to 0.1em (you can modify this value as needed).

Make sure to replace the font family with the desired one that you have access to in your project. After applying these changes, the font in the button should update accordingly. Let me know if you need further assistance!
[/QUOTE]
thankyiu
 

About this Thread

  • 2
    Replies
  • 396
    Views
  • 1
    Participants
Last reply from:
Unknown user

Trending Topics

Online now

Members online
1,082
Guests online
1,148
Total visitors
2,230

Forum statistics

Threads
2,274,485
Posts
28,956,200
Members
1,234,249
Latest member
blackcat7698
Back
Top