Questions tagged as 'css'

2
answers

Height Proportional to Width, responsive

Below we have a grid layout, fluid, with no images. What I would like now is that the height is proportionally responsive to the width. link .my-prop-grid { width: 46%; display: inline-block; vertical-al...
asked by 25.04.2018 / 19:37
1
answer

How do I get a single div with the same class in jquery?

How can I use the click function in jquery with classes of the same name? Type click and appear element only in the clicked div and not in the others. I've already tried using $(this).next('bla').addClass('blablabla') and I was not suc...
asked by 01.04.2018 / 06:36
2
answers

Button to select which carousel to display

I created two illustration carousel and another carousel of a house, and I need two buttons, Illustration and Plant, when loading the page, will show the carousel illustration as main, and when clicking on the plant carousel should hide illustra...
asked by 28.03.2018 / 16:29
2
answers

I have questions that when clicked on it, the onclick event is called a div that is in display - none appears

HTML <a href="#" onclick="Resposta()"> <li>Como comprar passagem?</li> </a> <div class="resposta_duvida">Apareça por favor</div> CSS .resposta_duvida{ display: none; } JAVASCRIPT <script&g...
asked by 26.03.2018 / 00:19
2
answers

Generate dynamic borders

I have the following form: <input type="number" min="0" value="0" /> <input type="number" min="0" value="0" /> <input type="number" min="0" value="0" /> <input type="number" min="0" value="0" /> <button>GERAR</...
asked by 26.03.2018 / 05:33
2
answers

how to work with Bootstrap table?

Look at the figure HowdoIleavethedatenexttothewordDollar?That'sthecode!<divclass="row"> 12/12/2000 </div> <div class="row"> <table class="table"> <tr> &l...
asked by 20.03.2018 / 11:36
2
answers

How to keep 2 elements on the same line Grid bootstrap 4

What I need is this: WhatItriedtodowiththeknowledgeIhaveinbs4andgridwasthis: <div class="card-body"> <h5 class="card-title">Pizzaria 1</h5> <hr class="ml-3 mr-3"> <div class="row no-gutters"> <...
asked by 17.03.2018 / 05:08
2
answers

Delimit table within a modal with css

I have a modal that shows a table with some additional information from another table (I'll call it tableP ), the problem is that tableP has many items, which makes it relatively large, and the table that is in the modal is generated from it, m...
asked by 07.03.2018 / 17:20
1
answer

Calculate Auto Aspect Ratio Automatically

With the example below we calculate the aspect ratio of an image by setting Width / Height manually, so the aspect ratio value is generated to be put in padding-bottom: What I would like is something similar: I want to get the widht / height...
asked by 08.03.2018 / 17:52
2
answers

Change bgcolor according to class

For now I do not have much knowledge in JS and I would like to ask a question ... I need to change bgcolor according to the 'active' class. For example: "if the active class is in conjunction with 'banner-bg-1', the color of the body will be...
asked by 09.03.2018 / 12:16