Questions tagged as 'html'

2
answers

How to limit the interval between two dates in the input type="month"?

Although they are 3 questions, I think they all apply to the same case on the range / range Is it possible to limit the "interval" between two dates in <input type="month"> ? If yes, is there any mandatory format we should f...
asked by 06.09.2018 / 16:57
3
answers

Align span right inside div

I'm wondering how to align a text within the span by example: This is my HTML Ineedtoleaveitlikethis,right-alignedleft-handtextandleft-alignedright-handtext,asanexample: HTML:<divclassName="viewInstrument-output"> <div classN...
asked by 16.05.2017 / 13:59
3
answers

How to put scroll at end of div?

I have the following div <div style="height:300px;overflow-y:auto;"> ... </div> Inside it will have several texts and will make the scroll appear. When I refresh the page the scroll is at the beginning, but I need it to s...
asked by 30.08.2016 / 04:17
3
answers

How to put icon inside input using Awesome Font?

I'm trying to do a search field with an icon using Awesome Font, I want it to look like this: Butitlookslikethis: What is the best way to put button within input ? HTML : <form> <input type="search" /> <bu...
asked by 20.10.2014 / 02:53
4
answers

How to change background with javascript?

I have a function in javascript that returns the day and time for text, for insertion into html, how can I add styles to this text, should I do within javascript or even in html function date_time(id){ date = new Date; year = dat...
asked by 14.02.2014 / 15:44
2
answers

Rows down from a drop box down when we click the "down" button

I have a list of Brazilian states created with the command select/option of HTML5, When I click to choose the state, 20 lines appear (states) and goes beyond my textbox down. I want to restrict the number of lines / states that appe...
asked by 07.10.2014 / 03:26
2
answers

What are the differences between the "pt" and "en-br" values of the lang attribute?

I was not able to see any differences between the two values in the tests. Anybody know? To help: The first two characters of the value define the Language Code Reference (ISO 639-1) and the last two characters, after the tab, identify the Count...
asked by 20.03.2016 / 21:27
3
answers

How to load a dropdown with a selected value

I have a method to perform change on some data. Among these data, I have a dropdownlist that contains the periods of the courses. When I select to change, I need the dropdown to come with the option checked, as it is in the database. I ne...
asked by 08.06.2015 / 18:56
2
answers

Group css selectors to reuse code

Given my and html and css respectively: <!DOCTYPE html> <html> <meta charset="UTF-8"> <head> <link rel="stylesheet" type="text/css" href="css/estilos.css"> <title>Teste</title> <...
asked by 10.11.2016 / 14:18
3
answers

How to make a style for "broken image" (when the image does not load)

How would it be possible to make a CSS style for when the image is not loaded on the page? When you have the link to the image, but for some reason it is not loaded on the page, or if the link or image path is wrong, or if the image is not in...
asked by 09.08.2018 / 14:53