background-image

ie8 win7 background image bug vs ie8 on Vista

Hello, I've got an annoying bug that I just can't solve and after fiddling with it for several days I need some help. I'm working on a portfolio site and the site displays fine in all browsers. That is, on my desktop that runs Vista. Checking the site on my netbook which runs on Windows 7 showed an annoying thing: IE8 keeps reloading t...

use css attributes "filter: alpha(opacity=70);" and "background-image: url(image.png);" on input box

can get both working individually, but am unable to get them working together. this is for use in a windows sidebar gadget. form: <form name="llPeople" action="URL" method="get" target="newwindow"> <input id="phonebook" class="blur" type="text" name="peo_name" size="15" value="Search Phonebook.." onFocus="document.getElementById('...

CakePHP, not showing my background-image from CSS file

Cakephp is giving me some problems as I have set as below (I have tried any number of urls, through localhost, placing it in webroot and giving reference from that file, giving full route from localhost (this is a local test ubuntu machine, not a 3rd party server), etc, etc but it just doesn't show up.. I am using a custom layout that ov...

Getting dimensions from background-image using jQuery

Hi, I'm loading a background image into a div. Is it possible to get the dimensions from this image? I'm trying to make a function that will replace text with images on the fly, for use in the menu. $.fn.MenuImages = function() { return this.each(function(i) { var name = $(this).find('a').attr('title'); $(this).css("backgrou...

When using the firefox webdeveloper toolbar to edit CSS, why do some image disappear when the toolbar is open?

My typical workflow for editing and building my stylesheets for HTML documents is open the Firefox web developer toolbar's Edit CSS panel and edit directly in the browser window. Most of the time this works like a charm. There are times, however, that when I open the Edit CSS panel, certain images disappear, and I have no idea why. And ...

How do I get rid of background on a input.submit?

Hello! I am currently trying to replace the input.submit button with an image. I have managed to do this successfully except there seems to be a background around the image which I want completely gone, and for it to just be the image. Here is my css: {width:70px; height:40px; background:transparent url(images/shadow_search.png) no-r...

IE7 causing disappearance of background image on scroll

Hey, I'm having an IE7 issue with a website i'm working on - www.mini-meals.co.uk Basically, the background image is not showing on behind the form on the 'Free Trial' panel, and is disappearing when I scroll down on the others. I've tried adding position:relative; on a bunch of elements but it doesn't seem to make a difference. Any ...

ie6 float causes background image to dissapear

Hi Guys, I have a div with a background image which is aligned bottom right. Then I have another div floated inside that div to the left and to the bottom. In IE6, it looks like the bottom inner div is overlapping and cutting out the middle of the background image which is set to bottom left. Any ideas what might cause this? Is there a...

iphone ==> UIAlertView change background???

I am trying to change the background of the uialertview. Everything works fine except the background image i am adding to the uialert view won't scale inside the alertview. So basically you see only part of my background image based on the current size. Is there any way to make it so that the image scales inside the alerview until it fit...

How to add background-image to a div?

I am working with the Mojo SDK and I'am trying to add a background image to a div but havn't been able to find a way to do it. Obviously I have tried doing it the normal CSS-way but it doesn't seem to work with Mojo. Here is the latest thing I tried: var t=document.getElementById("kblayoutdiv"); t.parentNode.removeChild(t);...

Scrolling Background

I'm trying out new things for a simple game in Portrait mode, I want to add a seamless scrolling background to a game, the image is 512x512px. The Main scrolling I want to have is Vertically, but I want to be able to scroll sideways too within the bounds of the image size. How should I go about with this, I'm using cocos2d. David ...

UIViewController background Image

How do I set the background image of my UIViewController? What is the code to do it? Right now I have self.view.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"image.jpg"]]; but I don't want a pattern. I want it to fill the screen properly. Thanks! ...

Place background image outside border of containing div

I am trying to set a background image to be outside the actual containing div. <div class="expandable">Show Details</div> .expandable { background: transparent url('./images/expand.gif') no-repeat -20px 0px; } so the "expand" image should basically appear just to the left of the div. I can't get this working, the image doesn't s...

Need to fadeIn a webpage's entire contents on load but tiled bg pattern keeps doing the opposite

I have a webpage with a tiled background body image. It needs to be tiled because the designer wants it scalable with the browser window. It creates a very specific grid over which the rest of the site is designed. There is also a white page border around it (created via a separate div with a higher z-index) because the designer wants t...

How to position a background image off center?

I have a background image set to center and needs to be fixed position. However I would like to just nudge it 100px off centre, any ideas? CSS background: url(styles/images/bg.png) no-repeat center 0; background-attachment: fixed; This is the working sample http://www.warface.co.uk/clients/detail-shoppe/ Many thanks ...

How to set a background to a div of variable height?

Just finishing up my college project and I want to place a background image as the div background. The div is on the right hand side, the 'main content' area. Where can I find a notebook type background image to simulate that the forms are in a textbook? Also, how can I account for variable height of the forms? Just stretch the image?...

[iphone] set "default" UIViewController background image?

Hi there. Basically I've got the same background image throughout my entire iphone application. I don't use XIBs (nasty things :p). So I was wondering if there was any way to add a "default" background image to all of my UIViewControllers? I tried subclassing UIViewController and created the class UIViewControllerWithDefaultBackgroun...

ANDROID: Possible to download imagview to phone or set an imagview as background?

I have an app that contains a picture gallery when one of the items in the gallery is pressed, the item clicked views as an imageview fullscreen. WHat I am then trying to do is allow the user to select whether to download the imageview to the phone or set it as a background...is this possible? How would I go about this? Thanks! ...

Extra white borders on CSS image background in IE6

When this page is viewed in IE6, you will see extra left and right white borders on the button: http://pastehtml.com/view/1aycieg.html They don't appear in other browsers (e.g. IE7, IE8, Chrome, Firefox). I have been trying hard to fix it by changing the margin and padding values of the <li> and <a> tags but still no success. I would...

Variable height div with custom background-image - what is the best technique?

I'd like to produce something like the 4 boxes at the bottom of the apple.com home page, except I would like them to be variable height. The simplest techniques I can think of is having two divs. The first one containing everything except the bottom 'cap' in its background-image, and the second div with the bottom cap, like so: <div cl...