Posts by Lucas Muller • 531 points
17 posts
-
2
votes3
answers388
viewsA: Vertical menu disappearing below the footer
Leave the footer and the menu with height in percentage, this will make it work independent of screen resolution. If the page will not have scroll, both elements may have position:absolute;, then…
-
0
votes3
answers857
viewsA: Javascript Method Overload Function
Guys, I’m posting as an answer but I just want to show through the image below the concept of closures cited in previous answers. obs. I created an extra function with three parameters to make it…
-
2
votes2
answers486
viewsA: How to set an image at the bottom of the page?
Use ../, should be working, try using quotes this way: background-image: url("../libimagens/bg.png"), I believe it will solve. But another very simple solution is to use the absolute path to the…
-
4
votes3
answers857
viewsQ: Javascript Method Overload Function
I’m reading a book called "Secrets of Ninja Javascript" and in it, I came across a method overload function. So far so good, I understood what she does, I understood that she makes depending on the…
-
0
votes2
answers191
viewsA: Full Calendar is passing the footer of the site
Try the following, change the position:absolute from the footer to relative, and if the div also has this value change it, then use a clearfix in div that involves all the content, I believe it will…
-
1
votes1
answer2032
viewsA: Javascript control element using scroll
I made a simple example, follow the code below. What I did was the following, to calculate the percentage of page scrolling I took the scroll size and divided by the amount of the page already…
-
6
votes2
answers137
viewsA: Pure CSS element animation
In the example below I used @keyframe and animation of CSS3 to modify the position of the circle as the animation progresses. For the positioning of the elements I used position:absolute to position…
cssanswered Lucas Muller 531 -
1
votes3
answers1427
viewsA: Ways to Replace <Iframe> in HTML
If I understand your problem correctly the solution is to put display:block and instead of overflow-x and overflow-y with the value hidden use only overflow, follows the code: .TbRH { width: 100%;…
htmlanswered Lucas Muller 531 -
6
votes4
answers21716
viewsA: "Height: 100%" does not occupy all height
So you can use the height:100% it is necessary to define position:absolute for them. But when using this property the elements are positioned based on a parent element that has…
cssanswered Lucas Muller 531 -
2
votes4
answers2318
viewsA: H1 stylized with center edge with css
One way to do it without having to overlap is to use the pseudo-elementos after and before, follow the example: h1 { text-align: center; position: relative; } h1:before, h1:after { content: "";…
-
2
votes5
answers19009
viewsA: How to keep the footer always down there
I created the following solution in Javascript, there may be other ways to do, but I did so. Explaining the code: What I did was this, I made sure that when the page was loaded or redeemed, it would…
-
1
votes2
answers783
viewsA: Clear input when user starts writing
This is very simple to do with HTML5, just add a placeholder in his input or textarea, take the example: <span>Nome</span> <br> <input type="text" placeholder="Digite seu…
-
1
votes1
answer678
viewsA: Two actions on the same button
Below is an example I made with Javascript fadeIn or fadeOut to make it simpler to understand. Explaining: The operation is very simple, when the button receives a click it calls a function that…
javascriptanswered Lucas Muller 531 -
1
votes2
answers8633
viewsA: How to add titles above input and textarea?
As for putting a title on top of inputs/textareas you can use any text tag, but preferably label, and as for the spacing below use margin-bottom of css. textarea, input { width: 300px;…
-
1
votes1
answer62
viewsQ: How to Work with Grunt
I have read a lot about some tools used to facilitate the workflow on the front end and I met Grunt, I understood what his function is and when he can be useful, but I have the following question,…
-
1
votes1
answer171
viewsA: Section with display block does not work properly
Below is your code modified and working. I only made a few modifications, I will list them below and explain: Instead of using border used margin and left the background of black father. When adding…
-
1
votes1
answer51
viewsA: Combo box considering the previous choice
if I understand your doubt right, you want a form whose fields values select are created dynamically. If this is so, you can do it in the following way: var arr_cidades = { sp: ["Sorocaba",…