Questions tagged as 'html'

1
answer

Absolute positioning from outside the edge

When I position an element absolutely within another element (with relative position), the coordinates that I put are counted from the ends of the container without taking into account the edges (which would be equivalent to the inner part of th...
asked by 21.10.2016 / 06:53
3
answers

Add rows to Table with JavaScript, DOM

I have a question, I currently have an HTML table, but I would like to add rows dynamically, I'm trying to do it in the DOM way, but I can not get it, my table looks like this: <table border="1" id="tablaprueba"> <thea...
asked by 29.08.2018 / 04:28
1
answer

send alert for if in javascript

I am creating a form, and I have a situation of a field that has to be filled depending on the multiplication of some if it is bigger than it has to fill the field if it is smaller that you do not have to fill it. I am doing this with javascr...
asked by 30.08.2018 / 19:05
3
answers

How to change the css styles of a select options?

I want to change the appearance of the box that contains the options of a select , use the selector of the option tag, to modify the options, and although if you change the select options, it is still contained in a box with...
asked by 30.05.2017 / 16:35
2
answers

Order of the elements in Bootstrap 4

I'm looking for some way to sort the div so that the image is always on top of the texts, the idea is that when it is in PC you can see one next to the other and in mobiles there is always the image above the texts , the way I have the first blo...
asked by 19.07.2018 / 21:31
1
answer

iframe does not auto-reproduce on screen responsive mode

I have the following iframe with autoplay, in my Google Chrome normal mode it plays perfect, but if I enable the development tools and put the screen in responsive mode, it stops auto-playing, leaving only the preview of the video with th...
asked by 26.04.2017 / 09:16
1
answer

How to load and view a local image

How can I show an image in img by selecting the file with input type file ? <img id="img1" src="" height="100px" width="100px" border="solid 1px"> <input id="inputFile1" type="file"> <script>...
asked by 03.01.2017 / 19:41
2
answers

MENU: The arrow does not change down again

Here I get the arrow pointing up $('.menu').click(function(){ $(this).children('.menu-sub').slideToggle(); }); $(".sidebar-nav > li.menu > a").click(function(){ if($(this).siblings('ul.menu-sub').hasClass('in')){...
asked by 05.01.2017 / 16:41
2
answers

How to solve the spaces between the inline-block elements?

When I use elements with the inline-block property, a space appears between the elements: html, body { margin: 0; padding: 0; } .padre .hijo { display: inline-block; padding: 5px; background-color: red; } <div cla...
asked by 06.12.2017 / 20:22
1
answer

Swap items from one list to another

I have an example of these lists: <h2> Lista 1 </h2> <ul class="lista1" id="lista1"> <li>Item1</li> <li>Item2</li> <li>Item3</li> <li>Item4</li&g...
asked by 31.08.2017 / 19:06