Posts by chen zhen • 64 points
6 posts
-
0
votes2
answers86
viewsA: Nan in javascript tabulated algorithm
Algorithm below: function multiplicar(multiplicando,multiplicador){ const resultado = [] return function(multiplicador){ while(multiplicador >= 0){ resultado.push(multiplicando * multiplicador)…
-
0
votes2
answers218
viewsA: how to reuse HTML structure and change content (avoid Ctrl c Ctrl v)
Question: Optimization of code writing in the front end: That being the problem, the best solution is to use a template engine, allowing the use of a static file - read template, which you can…
-
1
votes3
answers78
viewsA: Align div with css
Solution: Mixed CSS Flex layout model and CSS Grid Layout Upside: Greater flexibility with message container. html, body { height: 100%; } body { display: flex; background: rgba(217,190,167,1); }…
-
0
votes3
answers403
views -
2
votes4
answers349
viewsA: How to make an element cross the screen continuously and always visible?
3°option Perks: More performatic Motive: Makes use of Feature transform CSS, does not make reflows for each iteration of the animation. Note: The browser rendering algorithm (Render Tree, CSSOM) do…
-
0
votes3
answers65
viewsA: vertical menu with select
Question: Always keep sub-items(sub-category) at the top after choosing the category. Solution: CSS Grid Layout Codepen: View the code/example here Obs: Avoid using display:none when an…