background-image

Setting background image of a navigation bar - bootstrap

吃可爱长大的小学妹 提交于 2019-12-22 07:47:12
问题 I have problem setting the background image from folder, 'img/flower.jpg'. I tried using the following code in CSS, the image does not show up: However it works if I reference it from a source in internet. #navigation,.navbar .navbar-default{ background-image: url("img/flower.jpg"); background: url('img/flower.jpg'); } <div class="container"> <!-- Navigation --> <nav class="navbar navbar-default " id="navigation" role="navigation"> <div class="container-fluid"> <!-- Brand and toggle get

How to Inherit grandparent CSS not parent?

随声附和 提交于 2019-12-22 07:46:07
问题 I have a feeling this won't be possible, but thought I'd ask anyway. <body> //body uses 'back' background <div id="div1"> //div1 uses 'front' background <div id="child1"> //child1: no backgrounds, so shows 'front' background </div> </div> </body> My body element uses a background image. (I'll call it the back background image) div1 uses a different background image (I'll call it the front background image), so the front background image covers over the main background image. div1 contains a

How to Inherit grandparent CSS not parent?

谁都会走 提交于 2019-12-22 07:45:40
问题 I have a feeling this won't be possible, but thought I'd ask anyway. <body> //body uses 'back' background <div id="div1"> //div1 uses 'front' background <div id="child1"> //child1: no backgrounds, so shows 'front' background </div> </div> </body> My body element uses a background image. (I'll call it the back background image) div1 uses a different background image (I'll call it the front background image), so the front background image covers over the main background image. div1 contains a

Hotmail not showing html or css background

送分小仙女□ 提交于 2019-12-22 01:18:35
问题 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

How to make CSS background-image responsive? [duplicate]

醉酒当歌 提交于 2019-12-21 22:11:40
问题 This question already has answers here : Responsive css background images (18 answers) Closed 5 years ago . Ok, so I came across this solution to making background-image responsive: Responsive css background images My apologies for re-posting the question, but literally none of their solutions worked for me. HTML: <div id="fourohfour_home"></div> CSS: #fourohfour_home { background-image:url('image.png'); height:120px; width:120px; } How exactly would I make this responsive? e.g. When the

Create a perfect dashed line with background-image in CSS

旧巷老猫 提交于 2019-12-21 20:39:13
问题 I would like to have a dotted line below to a text : The web designer have designed a custom dotted so i can’t use : h2 { border-bottom: 4px dashed #fff; display:table; } because it is not conform. What i’ve done : I’ve made an image with a dot and position it with css : h2 { padding-bottom: 20px; display:table; background-image: url('../images/tiret.png'); background-repeat: repeat-x; background-position: center bottom; } It works very well but depending on the width of the text, the last

Checking if an image exists before adding it as a background image

左心房为你撑大大i 提交于 2019-12-21 17:23:09
问题 There are a few solutions on stack regarding the use of .error() on images to determine if they exist and adding placeholders if they don't, but they all discuss its use strictly on <img> tags. Has anyone performed this type of validation to images that are not being added to <img> tags but rather as backgrounds on divs? We have a set of images coming in from a 3rd party API and there are cases where the entire set of image urls' that are returned do not exist. What would be the proper method

What's the right UIControlState for the UIButton being pressed?

守給你的承諾、 提交于 2019-12-21 13:04:40
问题 I'm customizing the UIButton programmatically here: button = [UIButton buttonWithType:UIButtonTypeCustom]; [button setSelected:YES]; button.frame = CGRectMake(x, y, width, height); [button setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal]; [button setTitleColor:[UIColor blueColor] forState:UIControlStateSelected]; [button setTitle:@"Button Title" forState:UIControlStateNormal]; [button addTarget:self action:@selector(buttonAction:) forControlEvents:UIControlEventTouchUpInside]

Transparent JFrame background

不想你离开。 提交于 2019-12-21 11:22:11
问题 Is it possible to make a JFrame that has a transparent background and draw an image on it, so only the image will be visible with no border or background? 回答1: See Translucent and Shaped Swing Windows by Kirill Grouchnikov. 回答2: Yes, it's possible in many ways. This is one of them: setUndecorated(true); setBackground(new Color(1.0f,1.0f,1.0f,0.5f)); 4th float (which I set to 0.5f) in Color's constructor is alpha channel. It can be 0.0f - 1.0f depend on transparency you want. 回答3: It is

Background image for H1 heading

安稳与你 提交于 2019-12-21 06:04:37
问题 In my wordpress theme page heading <?php the_title(); ?> . My Css: #page h1.pagetitle { width:auto; text-align:left; font-size:30px; padding:25px 40px 25px 0px; text-transform:uppercase; } #page h1.pagetitle span{ background:#202020; padding:5px 40px 5px 10px; } Html: <h1 class="pagetitle"><span><?php the_title(); ?></span></h1> I want background image like arrow ribbon like this sample http://www.123rf.com/photo_12816420_green-arrow-ribbon-on-wooden-desk.html I can place background Image