background

CSS Background Property - Shorthand vs Long form

As I understand it, when you use the shorthand property background, the browser first sets all background properties to their default values and then puts in the values that you're declaring. Is it then better to use background-color:white; instead of background:white? Does this change when you are putting in more values such as backgrou...

select only third li

how do i select only 3rd( or some other no. of my chioce) li element with jquery? for ex: how do i change the background of only third li with jquery. any help please ...

Link on body background image

Hello guys, I am trying to create one advert that use both empty sides of the website content. So i add the advert image as a background on BODY tag. look nice. But the problem is to add a link to it. I start with onclick att on body, but them all site content become clickable. Also i try to use different z-index for body and the conten...

Want to dynamically get images from a database and set it to CSS background

This is something I just couldn't figure out how to do in ASP.NET: I have a database of photographs, with upload/management and all that. What I want to do is to dynamically change/create a css file that changes the background of a div to one of the selected images on the database. (bing.com style). Is this possible using images store...

iPhone app crashing in 4.0 when switching between apps in background

Hi all, I have an iphone application which has to support multitasking. But when i open the app and do some work then close, it is going to background and when open different app and then again switch to my own app it is crashing.. Don't have idea about when i did mistake.. it is giving error like this: [__NSCFArray removeObjectAtIn...

Save the application state when it has been deleted from the background

Hi all, I am using following functions in my App delegate - (void)applicationWillResignActive:(UIApplication *)application { NSLog(@"applicationWillResignActive"); } - (void)applicationDidEnterBackground:(UIApplication *)application { NSLog(@"applicationDidEnterBackground"); } - (void)applicationWillEnterForeground:(UIA...

Entering background on iOS4 with active network stream

Following this question, the same is true for background networking. The documentation is very short-spoken on how to keep a network connection up and running while the application is in the background with the new VoIP API. The documentation says to add the VoIP string to the info.plist, set your signaling channel to VoIP with CFRead...

Separate background-image and webkit-gradient into two separate css declarations

Currently, I have the following class: #btnHelp { background: url(images/btnHelp.png) center no-repeat, -webkit-gradient(linear, left top, left bottom, from(#9adc6d), to(#6eba3a)); } I'd like to separate out the background image part from the gradient part into 2 separate classes, like this: #btnHelp { background-image: url(images/...

High Resolution iPhone Background

According to Apple's website, the iPhone 4 is 960-by-640-pixel resolution at 326 ppi. I made an image with these specs, however when I put it onto my iPhone as a background for one of my applications, it is way too big and you can only see the upper left corner of the image. How do I make it fit and how do I make a high resolution iPhone...

Replace Button Text With Image?

I'm trying to find out how to replace the input text with a image. I can't use background: url(.../.../); because I am using CSS3 Gradients. I thought with using multiple backgrounds I am able to add another one that has a transparent image but then the rest of the background gradients disappear. Can anyone help me? ...

How can I replace iPod with my app icon while my app is playing audio in background?

I (and you) know how to play audio in background. But my question is like that, some music play apps replace iPod icon which is shown on the first background app page with their icon while they are playing audio in background. How can I do that? ...

wait until images in background (css) are loaded

Let's say we have a slideshow of pictures. the thumbnails of those pictures are showed in div wrapper with a slider (that I created with Jquery) and each image is included in a <li> with a CSS background set, which of course represents the image. I chose to use a background-image for a layout matter because they all are different in size...

background application

in my application i have a voice who play every 30 min i put my code in - (void)applicationDidEnterBackground:(UIApplication *)application it's working great on simulator and on device but when someone call me or i call someone the application will terminate and don't play the sound again :( can anybody help me to solve the problem ?...

Strange ListView scrolling issues

I have a ListView in my app that has a background image. All of the rows are a semi transparent white (#35FFFFFF). Whenever I scroll the list, the rows turn a light green that obscures the background image until I stop scrolling (usually--sort of unpredictable). Sometimes it flickers between the background image/color and the green. And ...

9-patch stretching when it shouldn't stretch, Android

I am trying to set a 9-patch image as the background for one of my activities but it is stretching unescessarily making everything get all wierd. I used draw9patch to create it and added one pixel to the bottom left and one pixel to the top right. I then save it into my drawables directory as intro_bg.9.png. I want to stretch the very...

How to set background color for UIWebView in iPhone sdk

I have added the back ground color as an image to uiwebview but it is coming to the back side of web view not to the web view. The web view is always in white colored view, I can't change it. myView = [[UIView alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame]]; myView.autoresizingMask=YES; webView = [[UIWebView alloc] init]...

Background picture not working with fixed attachment

I am working with a project and I have come across an obstacle and I cannot seem to fix this problem. (Haha, fix) I have a page consistent of html, php's <?php include=""; ?>, javascript (and jQuery) and of course, some CSS. The problem is the CSS. The front page has one background picture and the subpages has another background pictur...

MPMusicPlayerController: iPod stops sending notifications, when iPod App is terminated in background

I am using a music player property for iPod player controller. // .h @property (nonatomic, retain) MPMusicPlayerController *ipodPlayer; // .m ipodPlayer = [MPMusicPlayerController iPodMusicPlayer]; NSNotificationCenter *notificationCenter = [NSNotificationCenter defaultCenter]; [notificationCenter addObserver:self selector:@selector(...

Keep image fixed when browser window shrinks. Please help!

I can't figure out how to make the bg_header.png stay in place when the browser window shrinks in width less than the page width. try it: link text Here is my CSS: #body_wrap { width: 100%; z-index: 1; overflow: hidden; } #body_wrap_top { width: 100%; height: 247px; background: url('/img/bg_header.png') repeat-x; margin: 0 auto...

Android: gradient drawable as relative layout background

Every time I try to create a gradient drawable as the background my application force closes. Is there anything more I need to do than create the xml files in drawable-hdpi, drawable-mdpi, and drawable-ldpi. and then use android:background attribute to point to them? Are there any examples of this? ...