background-image

scale background image

前提是你 提交于 2019-12-05 01:45:09
I would like to scale up and down a background image in my page. I've tried multiple things but nothing quite seems to work the way I want. :( The url of my page is http://quaaoutlodge.com/drupal-7.14/ and for each link, there's a different background image. I know the size and quality of the images will need to be optimized but I first want to figure out the techincal part of it. If someone please coudl assist in getting this going? Thank you very much! Ron Same background image on every page If you want a background-image that resizes and fills the entire window space, no matter what the

Replace background in Twitter Bootstrap navbar for IE

主宰稳场 提交于 2019-12-05 00:54:19
问题 I am trying to replace the background image for a Twitter Bootstrap navbar with my own image. It works in Chrome, Firefox, and Safari but not in Internet Explorer. What am I missing for IE? (It remains the plain black in IE) .navbar.navbar-inverse.navbar-fixed-top .navbar-inner { background: url(/assets/navbar.png) repeat-x; box-shadow: none; border: none; -webkit-box-shadow: none; } 回答1: You need to add this: filter: progid:DXImageTransform.Microsoft.gradient(enabled=false); 来源: https:/

css box shadow + transparent background images = intuitive breakdown

半城伤御伤魂 提交于 2019-12-05 00:43:13
I have a button image I'm using as a background image for some links. The background image has rounded corners. I want to use a css drop shadow instead of putting the drop shadow in the image The problem is, the drop shadow appears to be drawn around the element. Although I kind of expected to see the drop shadow color through the transparent parts of the background image, I'm seeing the background color instead ( see this jsfiddle ). My actual goal is a little more complex, but if I can satify my first three bullet points then I can nail this task. Specifically, what I want to do is use two

HTML 5 File load image as background-image

无人久伴 提交于 2019-12-04 23:52:06
is it possible to load an image via the HTML 5 File API and make it a css background-image using javascript / jquery? If it's possible, how is it done? dronus gave me a great answer to this question by posting this link in the comment section: sveinbjorn.org/dataurls_css You simple have to do the following to use the image data for a css background image: This will save the src data of your image after you create a new and fill and fill it with data using the FileReader() var imgFileData = $('#image').attr('src') Now you simply have to take this var and set it as the background-image url $('

Hotmail not showing html or css background

孤街醉人 提交于 2019-12-04 21:17:48
I had problems with backgrounds not showing in most E-Mail clients such as GMail or Yahoo Mail but I found this thread and problem solved by replacing (although I lost some properties like background-repeat and position) <table style="background: url('bg.png');"> to <table background="bg.png"> . But now I'm facing the same problem in Hotmail and none of the above form of codes seems to work. This page is the reference of answers to most similar questions in stackoverflow, and it says that Outlook.com (new hotmail) does not support css background and I should use background attribute instead,

colorWithPatternImage Vs. UIImageView

蓝咒 提交于 2019-12-04 20:53:27
问题 Which is better to use if I simply want a background image for a UIView ? I can accomplish this with either method, but which is more efficient? My hunch is that using a UIView with colorWithPaternImage is more efficient than using a UIImageView . I'll be using this for each row in a UITableView . Thanks! Matt 回答1: Completely disagree with boreas. There can be significant differences using colorWithPatternImage vs other strategies depending on your requirements. For example, if you are using

CSS background-position animate right to left

感情迁移 提交于 2019-12-04 18:53:14
问题 I'm trying to animate a background-image, so that the image appears from right to left. I have used an image which has a greater width than the div-container, where the background is located. On start, the backgrond is the following background: url(../img/zeppelin.png); background-repeat: no-repeat; background-position: right; but when the page is loaded, I want the background to be animated, so that it is positioned left. This should take a eg. 2 seconds and only should be done one time.

iOS5 changing Background of UIToolbar

非 Y 不嫁゛ 提交于 2019-12-04 15:30:01
I've read the "What's new in iOS 5" documentation and there it is stated, that changing the background of some UI-Elements is now better supported. I couldn't find the correct way for iOS 5 to change the background image of an UIToolbar. Is there a special new iOS 5 way of doing this? Or do i still have to subclass the UIToolbar? Yes, there is a new way to do this. You can use appearance to make all UIToolBar s have the same appearance. First, you have to make sure your class follows the UIAppearanceContainer protocol. Here I have done it in my app delegate: @interface AppDelegate :

Why is min-height not working?

倾然丶 夕夏残阳落幕 提交于 2019-12-04 15:03:59
问题 So here's the scoop. I have a gradient applied to the background of the body element. Then I have a container (right after body) that has a background .png image applied to it. The gradient always expands to at least 100% window height but the container (#body2) does not. Any suggestions to why this doesn't work? You can inspect the HTML on my web page here: http://www.savedeth.com/parlours/ 回答1: Specify height: 100% on the html , body and #body2 elements (line 1358). html, body, #body2 {

Thymeleaf URL expression in .css file

让人想犯罪 __ 提交于 2019-12-04 14:00:37
I'm using Spring MVC and the Thymeleaf view engine. I have an external style.css file with the CSS for my page. In the CSS file, I want to refer to a relative image URL. This is my style.css file: .background { width: 100%; background-image: url('/path/to/image/bg.png'); } The above tries to access an image with the following URL, which doesn't exist: http://localhost/path/to/image/bg.png My real image is at: http://localhost/myapp/path/to/image/bg.png This StackOverflow question gives the answer to my question for inline CSS: How to set background url for css files in thymeleaf? But how do I