w3cvalidator6

This commit is contained in:
SrIzan10
2021-02-25 20:26:53 +01:00
parent e4db3cdc78
commit 938da5ed47

View File

@@ -10,9 +10,9 @@
<body>
<marquee behavior="alternate" direction="right">
<div class="lefttorighttext">
<h1>Sr Izan's Website.</h1>
</marquee>
</div>
<div class="corner"><button onclick="myFunction()">Cambiar a modo oscuro</button></div>
<!--Scripts and styles-->
@@ -27,6 +27,7 @@
background-color: white;
color: black;
font-size: 25px;
overflow: hidden;
}
.corner{
position: absolute;
@@ -38,6 +39,22 @@
background-color: #23272A;
color: white;
}
.lefttorighttext{
position: absolute;
white-space: nowrap;
animation: floatText 5s infinite alternate ease-in-out;
}
@-webkit-keyframes floatText{
from {
left: 00%;
}
to {
/* left: auto; */
left: 100%;
}
}
</style>
</body>
</html>