Questions tagged as 'background'

4
answers

Apply opacity to a Background

I'm trying to apply the opacity to my background image. I've tried using rgba, and the pseudo-class after. Is there any other way to apply this filter only to the image without affecting the content? This is HTML <div id="banner" style="...
asked by 29.06.2017 / 15:48
1
answer

How can I make "unskew" the background image?

Good morning, I'm no expert on this and I'm tired of looking for a solution to counter the skew given to the main container. Basically all the solutions that I have been able to understand so far do not solve. The elements above the image I g...
asked by 15.05.2017 / 12:07
1
answer

Problem with Background Image using Bootstrap 3

I'm having trouble displaying the background image when the site is accessed by Chrome on my smartphone, the PC displays normally (responsive). HTML <!DOCTYPE HTML> <html lang="pt-br"> <head> <meta charse...
asked by 28.04.2016 / 20:33
1
answer

Change site background with script according to day time

I have this script that changes the color of the website as the page refreshes. <script> function random_bg_color() { var x = Math.floor(Math.random() * 256); var y = Math.floor(Math.random() * 256); var z = Math.floor(Math.r...
asked by 04.01.2019 / 01:21
2
answers

How do I insert an image as the background of a div?

I want to add an image as the background of a div, and for this, I'm using the following code: <div class="container"> <div class="row"> <div class="col-xs-12"> <div class="imagemDeFundo">...
asked by 14.09.2016 / 21:41
1
answer

Define background LinearLayout from String Variable

I have a function that takes a number (in the String format) as a parameter and checks if it is between the numbers 1 to 5. Here's the function: if (fundo.equals("1") || fundo.equals("2") || fundo.equals("3") || fundo.equals("4") || fundo.equa...
asked by 30.03.2016 / 15:38
3
answers

Receiving backgroud-image attribute of a div

I'm trying to get it like this: var obj = webBrowser.Document.GetElementById("senderscore").GetAttribute("background-image") but it returns empty. The background-image of div field contains a url. And it belongs to a class....
asked by 12.06.2014 / 02:15
3
answers

How to change the properties of a direct imported image in CSS?

Let's say you have defined an image as the background of a div as follows: #div { background: #111111 url(../imagens/imagem1.jpg) top center; background-size: cover; How do I change the properties of this image, for example: filter: g...
asked by 29.05.2018 / 00:44
1
answer

I have a problem with this slideshow

I've been trying to find the problem for the longest time (note: I'm a beginner in this area), it happens that when the background changes the image, in a small interval it's like a flash, and how I changed from jquery to css, because was not ma...
asked by 06.06.2017 / 04:34
1
answer

Function in Background - Android

Hello, I need to put an animation on the screen, it can only be visible for 10 seconds, after that time it disappears, and if the user clicks a specific button the animation comes back. Can someone help me? I can not solve it. Thank you!    ...
asked by 25.05.2016 / 21:27