background-image

Background images not working in Outlook 2007 and later

元气小坏坏 提交于 2019-11-28 05:30:27
I made an HTML Email Template that is working fine in most email readers, but the background images are not showing in Outlook 2007, 2010, and 2013. How can I solve the problem? Here's the HTML for the email: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <style type="text/css"> * { padding: 0px; margin: 0px; border: 0px; outline: 0px; } .ExternalClass {width:100%;} .ExternalClass, .ExternalClass p,

How to set a background image in rails from css?

主宰稳场 提交于 2019-11-28 05:13:55
I am using rails 3.2 and i have to set a background for one of the page and i have tried many ways and nothing went right, so looking for some good help. I have tried background: url(<%= asset_path 'background.jpg' %>) background: url("public/background.jpg"); background-image:url('/assets/images/background.jpg') and nothing worked. Please help me. Rajarshi Das In your CSS: background-image: url(background.jpg); or background-image: url(/assets/background.jpg); In environments/production.rb : # Disable Rails's static asset server (Apache or nginx will already do this) config.serve_static

How to completely remove borders from HTML table

﹥>﹥吖頭↗ 提交于 2019-11-28 04:47:54
My goal is to make an HTML page that is similar to a "photo frame". In other words, I want to make a blank page that is surrounded by 4 pictures. This is my code: <table> <tr> <td class="bTop" colspan="3"> </td> </tr> <tr> <td class="bLeft"> </td> <td class="middle"> </td> <td class="bRight"> </td> </tr> <tr> <td class="bBottom" colspan="3"> </td> </tr> </table> And the CSS classes are the following: .bTop { width: 960px; height: 111px; background-image: url('../Images/BackTop.jpg'); } .bLeft { width: 212px; height: 280px; background-image: url('../Images/BackLeft.jpg'); } .middle { width:

Adding a background image in Ruby on Rails 2 in CSS

被刻印的时光 ゝ 提交于 2019-11-28 03:58:38
I generated a scaffold in ruby and I want to insert a background image to every page on the site but Im not sure what the link to the image should be. my image is in app/assets/images/"dep.jpg" this is what i have but it isnt working: background-image:url('../images/dep.jpg'); } Any help? thanks The webserver in rails takes public folder as the base of the application. Hence its looking for the specific image under /public/images/ instead of app/assets/images/"dep.jpg" & since its not there over there you cannot get the image. Try to put your image in /public/images/ folder then it would work.

Changing only y pos of background image via Jquery

自古美人都是妖i 提交于 2019-11-28 03:50:39
问题 I want to change button's background image y position with hover function. Is there a simple way of keeping xpos or should I get position first, split it and use again with $.css() again. I should change all 3 span's background position if somebody hover's any of them. So bt_first:hover not seems usable. Here is my usage. I wrote #should stay same# to place that I don't want to change value of xpos: $('.bt_first,.bt_sec,.bt_third').hover(function(){ $('.bt_first,.bt_sec,.bt_third').css({

Size the DIV to the size of the background image

China☆狼群 提交于 2019-11-28 01:38:47
I have a DIV with the following style .vplayer-container .logo { position: absolute; bottom: 50px; right: 10px; background: url(../img/logo.png) no-repeat; border: 1px solid #000000; max-width: 50px; max-height: 50px; } I want that the DIV size is the same as the background image. Since the bg image change, I want it to be set automatically. I can use JavaScript, but I'd prefer a CSS way for that. I'm targeting HTML5 browsers that is FireFox, Webkit and Opera. Thanks Answer: With Kyle Sevenoaks hint, you can do it by putting an image element inside the DIV. <div> <img src="url"> </div> Remove

UIViewController with background image

Deadly 提交于 2019-11-28 01:00:10
问题 How can I insert into my UIViewController an image from the resources as background image? thanks in advance! 回答1: Add it UIViewController 's view, somewhat like this: - (void) viewDidLoad { UIImage *background = [UIImage imageNamed: @"background.png"]; UIImageView *imageView = [[UIImageView alloc] initWithImage: background]; [self.view addSubview: imageView]; [imageView release]; [super viewDidLoad]; } 回答2: UIViewControllers don't have background images. Only views themselves have visual

Print background image in IE without enable “Print background colors and images”

a 夏天 提交于 2019-11-28 00:01:17
Is possible to print a background-image whithout enabling "Print Background colors and images" in Advanced tab of Internet Options ? I think to use a alternative way without "background-image"... Using div tag and position absolute is possible to emulate the same effect of background-image? Also I would like to repeat the background image through the page. The ability to print background images (those images specified as background-images in the markup) is entirely up to the end user, you can not control this programmatically from your code. There is a plugin for Firefox that provides a

CSS background image disappearing in Chrome

匆匆过客 提交于 2019-11-27 23:36:57
问题 This problem is only happening in Google Chrome on Mac OS X (Chrome 17). I've tested it on all the major browsers on Mac and Windows 7. Here is the page in question: http://dealsfortherich.com/drop/ As you can see, I'm loading divs via JQuery AJAX. The page is always fine on "Refresh." You can navigate pages with the left and right arrows. The problem happens when you change pages; especially when you change pages when scrolling the page quickly. Try scrolling the page down very fast and hit

CSS: Stretching image to 100% width

帅比萌擦擦* 提交于 2019-11-27 23:31:01
问题 Hi all I am trying to strech the background of my side to fit the width. I only found big workarounds in the internet. Is there not one single command for this? body { background-image: url(money.jpg); } Thanks for the answers. Doonot 回答1: Use background-size like the one used below, body { background-image: url(money.jpg) no-repeat; background-size: 100%; } Some useful links : Scale background image style Stretch and Scale a CSS image Background - With CSS only 回答2: If you have a CSS3