Questions tagged [background]
Background typically refers to the rendering behind a container element's contents - usually on a web page, Windows form or other UI presentation medium.
background
1,641
questions
31
votes
2
answers
15k
views
Using percentage values with background-position on a linear-gradient
Is there any way to make background-position take percentage values? Currently my button only works with an explicit values for width and background-position.
body {
min-height: 100vh;
...
7
votes
2
answers
6k
views
How to remove the stripes that appears when using linear gradient property [duplicate]
When using linear-gradient CSS property, the background appears without stripes when using left and right as direction value. But when direction value is given as top or bottom, stripes appears in the ...
455
votes
45
answers
397k
views
How to detect when an Android app goes to the background and come back to the foreground
I am trying to write an app that does something specific when it is brought back to the foreground after some amount of time. Is there a way to detect when an app is sent to the background or brought ...
938
votes
22
answers
1.9m
views
Stretch and scale a CSS image in the background - with CSS only
I want that my background image stretch and scale depending on the browser viewport size.
I've seen some questions on Stack Overflow that do the job, like Stretch and scale CSS background for ...
153
votes
13
answers
560k
views
CSS3 background image transition
I'm trying to make a "fade-in fade-out" effect using the CSS transition. But I can't get this to work with the background image...
The CSS:
.title a {
display: block;
width: 340px;
...
662
votes
31
answers
862k
views
How do I run a node.js app as a background service?
Since this post has gotten a lot of attention over the years, I've listed the top solutions per platform at the bottom of this post.
Original post:
I want my node.js server to run in the background, ...
108
votes
9
answers
237k
views
Can I set an opacity only to the background image of a div?
Let's say I have
<div class="myDiv">Hi there</div>
I want to put a background-image and give it an opacity of 0.5 – but I want that the text I have written will have full opacity (1).
...
78
votes
8
answers
151k
views
Transparent control over PictureBox
In my C# Form I have a Label that displays a download percentage in the download event:
this.lblprg.Text = overallpercent.ToString("#0") + "%";
The Label control's BackColor property is set to be ...
23
votes
7
answers
3k
views
Why does styling the background of the body element affect the entire screen?
When you style the background of the body element, why does the styling affect the entire screen and not just the body element itself? Let's say I create the following rule:
body {
width: ...
344
votes
30
answers
604k
views
How to get div height to auto-adjust to background size?
How do I get a div to automatically adjust to the size of the background I set for it without setting a specific height (or min-height) for it?
116
votes
6
answers
263k
views
How do you change Background for a Button MouseOver in WPF?
I have a button on my page with this XAML:
<Button Content="Button" HorizontalAlignment="Left" VerticalAlignment="Bottom"
Width="50" Height="50" HorizontalContentAlignment="Left"
...
155
votes
16
answers
138k
views
Run PHP Task Asynchronously
I work on a somewhat large web application, and the backend is mostly in PHP. There are several places in the code where I need to complete some task, but I don't want to make the user wait for the ...
41
votes
4
answers
257k
views
Setting background images in JFrame
Are any methods available to set an image as background in a JFrame?
10
votes
3
answers
15k
views
Show an animated BG in Swing
An animated (cycling) GIF can be displayed in a JLabel or in HTML (in formatted text components like JEditorPane) and be seen to cycle.
But to load an image to paint as the background of a container, ...
68
votes
7
answers
46k
views
iPhone - Backgrounding to poll for events
For quite a while I'd been looking into a way in my iPhone app to poll every X minutes to check the data counters. After much reading of the Background Execution documentation and a few trial apps I'd ...