Questions tagged as 'html'

3
answers

How to redirect the site when it is a mobile?

I have the following code that should work, but in mobile it does not work in the chrome browser: var permitir_mobile = true; var mobileUrl = 'http://m.meusitemobile.com.br'; $(document).ready(function() { var e = window; redirectIfWi...
asked by 28.07.2016 / 14:34
2
answers

Firefox serrated font

How to solve this problem in Firefox regarding fonts? Home Unfortunately Chrome is smooth and Firefox serrated.     
asked by 01.04.2015 / 14:23
4
answers

How to transform a rectangular image into a circle (without distorting it)

As shown in the image below, I can make the rectangular figure round, but it gets distorted: .posts .posts-item img { max-width: 100%; height: auto; display: block; margin: 0 auto; margin-bottom: 0.5rem; background-posi...
asked by 23.09.2016 / 18:21
2
answers

Adding values between html and javascript inputs

Dear friends, I'm trying to add sum between html and javascript inputs, but with this example, I've just been able to put in the html input. How do I implement in the javascript input and add the value along with the Total Value? NoHtmllooks...
asked by 19.12.2016 / 16:14
2
answers

Script to select only one checkbox?

I have the following code with a menu of type Accordion menu : function marca() {} body {font-family: Trebuchet MS;margin: 0px;} nav {width: 100%;} p {font-size: 14px;text-align: justify;} .item label {font-size: 14px;color: #333;heig...
asked by 15.03.2017 / 17:27
2
answers

How to make a gradient at the ends of a line, with CSS?

Probably this may be a repeated question, but as I do not know the name of the effect I can not find anything about it, the effect I want to do on the border is exactly the same as the image below: How can I do this? What's his name?...
asked by 20.12.2016 / 15:07
1
answer

Is it wrong to have the header and section tags and not have a footer?

I have a single page application, quite simple even, and I used the tags tags with% and% with%, without creating a header , as I found it unnecessary. Is there any rule or recommendation about this? Can I use a tag section wit...
asked by 10.09.2017 / 14:09
1
answer

jQuery doubt append appendTo inject HTML

Hello, I have a question. I have a variable containing an html structure and I need to inject a basic div (< div < / div >) around the contents of this variable, as a parent, using jQuery only. I think I should use append and ap...
asked by 18.05.2017 / 14:34
2
answers

Should I use a variable that takes an HTML element as global or local?

function message (className, text) { /*Esta variável*/var message = document.getElementById("message");/*Esta variável*/ message.className = className; message.innerHTML = text; setTimeout(function () { message.innerHTML =...
asked by 12.07.2017 / 13:32
1
answer

How to detect the collision between two squares / rectangles

Anyone who provides a response that explains all the nuances required to do so in javascript will earn the points.     
asked by 15.03.2017 / 14:53