Posts by Paulo • 9,980 points
164 posts
-
39
votes8
answers61967
viewsQ: Should I use input type="Submit" or button type="Submit" in forms?
I usually use <button type="submit"></button>, but I see in most forms the use of <input type="submit" />, is there any difference? What is the ideal?…
-
5
votes5
answers6692
viewsQ: How to make the textarea automatically increase height to a certain limit?
I would like to know the best way to get the textarea automatically increase height to the limit of 500px when the user enters content. Do not use another library other than Jquery. CSS: textearea{…
-
14
votes3
answers333
viewsQ: Is there any advantage in bringing together all the icons of a website in a single image?
I see on most large websites that the icons used are grouped in only one image, which leads to the download of only one file by the user. Is there some benefit in speed gains or is it just a matter…
-
1
votes1
answer1168
viewsQ: How to get the top edge of the div to overlap the top end of the right edge?
I’m trying to get the top edge of the div totally overlap the top tip of the right edge, but I’m not succeeding. html <div class="caixa"></div> css .caixa{ width:100px; height:100px;…
-
6
votes9
answers37388
viewsA: What should I use in CSS, id, or class?
Utilize id when you want to identify only one element in html and use class when referring to more than one element. Example <html> <head> <style type="text/css"> #conteudo{…
-
10
votes1
answer12693
viewsQ: Which DPI is recommended for images used on websites?
I have always used 72 dpi in my images, but currently this standard has low definition thanks to the variety of devices with different resolutions (notebook, tablet, smartphones and etc). What would…
-
1
votes1
answer672
viewsA: Error 404 (Not Found) on Facebook
From what you described Facebook is not able to access the page because it is not visible to the public or is not only returning to Facebook. If this is the last option, check if there is any code…
-
22
votes6
answers14122
viewsQ: How to simulate a higher resolution screen to check the behavior of a website?
Is there any way to simulate a higher resolution screen to check how a website behaves? I currently use 1440x900 and need to test the interface at higher resolutions.
-
45
votes5
answers41645
viewsQ: What are the advantages and disadvantages between Mysql and Postgresql?
I have been with this doubt for a long time, I see some people recommending the use of Postgresql, but it is not clear the advantages and disadvantages compared to Mysql. I want to define the bank…
-
0
votes3
answers54
viewsA: Remove margin with jquery
Try this: <script type="text/javascript"> $(window).load(function(){ $(".content").css('margin','10px'); }); </script>
-
1
votes3
answers255
viewsA: How to clear the cache in Opera 12?
Try this on the head of your page to not store the cache: <meta http-equiv="cache-control" content="no-store, no-cache, must-revalidate, post-check=0, pre-check=0"> <meta…
-
4
votes3
answers1686
viewsQ: How do I fix the background of a <div> in iOS Safari (iPad)?
I have a layout that works very well on the desktop, but when viewing in iOS Safari (iPad specifically) it does not appear as expected. I want the div background to stay fixed when scrolling the…
-
45
votes5
answers76380
viewsQ: How to pin a "horizontal menu" to the top of the window when scrolling the page?
I have a layout with a horizontal navigation bar at the top of the site, it is with margin-top:100px, when scrolling the page the menu should be fixed at the top of the window but with margin-top:0.…
-
6
votes18
answers139957
viewsA: What is the best way to center an element vertically and horizontally?
If you know the element size (eg 200px 200px), you can perform the alignment as follows: CSS #alinhamento{ top:50%; position:absolute; } #elemento{ height:200px; width:200px; margin:0 auto;…