background-image

Background image path not working in firefox

╄→гoц情女王★ 提交于 2019-12-01 18:17:12
I'm running into a problem with background image of an <li> loading in firefox. my original code was: background: #bdcad7 url(../images/navbg.png) repeat-x; which works well in chrome and IE but not in FF. background: #bdcad7 url(images/navbg.png) repeat-x; also works in IE and chrome but not in FF The only way to get it working in FF is if I include the next directory level background: #bdcad7 url(/includes/images/navbg.png) repeat-x; but that doesn't work in other browsers. I've tried all variations I can think of ./ , ../ , include quotes, double quotes, use background-image etc and can't

Background Image not Displaying Correctly in iOS

北慕城南 提交于 2019-12-01 16:55:32
问题 I am using a tile-able background image on a website. The site views great in all desktop browsers but when I view the site on my iPad Mini (running iOS 6.1.3) the background image has streaks in it. You can see a pattern on most pages that is a line (the size of the background image) that looks fine, then another line again the same size of the background image, etc. Here is a screenshot showing the issues: Here is the CSS required for the background: #wrap { margin:0 auto; position:relative

background-size transition on hover causes chrome to “shake” background image

这一生的挚爱 提交于 2019-12-01 16:51:33
I am trying to achieve an effect I saw recently, where background image zooms on hover. I pretty much did it with example here: https://jsfiddle.net/qyh6nbwt/ but it seems to be very shaky (you will understand what I mean by hovering over it), I'm on osx running latest chrome version, have not checked it in other browsers yet. Is there a way to make it smoother, so it doesn't "shake" on zoom in? HTML <div id="example"> test </div> CSS #example { background-image: url(http://www.jeroenkemperman.nl/wp-content/uploads/2014/06/Johns_Inc_Pizza_Spaghetti_wikipediacommons.jpg); background-position:

set background Image to whole application in android

匆匆过客 提交于 2019-12-01 16:18:39
I want to set background image to my application in android. So my application already has a theme set in my manifest file like this <application android:theme="@android:style/Theme.NoTitleBar" /> Now this was implemented from the themes of android package. Now i want to add a background image to my entire application how can i do it. <style name="Theme.NoTitleBar.BackgroundImage"> <item name="android:background">@drawable/bitzer_background</item> </style> I want the Theme.NoTitleBar as well. You have to use styles to achieve this Check out this link Create a theme with your background and use

background-image in div – Google indexing?

寵の児 提交于 2019-12-01 12:04:42
I've a list of empty divs and dynamically inserting a background image – so at first, their background-image: url(); property is completely empty. With some event, it's background-image url loads into the previously empty background-image: url(); tag. The url of the appearing background-image is temporarily stored in the "alt" tag of the div: <div style='background-image: url();' alt='http://something...'></div> . I'm doing so to get round corners on several animated gifs without using transparent gifs (no smooth edges). Question: does Google robots index those images? I could imagine they do

Image behind buttons in tkinter (PhotoImage)

那年仲夏 提交于 2019-12-01 08:11:29
I've been trying to add an image so that my buttons sit on top of the image, but have only been able to make the image cover everything completely or force the image to be underneath the horizontal part the buttons cover. Here is the relevant code for it: class MainMenu(Frame): def __init__(self, master): Frame.__init__(self, master) self.master = master self.initUI() def initUI(self): self.master.title("Adventure") bg = PhotoImage(file="Background-gif.gif") newGameButton = Button(self, text="New Game", height=2, width=20, command=self.newGame) newGameButton.pack(side=TOP, pady=50)

Fixed background images disappear on iPhone/ iPad

狂风中的少年 提交于 2019-12-01 06:40:49
I'm having issues with background-image . My website looked good on Android devices, then I found out that iPhones and iPads don't like background-size: cover . I fixed this by setting background-size: 100% . On iPhone simulators on the web, the site looks quite OK, but as soon as testing the site on a real iPhone (iOS 9.3), the background images are not shown. The header image loads, this image is used as a background further down on the site, it gets displayed there, too. The other image right above the only loaded background starts loading, but then seems to get aborted for some reason. The

Fixed background images disappear on iPhone/ iPad

你说的曾经没有我的故事 提交于 2019-12-01 04:50:41
问题 I'm having issues with background-image . My website looked good on Android devices, then I found out that iPhones and iPads don't like background-size: cover . I fixed this by setting background-size: 100% . On iPhone simulators on the web, the site looks quite OK, but as soon as testing the site on a real iPhone (iOS 9.3), the background images are not shown. The header image loads, this image is used as a background further down on the site, it gets displayed there, too. The other image

Fill SVG element with with a background-image with an offset

时光总嘲笑我的痴心妄想 提交于 2019-12-01 04:25:36
I want to do something similar to this Fill SVG path element with a background-image However, I want to shift/offset the image. With CSS, it can easily done by setting background-image and background-position . How do I do it with SVG? You can use patternTransform on the pattern element to transform the pattern; it works just like the transform attribute you may already be familiar with. See the documentation for details. You can use a pattern and a SVG element with the fill attribute. Here is an example: insert an image at position (10, 10) with a (40, 550) offset and a size (420, 340). Note

CSS: Scale background image down if larger than window, keep at 100% otherwise

守給你的承諾、 提交于 2019-12-01 03:58:30
I'd like to deploy a background image in the body of my website that scales down with the window resolution, but does not scale up beyond it's original size (1920x1080). That way, users with smaller resolutions can still see the entire image, but those beyond do not have an ugly upscaled background. It doesn't look like background images support properties like max-width, which I would usually use for a purpose like that. What could the solution be? Is this possible in CSS without extra scripting? I would use a div as a wrapper with a max-width and set the background to that div. HTML <body>