Posts by Sophia Yuno • 7 points
3 posts
-
-3
votes1
answer68
viewsQ: Why does my function only return "even"?
function parimp(n){ for(var i = 0; i <= n; i++){ if(i % 2 == 0){ return "par"; }else{ return "impar"; } } } var s =…
-
0
votes1
answer23
viewsQ: Doubt between performing clearfix using an element in the DOM or a pseudo-element
I have to wear one float: left in my logo and float: right on my menu, however background-color disappears and need to correct with clear: both. My question is, what’s the difference between using…
-
-2
votes1
answer45
viewsQ: Why is display: block; on the links? tag "a", to make the navigation bar?
ul li a{ display: block; } Why do you need to put the links with display block when making the menus?