Questions tagged as 'html'

3
answers

Is there an XHTML5 (XHTML + HTML5)?

XHTML is HTML with strict syntax (must be a valid XML). Can I use it in conjunction with HTML5?     
asked by 01.04.2015 / 19:44
1
answer

How to put the scrollbar inside the body?

I styled the scrollbar of my website for webkit, and I put the background of the track as transparent, however I would like the thumb to overlap the body content, simulating a position absolute effect, and the body 100% without leaving the paddi...
asked by 15.12.2016 / 14:16
5
answers

Is it possible to include elements in the DOM after it is loaded and ready?

I have a table that, depending on the amount of an X value, it inserts a set of attributes at the end of the page (fields). These elements have events assigned to them. But that's not the point. Problem is that: since I add the elements after...
asked by 06.02.2014 / 17:08
4
answers

Maximum amount of elements sent by a form?

I would like to know if there is a maximum amount of elements that I can send from one form to another via POST as well as via GET . I know that if I pass my data via GET , there is a maximum length of URL , varying a...
asked by 16.01.2015 / 12:19
3
answers

Margin in percent is relative to what?

I'm currently seeing a video on youtube on how to create a responsive website . He, at a certain point (minute 24.55), sets the margin of an image in percent rather than using the normal pixels. What I do not understand is what width or...
asked by 11.10.2014 / 12:51
3
answers

Overlay a button to an img

The idea is to do a "tumbnail" where the play button is (centered) on the image ... <div> <img src='imagems/imagem1.png'> <button>Play</button> </div> Thank you for your suggestions and your availability.     
asked by 08.07.2014 / 15:15
2
answers

How to include a indent when using the tab key in a textarea?

I have a <textarea> that will work as a small source editor. I wanted you to press Tab to include a indentation in the text instead of focusing on the next element, which is the default behavior for the key. I wanted it to be poss...
asked by 15.12.2014 / 16:03
5
answers

How to center a div with position: fixed?

I wonder if it's possible to center a div with position:fixed ? Currently I tried to centralize it using margin:0 auto but it did not work ... unfortunately as the width of my div fixed will be dynamic I can not use left and...
asked by 22.09.2014 / 23:15
2
answers

Infinite loop when walking recursively through DOM nodes

I have div with contenteditable=true in my document and want to highlight certain parts of the text as the user types (add spans). For this I first need to extract the text typed by the user in the form of a simple string, without...
asked by 10.01.2014 / 14:38
3
answers

How to make a file available for inline dowload in html?

I wanted to create a link to a dowload in my HTML, but I did not want to save this content in a separate file, but in the html itself. In images you can do something like this <img alt="Embedded Image" src="data:image/png;base64,iVBORw0K...
asked by 05.02.2014 / 13:02