background-image

Custom font not displaying in SVG pattern used as background-image

混江龙づ霸主 提交于 2019-11-30 13:54:57
I'm working with an SVG pattern that uses a custom font , so as to use that pattern as a background image on an HTML page. Everything renders fine in Chrome and Safari but it starts to get funny in Firefox: Firefox renders the SVG along with the custom font text just fine when I open the SVG file itself (so far so good!); However, Firefox does NOT render the custom font anymore when that same SVG file is used as the background to an HTML element (!) I've spent hours trying to isolate the issue and a fresh pair of eyes would be welcome. Here's what I've got in short: CSS: @import url(http:/

Need Empty Div With Background Image To Force Height and Must Be Responsive

随声附和 提交于 2019-11-30 13:03:29
问题 I need the following: emtpy div with no content background image set to the div the background image to be fluid/responsive on re-size I cannot set fixed dimensions on the div Everything I try fails to force the div open to support the size of the background image. Any help is greatly appreciated... http://www.everymountain.us/ <header id="header"> <div class="wrapper"> <div class="inner"> <div class="top_banner"></div> </div> <div class="clear"></div> </div> </header> .front #header .top

Rotating a background image with CSS3

一世执手 提交于 2019-11-30 12:14:52
I have a background image that has an arrow that points to the right. When a user clicks on the button, the selected state changes the arrow to point down (using a different background position in my image sprite). Is there anyway to animate this using CSS3 so once the button is clicked and jQuery assigns it a "selected" class, it will rotate in an animation (only 90 degrees) from the right to down? (preferably using the single image/position with the arrow that points to the right) I'm unsure as to whether transform or key animation frames need to be used. you could use the ::after (or :

Adding background image to div using css?

喜你入骨 提交于 2019-11-30 10:44:19
问题 I have been trying to add background image to a div class using css. but have no success. HTML code:- <header id="masthead" class="site-header" role="banner"> <div class="header-shadow"></div> <hgroup></hgroup> <nav role="navigation" class="site-navigation main-navigation"> </nav><!-- .site-navigation .main-navigation --> </header><!-- #masthead .site-header --> CSS:- .header-shadow{ background-image: url('../images/header-shade.jpg'); } Additional information: This is an image with shadow

How to shift a background image with css

自古美人都是妖i 提交于 2019-11-30 08:07:40
I wanted to put a border around a table which has a background image. The border works fine, but when I do this (it is an 8px border) the background image gets cut off by the border. Am I able to shift the background image to start 8px to the right and 8px down? You can use the background-position: background-position: 8px 8px; schubySteve you could also use some short hand. background: <colour> <image url> <repeat> <left> <top> <scroll> for yours i'd be thinking something like: background : transparent url(<location to img>) no-repeat 8px 8px scroll; Rather than manually shifting the image by

Progressive JPG background image trouble in Firefox

独自空忆成欢 提交于 2019-11-30 05:17:16
问题 Quick question on progressive JPG backgrounds, if anyone knows. It appears that Firefox ignores the "progressiveness" of JPEGs if they are set as CSS backgrounds and waits until the image is fully loaded until displaying. I have Chrome and IE loading the background images progressively but Firefox just pops them in at full quality. I'm seeing the proof in front of me , but finding little to no info on it online. Just unanswered forum questions here and there. Anyone know anything about this?

How to make a Raphael fill pattern move with the element? (background image position relative to the element)

百般思念 提交于 2019-11-30 04:56:46
问题 How can I give a Raphael element a fill that moves as the element moves, like how the CSS background-image of a position: absolute; HTML element would keep the same position relative to its location as it moved? Here's an example demo: how can I make the background image pattern of the Raphael element (the triangular path) behave the same while dragged as the HTML element (the square div)? http://jsbin.com/oxuyeq/8/edit This question is essentially the opposite of How to make a pattern “fixed

Prevent fixed-position background-image: cover from resizing in mobile browsers upon address bar hide

我与影子孤独终老i 提交于 2019-11-30 04:47:03
Sorry for a lack of example on this one, but I figure it's easy enough to understand. I have a fixed background on my site, which is currently implemented like this: #background { position: fixed; top: 0; bottom: 0; left: 0; right: 0; background-color: #28305e; background-image: url(../images/background.jpg); background-size: cover; -moz-background-size: cover; background-position: center center; z-index: -10; } <div id="background"></div> This is great in all browsers so far except for mobile browsers where they hide the address bar upon scroll-down. When the address bar is hidden, the

Changing iphone lock screen programmatically when app is running in background

馋奶兔 提交于 2019-11-30 04:08:13
I am developing an iphone app where i have to change lockscreen image programmatically when app is running in background.I have got lots of stuff saying it is not possible but there is an app for this please let me know how to acheive this. Thanks. The only way you can change the lockscreen image is when you are playing audio. Police Scanner+ does play audio, and therefore can set an image. This only works with iOS 5+ and is done something like this. - (void)setupNowPlayingInfoCenter:(MPMediaItem *)currentSong { NSString *ver = [[UIDevice currentDevice] systemVersion]; CGFloat version = 4.0;

CSS background image rendering differently on iPhone

浪尽此生 提交于 2019-11-30 03:42:43
问题 We have a page design that works great in every PC browser that I have tried, but goes strange when viewed with an iPhone or iPod Touch. The problem is something to do with a centred background image thats very tall: #content_container { background-image:url('content-background.jpg'); background-position:top center; background-repeat:no-repeat; width:1020px; height:auto; } The content-background.jpg image is very tall (3000 pixels) and is designed to be 'revealed' as the DIV it is in grows