Answers for "when i focus a element change element css"

CSS
1

when i focus a element change element css

<input class="inputTag" type="text" value="">

	//The input button must be placed at the top.
	Otherwise the focus will not work .

  <h1 class="h1Tag">Safin</h1>


	.h1Tag {
      background: gray;
    }

    .inputTag:focus+.h1Tag {
      background: blue;
    }



// My youtube:'https://www.youtube.com/HasibulIslambd'
Posted by: Guest on June-02-2021

Code answers related to "when i focus a element change element css"

Browse Popular Code Answers by Language