background-image

CSS Square background - image

孤街浪徒 提交于 2021-01-13 09:38:28
问题 I tried to make some square background using CSS only, but i got just line background without the option of horizontal lines. This is my example code: .container{ background-color:red; width: 400px; height:200px; margin:0 auto; background-image: linear-gradient(90deg, rgba(255, 255, 255, .5) 95px , transparent 50%), linear-gradient(rgba(255, 255, 255, 0) 5px, transparent 100%); background-size: 100px 100%; } <div class="container"> </div> And this is the result that I am looking for This is

How to set background image to a shape

梦想与她 提交于 2021-01-02 20:23:51
问题 I am new to Xamarin Forms, I am from WPF background. In WPF it's easy to set background image(remote) to a shape. Is there any equivalent thing in Xamarin Forms? 回答1: After Shapes and Paths were introduced to Xamarin.Forms you can achieve it inside a Grid: <Grid HorizontalOptions="Center" VerticalOptions="Center"> <Ellipse Stroke="blue" StrokeThickness="5" Fill="Black" Aspect="Fill"/> <Image Source="xamarin.png" WidthRequest="300" HeightRequest="300"/> </Grid> Rounded corners with Frame :

iOS issue: background-size:cover/parallax (not responsive)

自古美人都是妖i 提交于 2021-01-01 20:35:37
问题 I have 4 divs stacked each with an img background covering the viewport, and I have a parallax effect (with GSAP) that moves the images at a different speed than the scrolling as I scroll down. This works fine on all devices except iOS : after deployment, while it still works perfectly on desktop and Android, the images don't scale down on iPhone so I see a clipped portion of my images, zoomed in. I'm aware there's an issue with background-size:cover and background-attachment:fixed on iOS,

The way to use background-image in css files with Django

一曲冷凌霜 提交于 2020-12-28 13:12:41
问题 I'd like to use an image file as a background-image on Django . But I do not know how. First, I read this and tried to write like following this in a css file. #third{ background: url("img/sample.jpeg") 50% 0 no-repeat fixed; color: white; height: 650px; padding: 100px 0 0 0; } But this does not work. {% load staticfiles %} #third{ background: url({% static "img/sample.jpeg" %}) 50% 0 no-repeat fixed; } and #third{ background: url("../img/sample.jpeg") 50% 0 no-repeat fixed; } don't work, too

The way to use background-image in css files with Django

﹥>﹥吖頭↗ 提交于 2020-12-28 13:12:28
问题 I'd like to use an image file as a background-image on Django . But I do not know how. First, I read this and tried to write like following this in a css file. #third{ background: url("img/sample.jpeg") 50% 0 no-repeat fixed; color: white; height: 650px; padding: 100px 0 0 0; } But this does not work. {% load staticfiles %} #third{ background: url({% static "img/sample.jpeg" %}) 50% 0 no-repeat fixed; } and #third{ background: url("../img/sample.jpeg") 50% 0 no-repeat fixed; } don't work, too

The way to use background-image in css files with Django

心已入冬 提交于 2020-12-28 13:12:24
问题 I'd like to use an image file as a background-image on Django . But I do not know how. First, I read this and tried to write like following this in a css file. #third{ background: url("img/sample.jpeg") 50% 0 no-repeat fixed; color: white; height: 650px; padding: 100px 0 0 0; } But this does not work. {% load staticfiles %} #third{ background: url({% static "img/sample.jpeg" %}) 50% 0 no-repeat fixed; } and #third{ background: url("../img/sample.jpeg") 50% 0 no-repeat fixed; } don't work, too

The way to use background-image in css files with Django

五迷三道 提交于 2020-12-28 13:11:52
问题 I'd like to use an image file as a background-image on Django . But I do not know how. First, I read this and tried to write like following this in a css file. #third{ background: url("img/sample.jpeg") 50% 0 no-repeat fixed; color: white; height: 650px; padding: 100px 0 0 0; } But this does not work. {% load staticfiles %} #third{ background: url({% static "img/sample.jpeg" %}) 50% 0 no-repeat fixed; } and #third{ background: url("../img/sample.jpeg") 50% 0 no-repeat fixed; } don't work, too

Tailwind css backgroundImage doesn't work for me

不羁的心 提交于 2020-12-15 11:47:33
问题 all, I'm trying to make tailwinds backgroundImage solution work, and I found help for many other tailwindcss problems here or on github, but not for this. It's not a complicated task, but still doesn't work. So as in the documentation, I want to create 2 simple background image to use for multiple viewsize. It is stated in the documentation https://tailwindcss.com/docs/background-image "By default, only responsive variants are generated for background image utilities." It means, without any

Tailwind css backgroundImage doesn't work for me

匆匆过客 提交于 2020-12-15 11:46:42
问题 all, I'm trying to make tailwinds backgroundImage solution work, and I found help for many other tailwindcss problems here or on github, but not for this. It's not a complicated task, but still doesn't work. So as in the documentation, I want to create 2 simple background image to use for multiple viewsize. It is stated in the documentation https://tailwindcss.com/docs/background-image "By default, only responsive variants are generated for background image utilities." It means, without any

css background image wont work

ⅰ亾dé卋堺 提交于 2020-12-06 06:35:31
问题 For the life of me I can't figure out why my background image wont show up. The file path is correct. Here is the HTML : <section class="banner_area"> <p>Hi, I'm a <span>Front-End Web Developer</span> who makes clean and responsive designs come to life. </p> </section> and the CSS : .banner_area { background-image:url("images/banneralt4.jpg"); height:600px; background-attachment:fixed; background-size:cover; background-position:center; position:relative; } it worked fine on my other one. same