background-image

how to place text below background image using inline block property

ⅰ亾dé卋堺 提交于 2019-12-25 09:25:03
问题 hello i'm trying to put text below a background images. like here i want place two background images side by side and below each image i wanna place text. i have take one div class it has styles inline block property. so how i can do this with the help of or using inline block property.i have explained my problem as much as i can. if it is possible then please go through my fiddle link. i have tried by this properties but text is overlaping on the image i want that below the image also check

background image and elements on it

百般思念 提交于 2019-12-25 08:15:54
问题 I need to put some elements on picture: What is better approach ? use img tag and align all elements on page with relative/absolute positioning ? or use background-image css property ? I've started with img tags but now I've decided for background-image. Sadly I'm suffering with basic problems, as when I'm using background property, image is only visible when there is something on it. I believe that is very simple problem, still. Thank you for helping me out :) SCSS header { margin-top: 78px;

CSS - UL Background Not Working

核能气质少年 提交于 2019-12-25 08:06:04
问题 For some reason when I try to set a UL background the background doesn't work. It works on my body background but it isn't working for the UL . I know my image is named correctly. I have quadruple checked that. Here is my code: HTML <html> <head> <title>Header</title> <link rel="stylesheet" type="text/css" href="css/Style.css" /> </head> <body> <div id="page-wrap"> <ul id="nav"> <li><a href="#">Link1</a></li> </ul> <p>Main</p> </div> </body> </html> CSS body { background-image: url('../Images

Responsive Background image with particle js

穿精又带淫゛_ 提交于 2019-12-25 07:49:03
问题 I am using the floowing code: application.html.erb file: <!DOCTYPE html> <html> <head> <title>Rubiksolutions</title> <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> <%= csrf_meta_tags %> </head> <body> <div> <nav> <div class="cube"></div> <div id="nav_wrapper"> <ul> <li><%=image_tag("name.jpg", :size => "150x40")%></li> <li><a>Inicio</a></li> <li class="submenu"><a>Productos</a

Why an image still has a border in IE even with border set to none?

落花浮王杯 提交于 2019-12-25 05:13:09
问题 With the following code, I get a border around my background image in IE7 to IE9. Why? <tr> <td class="wishes"> <a class="clickable"> <img class="alreadyWished" border="0" width="19" height="16" alt="Already Wished"/><br /> Already Wished </a> </td> </tr> <style> .clickable { outline:none; cursor:pointer; border:none; } .wish { background-image:url(../images/wished.jpg); background-repeat:no-repeat; border:none; outline:none; } .alreadyWished { background-image:url(../images/alreadyWished.jpg

RenderScript No Class Def found, when trying to blur background image

跟風遠走 提交于 2019-12-25 03:13:25
问题 When trying to blur an image I want to use import android.support.v8.renderscript.* So I put this in my build.gradle file: android { compileSdkVersion 23 buildToolsVersion '23.0.1'" defaultConfig { minSdkVersion 14 targetSdkVersion 23 renderscriptTargetApi 18 renderscriptSupportModeEnabled true }} And I use this method to blur the image: public static Bitmap blur(Context ctx, Bitmap image) { int width = Math.round(image.getWidth() * BITMAP_SCALE); int height = Math.round(image.getHeight() *

Unwanted border around background image div

久未见 提交于 2019-12-24 23:19:19
问题 I am getting a slight line or border around my background image. I am dynamically changing the height of the parent div via javascript so that the inner div (which has the background image set) will "stick" to the bottom of the window. No line appears on the desktop browsers, but on the mobile browser after the script runs, there is usually a thin border around it: The border is on the left and the way it should be is on the right. Any suggestions? This is the script: <script type="text

Using CSS with background image/login

岁酱吖の 提交于 2019-12-24 22:41:39
问题 Currently I'm trying to edit a login screen for a web based application. As of now, I have the login prompt (user & password) at a particular place on page so that it corresponds with the background image. Right now this image is set to 1024x768. What I was wondering, is there a way to have the background automatically scale depending on users own resolution while have the login appear at the correct location? I'm not sure if this is possible but thought someone might have some advice. 回答1: I

How can I use JQuery to replace CSS background image and maintain gradient?

拜拜、爱过 提交于 2019-12-24 17:48:50
问题 I am trying to dynamically replace the background-image property of a div while maintaining the other background related properties (such as color and gradient) using jQuery's .css() function. So far I can replace the image, but then I lose the other properties. How can I do this without losing the other CSS background properties? CSS .myClass{ width:100px; height:100px; background:url(http://upload.wikimedia.org/wikipedia/commons/b/b9/Hookem_hand.gif) center no-repeat, repeating-linear

CSS sprite - showing part of another image when zooming

我的梦境 提交于 2019-12-24 17:29:11
问题 I have following CSS sprite. When I try to display the first icon, it works fine, but when I set zoom to 150%, I see also small part of the second icon. This problem is on Google Chrome and Internet Explorer, but not on Mozilla Firefox: JSfiddle div { width: 29px; height: 29px; background-image: url(http://i.imgur.com/O2Cp0nb.png); } <div></div> That's how it looks for me on 150% zoom: Update: Chris suggested that I need to put some space between icons. So my question is: why? And why it