Questions tagged as 'css3'

1
answer

CSS - Media Queries loading backgrounds. How do they behave?

I'm making a site responsive and would like to load different images in the background depending on the device. I will respect the use of mobile user data and do not want to force the loading of a 1920x500 image for example. If I use media qu...
asked by 15.09.2017 / 16:47
1
answer

Replace background-image by: after

I have a div with a pseudo-class :after where I create a square and put a little figure inside of an arrow down. I'm trying, with the code below, to click on this div replace the figurine with a similar one: $(document)...
asked by 30.09.2017 / 01:00
0
answers

Create element among child elements of the same parent

According to the code below: var ul = document.getElementsByTagName('ul'); var ref = ul.item(0).children; var saida = ''; for (i = 0; i <= ref.length; i++) { if (i == 0) { var HTMLString = "<div style='background-color: blu...
asked by 14.09.2017 / 22:29
1
answer

Grid system on Ionic

I want to create a responsive login screen, my screen has only three elements, an image in the middle and two more buttons, each element in a row of the "ionic grid" ... I would like to define a way to always keep the and the image in the middle...
asked by 26.09.2017 / 22:08
1
answer

How to change the background color of a DIV with Class and Id defnidos?

I'm having a problem with my Javascript code, I can not change the background of a div, so I set it in CSS with a class and its color is white. function escolha(id){ if(document.getElementById(id).style.backgroundColor=="#FFFFFF"){ do...
asked by 26.09.2017 / 07:32
1
answer

Some hr's do not appear

I have the style for a hr below: hr { width : 100%; height: 1px; size:1px; background-color: rgb(0,0,0); } and I have 4 hr's on the page. The problem is that when I do height: 1px; size:1px; or height: 1...
asked by 29.09.2017 / 15:19
2
answers

PDF view in iframe

I already have some time I'm looking for how to view the PDF files in an iframe or a div on the page itself instead of opening it in a new one and using Adobe Reader. But the problem is that the files are not fixed, they come from a code that...
asked by 25.03.2014 / 18:42
1
answer

how to set a background-image in the src of an img tag using jquery?

I'm creating a modal to display a gallery and the idea is that, when clicked on the images, the modal searches the background-image of each <img> and applies to the src. The modal works, but the image does not appear because the src...
asked by 14.08.2017 / 02:24
0
answers

Force table header to follow width of other columns dynamically

I'm using flexbox to do everything on the site, including the table, first I tried using the basic structure of a table ( thead , tbody and tfoot ), however I could not, so I tried to do with simple rows and columns....
asked by 21.07.2017 / 19:43
0
answers

Ionic slider button 3

I need to apply the sliding effect with these buttons. I have the following html: <ion-row class="row-two-button"> <ion-col class="button-group"> <button ion-button round color="secondary" [ngClass]="{dark: travelDestina...
asked by 29.08.2017 / 13:54