Questions tagged as 'background-image'

2
answers

How to put an image in an HTML button

I'm creating a button on a particular page and would like to put a background image. I'm trying to use the background-image:url() tag in CSS but it's not working. HTML: @model WebApplication3.Models.Comercial.ComercialModels @{...
asked by 23.10.2016 / 18:01
1
answer

How to adjust Background to fit inside container without cutting anything?

I have a pattern that repeats in both X and Y that I want to use as background in a div , but I would like it to fall within div as shown in the image. (I want you to have only full stars in the background) . I wanted the%...
asked by 02.10.2018 / 20:30
2
answers

Background-position is not working

Hello everyone. I used the image-replacement technique, I tried to leave the image centered using the background-position: center center, but the position of the image remains unchanged. Someone could tell why background-positioning is not worki...
asked by 07.08.2017 / 22:54
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
2
answers

background image of android screen

Good afternoon!    I'm trying to put a background image of the login screen of my application, this image was downloaded from the unsplash website, and when I put it in the background property of my layout the following error is displayed:...
asked by 17.05.2018 / 22:36
1
answer

background-image animation with CSS

blz? I have a Parallax (parallaxie.js) and background image animation with CSS (KeyFrames). Follow the link: link It turns out that the animation is not 100%, sometimes it seems a bit bugged, after a few moments, a minute (sometimes l...
asked by 07.08.2018 / 14:51
1
answer

Header with bg responsive

I'm starting a project now and I want to leave the header responsive, but I can not. The header has an effect in js that changes the images to each refresh, but I can not assign the correct height to be responsive, it only works in px, and px is...
asked by 30.01.2018 / 19:10
2
answers

Can I put a background image in a section?

I created a section in my HTML and in the CSS I put: section{ background-image: url(../img/bkg2.jpg); } But the image does not appear. And I checked the path and it's correct.     
asked by 24.02.2018 / 14:54
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