Answers for "css select element"

CSS
2

css selection

::selection {
  background-color: cyan;
}
Posted by: Guest on October-03-2020
0

Css selection

p.normal::selection {
	background: #cc0000;
	color: #fff;
}

p.moz::-moz-selection {
	background: #cc0000;
	color: #fff;
}
Posted by: Guest on August-12-2021
0

what is css selector

div { color: red; } // the "div" in .css is a selector targeting all <div> elements
simpleSelector = document.querySelectorAll()("div"); // all divs 
complexSelector = document.querySelector("div.user-panel.main input[name='login']")  // the first <input> element with the name "login" (<input name="login"/>) located inside a <div> whose class is "user-panel main" (<div class="user-panel main">) in the document is returned
Posted by: Guest on November-19-2020

Browse Popular Code Answers by Language