Questions tagged as 'html'

3
answers

How to horizontally center one div within another?

How can I horizontally center a div that is inside another div using only CSS? In this case, we can assume that div external outer has width of 100%. <div id="outer"> <div id="inner">Este é o elem...
asked by 21.12.2013 / 16:27
4
answers

How can I not allow a character to be typed in the textbox, with javascript / jquery?

I have a Textbox: <input type="text" name="indice" class="number"> I wanted it when someone typed a comma in this Textbox to block it from appearing in Textbox. How to do this in the best way? I would not want it if the person k...
asked by 15.01.2014 / 18:24
5
answers

What is the / datalist tag for?

When I was using Sublime Text to edit a html file, I noticed that it suggested a tag with the name of datalist . I've never seen this tag before, but it does seem that really exists . As I did not see any explanation in Portu...
asked by 11.04.2017 / 18:39
4
answers

Include another HTML file in an HTML file

Scenario: I'm setting up a layout, which will be used by third parties and I do not know what language will be used. I have two divs, one will be the left menu and the other the content. They are separated by a Splitter , my questions are:...
asked by 11.04.2014 / 21:33
4
answers

How to apply readonly in a select?

I think most here know the difference between readonly and disabled . Select Readonly readonly does not apply correctly to select <select name="field" readonly="readonly"> <option value=""...
asked by 12.05.2016 / 19:43
3
answers

What is the impact of changing the default behavior of an HTML element?

Recently there was a question here in Stack Overflow about changing the default behavior of checkbox to act on the page as a radio , that is, when selecting an item, the others should be deselected, keeping the selection unique. Res...
asked by 12.06.2017 / 19:59
4
answers

What is the correct way to simulate a script with a new language?

Suppose I have implemented a new language and have a functional interpreter written in javascript. Something like mylang.interpret(code_as_string) . Now I would like to create an interface where I can insert my language code into <scrip...
asked by 11.02.2014 / 20:48
2
answers

What is the semantic difference between em and strong? Do they replace i and b?

They say that the element <em> should be used for emphasis, and the <strong> for even more intense emphases. That seems pretty confusing. When and why to use each one? And <i> and <b> , should t...
asked by 12.09.2014 / 14:46
1
answer

Which css selector has priority?

My question is very objective. Regarding css selectors. I have the following code HTML and CSS : #element p{color:blue;} .element p{color:red;} div p{color:pink;} div.element p{color:yellow;} div[name="ele...
asked by 01.08.2016 / 19:27
2
answers

Any way to style "parent" element with CSS

Hello, is there any way to select the parent element of another element with CSS? To be more specific, I am studying in localhost using the phpBB3 forums platform, when a message is grateful it gains the .bg1 class (the default being...
asked by 24.04.2014 / 19:03