Questions tagged as 'html'

2
answers

What is the "o" element automatically created between my buttons in HTML?

I'm developing a layout and when I put two buttons side by side, an "o" element is created in my HTML, which makes the spacing between the two, I could solve by creating a margin negative on the left, however I would like to know if this "o" el...
asked by 12.06.2017 / 17:38
3
answers

Execute function for each class you find

I'm creating a picture gallery within thumbnails by automatically setting them where I use the calculation below: if($('.thumb img').width()<$('.thumb img').height()){//portrait $('.thumb img').css({ maxWidth:'100%' }); $('.thu...
asked by 16.12.2013 / 17:45
2
answers

I can not set margin-top / bottom / right for block element, why?

I have a <p> element inside a <div> , like this: HTML <div> <p>texto</p> </div> CSS div { width: 30px; height:30px; background-color: green; } p { width: 30px; height:30px;...
asked by 28.01.2014 / 22:06
2
answers

Change title style within a tag

Is it possible to change the CSS-only style of the title attribute that some HTML tags have? <a href="#" title="Alterar esse estilo aqui">Passe o mouse</a> Note that by default it has only this yellow background...
asked by 22.10.2018 / 15:56
2
answers

How important is Integrity and CrossOrigin attributes?

I've been giving it a look, but I still have that doubt. Currently some frameworks, their link and script are coming with attributes integrity and crossorigin . Ex: <link rel="stylesheet" href="https://maxcdn.b...
asked by 21.01.2016 / 18:22
1
answer

How to filter the format of the file by the input type file?

When it is sent I make a validation checking if the chosen file is of the format that I need: function validaExtensao(id) { var result = true; var extensoes = new Array('xls'); // Arquivos permitidos var ext = $('#' + id).val().split(...
asked by 06.01.2016 / 18:32
2
answers

How to solve an elseif that needs to be unique?

I want to create a page where when a checkbox is checked, a message is printed, but if all checkbox is checked, print another message. <!DOCTYPE html> <html lang="pt-br"> <head> <title>Form de exemplo com...
asked by 15.12.2015 / 20:11
4
answers

JQuery find tree

I have the following context: <div class='pai' id='item'> <div class='form'> <div class='filho' id='item1'> <div class='filho' id='item3'> </div> </div>...
asked by 21.09.2015 / 15:09
2
answers

"Floating" sidebar within an element when scrolling

I have a layout Bootstrap with a sidebar on the right and I need it to "rotate" (up / down) when doing scroll , but not on top of the header and footer. that just "floats" within div[role=main] My layout: Mycode:<headerclass="c...
asked by 15.12.2014 / 04:28
3
answers

Place button side by side

Hello I wanted to have a back button and another to go to the analysis, when I go to see the site they always appear in one down and another up. My code is: <a href="guardadorrebanhos.html"> <p align="center"><input ty...
asked by 02.03.2015 / 10:29