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.

In CSS, the background property is a shorthand property for setting the individual background property values in a single place in the style sheet. This includes the image, color, tiling and position.

In Windows Presentation Foundation (WPF), the background attribute can be defined for any visual UI object. It should be noted that WPF applications use a background thread for handling rendering and repainting.

Desktop applications such as those written in .NET and Java may have colors or images used to fill the window of a particular frame or form.

For information about background threading, see the multithreading wiki.

14810 questions
112
votes
16 answers

How can I run a PHP script in the background after a form is submitted?

Problem I have a form that, when submitted, will run basic code to process the information submitted and insert it into a database for display on a notification website. In addition, I have a list of people who have signed up to receive these…
Michael Irigoyen
  • 22,513
  • 17
  • 89
  • 131
112
votes
10 answers

Gradients in Internet Explorer 9

Does anyone know the vendor prefix for gradients within IE9 or are we still supposed to still be using their proprietry filters? What I've got for the other browsers is: background-image: -moz-linear-gradient(top, #444444, #999999); /* FF3.6…
Sniffer
  • 6,242
  • 10
  • 45
  • 53
111
votes
6 answers

How do you change Background for a Button MouseOver in WPF?

I have a button on my page with this XAML:
108
votes
8 answers

Transparent background on CardView - Android

I want to do transparent background on CardView. I know backgroundColor but i have image on my Layout. Do you know how do it? Or something which work as cardview but i will set a transparent background? Regards
mac229
  • 4,319
  • 5
  • 18
  • 24
106
votes
8 answers

Can I set an opacity only to the background image of a div?

Let's say I have
Hi there
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). If I would write the CSS like this .myDiv { opacity:0.5…
Alon
  • 7,618
  • 18
  • 61
  • 99
99
votes
9 answers

Can a background image be larger than the div itself?

I have a footer div with 100% width. It's about 50px high, depending on its content. Is it possible to give that #footer a background image that kind of overflows this div? The image is about 800x600px, and I want it to be positioned in the left…
matt
  • 42,713
  • 103
  • 264
  • 397
98
votes
10 answers

div background color, to change onhover

I'm trying to make a div's background color change on mouse over. the div {background:white;} the div a:hover{background:grey; width:100%; display:block; text-decoration:none;} only the link inside the div gets the background color. what…
Ionuț G. Stan
  • 176,118
  • 18
  • 189
  • 202
95
votes
4 answers

How do I programmatically set the background color gradient on a Custom Title Bar?

There are many tutorials out there and questions on SO that implement custom title bars. However, in my custom title bar I have a custom gradient for the background and I would like to know how to set it dynamically in my code. Here is where my…
AngeloS
  • 5,536
  • 7
  • 40
  • 58
93
votes
9 answers

How to set custom ActionBar color / style?

I am using Android Navigation bar in my project, I want to change the top color in action bar to something red, How can i do that? I have something like this, and i want something like this, how can i achieve that?
hemantsb
  • 2,049
  • 2
  • 20
  • 29
92
votes
4 answers

iOS KeyChain not retrieving values from background

I am currently storing the username (email) and a salted hash of the email and password in the iOS KeyChain. I'm using the ARC'ified version found here. KeychainItemWrapper *wrapper = [[KeychainItemWrapper alloc]…
Bill Burgess
  • 14,054
  • 6
  • 49
  • 86
89
votes
4 answers

Color of stacked semi-transparent boxes depends on order?

Why does the final color of two stacked semi-translucent boxes depend on the order? How could I make it so that I get the same color in both cases? .a { background-color: rgba(255, 0, 0, 0.5) } .b { background-color: rgba(0, 0, 255,…
rmv
  • 3,195
  • 4
  • 26
  • 29
89
votes
7 answers

How to set transparent background for Image Button in code?

I can set ImageButton background transparent in layout.xml using: android:background="@android:color/transparent" How I can acomplish same thing using java code? Something like ib.setBackgroundColor(???);
Peter
  • 909
  • 1
  • 9
  • 9
87
votes
13 answers

draw diagonal lines in div background with CSS

I have a div for a preview box: .preview-content { background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAGklEQVQIW2NkYGD4D8SMQAwGcAY2AbBKDBUAVuYCBQPd34sAAAAASUVORK5CYII=) repeat; width: 100%; min-height:…
Ing. Michal Hudak
  • 5,338
  • 11
  • 60
  • 91
84
votes
1 answer

How to see if the background process is complete in SQLDEVELOPER

I have a csv unload process i am running in sqldeveloper, a process window popped up showing the progress of the export and it had an option to run the process in background, I picked the option but now how do I know if the process is complete?
venky80
  • 945
  • 3
  • 9
  • 10
83
votes
23 answers

Changing background color of selected item in recyclerview

How to change the background color of only selected view in my recycle view example?only the background color of clicked itemview needs to be changed. Only one selected item must be displayed with background color change at a time and the rest needs…
c0der
  • 2,751
  • 2
  • 14
  • 21