Posts by Marta • 1,326 points
19 posts
-
1
votes3
answers812
viewsA: How to style results made with Javascript?
When you return your answer, you use document.writeto write the result. document means the entire document. What we can do is add a div to display the result. In HTML, we add a div <div…
-
3
votes1
answer1674
viewsA: How to do an Exit Popup with jQuery?
The idea is to make an element appear when you take your mouse off the screen. One of the ways would be to make a div with a height of 5px and leave fixed at the top of the page; when the mouse goes…
-
2
votes2
answers1078
viewsA: Pagination of Divs
You can use jQuery to know when to close one ul and open another: $(document).ready(function(){ $("</ul><ul>").insertAfter("li:nth-child(3n+0)"); }); In this example I cut it every 3 li.…
-
6
votes1
answer1370
viewsA: Get value from a <table> Row if checkbox is checked
I don’t know if it’s better or if it’s the case, but I thought of a solution with jQuery $(document).ready(function(){ var total = []; $("tr").each(function(){ total.push(""); });…
-
51
votes7
answers21565
viewsA: Why is the use of frames and iframes considered bad practice?
The main reason frames and iframes are bad practice is that they are neither accessible nor indexable by search engines. If a search engine starts to "read" your page and reaches an iframe, it skips…
-
10
votes1
answer12118
viewsA: Break lines in CSS without using extra elements
You can use the pseudo-element :after a:after{content:""; display:block; clear:both} The :after works from IE8. With it you create an element in CSS, so you don’t need to mess with your HTML.…
-
6
votes3
answers7963
viewsQ: Making an OCR with no dependencies in PHP
I have a project where people schedule phrases for Tumblr. Today it works from the Kindle and I’m already seeing the Kobo files. But today I come to ask for help for the third part: I would like to…
-
4
votes2
answers4079
viewsA: Picking up content from div with equal classes
You’re taking all the content because when you put it $('.insert').text() you take the text of all elements with class . Insert. It works if you do a click event: $(".insert").click(function(){ var…
-
2
votes1
answer1220
viewsA: Is there any way in HTML to prevent the user of a site from using the browser zoom?
Although I agree with colleagues in the comments, something that might help is to put css in the property background-attachment. body { background-image: url('endereco-da-imagem.gif');…
-
8
votes6
answers57963
viewsA: How to convert UTF-8 characters in PHP
Some things can help, for example save the file even with the correct encoding - in Notepad++ for example you can change the file encoding. put a UTF-8 metatag on the page: <meta…
-
0
votes2
answers537
viewsA: Configure cPanel on server
You need to go where your domain is registered and change its Dnss to the hosting Dnss. It’s not in Cpanel, it’s where you bought the domain.
-
1
votes1
answer71
viewsA: Widget for Events
You won’t be able to do this only with HTML/CSS. You need a programming language like php to save and display event data. Here is a full tutorial that can help you in this part of PHP…
-
1
votes1
answer52
views -
9
votes18
answers139957
viewsA: What is the best way to center an element vertically and horizontally?
I didn’t see, among the answers, my favorite solution: HTML <div class="block"> <div class="centered"> <h1>Some text</h1> <p>But he stole up to us again, and suddenly…
-
2
votes1
answer771
viewsA: Parallax Scrolling Horizontal
Theoretically it is similar to vertical, but perhaps even easier. A number of elements are aligned with float:left. Only one appears on the screen, with a 100% width and height div and…
-
1
votes1
answer58
viewsA: Change the content of onclick according to page size
You can use it this way var mq = window.matchMedia( "(min-width: 500px)" ); if (mq.matches) { // mostra imagem com o tootlip } else { // mostra imagem com link } Source:…
-
3
votes1
answer1265
viewsA: Removing columns from a <table> via Javascript
You can keep the table with width:100% in css and fix the minimum width of columns with min-width:25% for example. When I handled this, I calculated the width of the column with the amount of…
-
1
votes1
answer85
viewsA: How to put an overflow on a scripted div to leave fixed lists in the header?
You could put an extra div encompassing the . divContext so that the father has the scroll? In jQuery you could do something like $(".divContexto").wrap("rolagem"); And in CSS a div . scroll that…
-
2
votes5
answers22327
viewsA: Simple Rotary Banner
I have an example using only HTML and CSS. HTML: <section class="carousel"> <input type="checkbox" id="toggle"> <label for="toggle" onclick>pausar</label> <div…