Questions tagged as 'html'

1
answer

How to center rotated text in a div?

Hello beloved community! I'm rotating a p inside a div, but I can not centralize it, I'm having a hard time in css, I've tried setting a width: and height: for p, I left it as a self but it does not work. p.vertical {...
asked by 02.02.2018 / 18:10
1
answer

Problems at the height of a div, how to set 'automatic' height?

See the example in this fiddle I want the height of the blue div to be according to the height that the table on your right is. in the fiddle is well explanatory, any doubt I shot in the comments, I tried everything but I can not. <...
asked by 02.02.2018 / 15:12
2
answers

Contact Form PHPMailer does not work

I'm using the PHPMailer class to send emails, but every time I click the submit button it stays with the message forever in the "Sending your message ...". I do not know if the problem is in AJAX or my mail.php . On the console it gives...
asked by 27.01.2018 / 22:41
1
answer

How to make a div expand even though others are underneath

Well, I would like to make the div expand by clicking on it, and the other divs would decrease, vice versa with the others *{ margin: 0; padding: 0; } .divsCards{ position: relative; width: 420px; height: 480px;...
asked by 12.05.2018 / 03:14
1
answer

Value in the input element is not displayed - (although value is being loaded correctly) - Jquery

Hello I'm returning an object through ajax and assigning the values to their fields. Usingthetitlefieldasanexample:$('#txt_titulo').val(objeto_menu.titulo);However,InoticedonethingwhenIopenedthebrowserconsole.<inputtype="text" id="txt...
asked by 10.05.2018 / 22:16
1
answer

Retractable menu that does not close

I have a retractable menu, but I can only get it open but not close. I need it to close when clicking anywhere on the screen outside the menu. I know about html and css. Javascript is getting in touch with it now so I do not know how to sa...
asked by 12.04.2018 / 21:44
1
answer

Crop image css

I wanted to finish cropping the image in css completely and removed all edges, but I can only cut it down and the right side. I wanted to know how I could do to cut completely, here is the code I am using and the image. css: div { b...
asked by 11.04.2018 / 20:06
1
answer

Mouse eventListener does not work

I took this example below the book "Eloquent JavaScript" 2nd edition in Portuguese pg.184. The goal is to draw points on the screen using clicks: every time the mouse is clicked, a blue dot is created where the mouse is pointing. But beyon...
asked by 15.04.2018 / 19:55
2
answers

How to add a class to an HTML element, through JavaScript. In my case, I need to add a class in the h1 element below

I need to add a class in element H1 var div = document.createElement("div"); var h1 = document.createElement("h1"); var p = document.createElement("p"); h1.textContent = "Me Ajuda"; p.textContent = "Preciso adicionar uma classe"; d...
asked by 09.04.2018 / 02:19
1
answer

Problem with background-image accessing google chrome browser on mobile

I'm having trouble with my background image on my page but just by accessing the mobile from Chrome or the default mobile browser, Mozilla Firefox from the mobile works perfectly. body{ background-image: url('/assets/img/background.jpg');...
asked by 09.04.2018 / 19:50