Posts by Guilherme Graça • 1 point
3 posts
-
-4
votes2
answers57
viewsA: How can I change the style of an html tag using another html tag in css?
The selector :hover applies styles when the mouse passes over the elemetho, to apply styles when an element is pressed you need to use the selector :focus in your case would: #content:focus {…
-
0
votes2
answers57
viewsA: Start the length count from 1
Just put + 1 after the cont[0].innerText = result then the counter function would be: function contador() { var c = document.getElementsByTagName("input") var result = c[0].value.length var cont =…
-
0
votes2
answers31
viewsA: adjust border bottom top
I think it’s easier to write CSS when using the universal selector at the beginning of the code with box-sizing: border-box; which makes the height and width include the size of the padding. So the…