1
Good evening, I have a question in CSS
I am trying to make a parole in css, similar to this below:
@media only screen and (max-width: 480px) {}
This conditional performs a certain action when the horizontal width of the page is below 480 pixels, however I am trying to make a conditional in css, which performs a certain action when the position "Y" of the scroll goes somewhere, as for the end of the page, for example
thanks to those who help
In the code below that I did this the example of the text that if decrease the width of the page it gets the background in red, what I am trying to do and leave the text in red background when the scroll of the text is at the end of the page
<html>
<head>
</head>
<body>
<div id="teste">
<h1>SE DIMINUIR A LARGURA FICA VERMELHO, POREM QUERIA QUE FICASSE VERMELHO QUANDO O SCROLL FOSSE NO FIM DA PAGINA!</BR> *</BR> *</BR> *</BR> *</BR> *</BR> *</BR> *</BR> *</BR> *</BR> *</BR> *</BR> *</BR> *</BR> *</BR> *</BR> *</BR> *</BR> *</BR> *</BR> *</BR> *</BR> *</BR> *</BR> *</BR> *</BR> *</BR> *</BR> *</BR> *</BR> *</BR> *</BR> *</BR> *</BR> *</BR> *</BR> *</BR> *</BR> *</BR> *</BR> *</BR> *</BR> *</BR> *</BR> *</BR> *</BR> *</BR> *</BR> *</BR> *</BR> *</BR> *</BR> *</BR> *</BR> *</BR> *</BR> *</BR> *</BR> *</BR> *</BR> *</BR> *</BR> *</BR> *</BR> *</BR> *</BR> *</BR> *</BR> *</BR> *</BR> *</BR> *</BR> *</BR> *</BR> *</BR> *</BR> *</BR> *</BR> *</BR> *</BR> *</BR> *</BR> *</BR> *</BR> *</BR> *</BR> *</BR> *</BR> *</BR> *</BR> *</BR> *</BR> *FIM DA PAGINA, SE CONSEGUIU DEIXAR EM VERMELHO QUANDO O SCROLL CHEGA NO FIM OBRIGADO!!!</h1>
</div>
</body>
</html>
<style type="text/css">
@media only screen and (max-width: 480px) {
#teste{
background-color: red;
}
</style>
That’s what you wanted (as I quoted in my reply) @Vitormarqueslourenço ?
– Chun