I want to set background image of the button for following image:
using this code:
<style>
.cancel-button {background-image:url(images/cancelbutton.png) !important;}
</style>
but I got the output of the button like following image
How to fix this issue?
Fixed solution
Working example: http://jsfiddle.net/Gajotres/AJsTR/
CSS:
.cancel-button {
background-image:url("http://i.stack.imgur.com/0XDDb.png") !important;
border-radius: 0 !important;
border-width: 0 !important;
box-shadow: 0 0 transparent !important;
width: 197px !important;
height: 75px !important;
}
Responsive solution
Working example: http://jsfiddle.net/Gajotres/AJsTR/1/
.cancel-button {
background-image:url("http://i.stack.imgur.com/0XDDb.png") !important;
border-radius: 0 !important;
border-width: 0 !important;
box-shadow: 0 0 transparent !important;
background-size: 100% 100% !important;
}
Final note
Take a look at this article if you want to find out how to customize jQuery Mobile elements by yourself.
Related
I am trying to custom code a close button for a Divi Overlay on our Wordpress site.
I can position the button fine, but when I resize the window or view it on a tablet, the button moves. I've tried using Position: relative / fixed / absolute but none of that seemed to work.
For context - this code is within a code module in the Divi builder, which sits in a row, within a section.
Here is the code for the button;
<pee><a class="close-divi-overlay" href="#close">×</a></pee>
<style>
a.close-divi-overlay {
/* a) Control the position of the close button*/
right: 450px!important;
top: 150px !important;
z-index: 10010 !important;
display: block !important;
position: absolute !important;
/* b) Size of the close button - Adjust if is necessary*/
width: 46px !important;
height: 48px !important;
font-size: 28px !important;
line-height: 48px !important;
/* c) Background and border of the close button*/
background: none repeat scroll 0 0 #ffffff !important;
border: solid 0px #fff !important;
border-radius: 50% !important;
box-shadow: 0 2px 3px #888 !important;
/* d) Font styles*/
color: #0B3E5C !important;
font-family: !monospace !important;
font-weight: bold !important;
text-align: center !important;
text-decoration: none !important;
}
</style>
So is there a way to position this button so that it doesn't move when the window is resized?
Here is the style sheet:
QSlider{
border: 0px solid;
}
QSlider::handle:horizontal#slider_xScaling{
image: url(":/tools/references/dragger.png")no-repeat scroll 0 0;;
}
QSlider::add-page:horizontal#slider_xScaling{
image: url(":/info/references/ic-scroll-layer-track.png")no-repeat scroll 0 0;
}
QSlider::sub-page:horizontal {
background: transparent url(":/tools/references/ic-track-fill.png") no-repeat scroll 0 0;
margin-top: -1px;
}
I have been experimenting on the CSS stylesheet on QT but still can't produce the proper output for this. The track is supposed to be on the middle obviously but here it is.
This is how I fixed it. I also changed the height of the QSlider to make the tracker in line with the handle
QSlider::sub-page:horizontal {
background: transparent url(":/tools/references/ic-track-fill.png") no-repeat scroll 0 0;
}
QSlider::handle:horizontal{
image: url(":/tools/references/dragger.png")no-repeat scroll 0 0;
}
QSlider{
border:0px solid;
}
I am having real trouble trying to track down a blue border in a site at the min http://innovativeapps.dk/ you will see on top of the video its their but when I look on the css i cant find it.
.video-container .description .inner {
/*background: rgba(255, 255, 255, 0.79) none repeat scroll 0 0;*/
border-radius: 4px;
color: #ffffff;
font-size: 28px;
font-weight: bold;
line-height: 42px;
margin: 0 auto;
padding: 8px 25px;
width: 68%;
}
Would anyone know where it is it almost looks like its in the video.
Look at the code, there is a blue box shadow box-shadow: 0 0 7px #1E70B9; under .navbar-default in your custom.css file line no.47..
There was a shadow given in navbar-default in your custom.css file line no.47
.navbar-default {
background: #ffffff none repeat scroll 0 0;
box-shadow: 0 0 7px #1E70B9; /*This is a blue shadow*/
position: fixed;
top: 0px;
}
Box shadow is used to make border like shadows for any container mostly.
Its like text-shadow for text.
navbar-default {
background: #ffffff none repeat scroll 0 0;
**box-shadow: 0 0 7px #1E70B9; //this line make the blue shadow.**
position: fixed;
top: 0px;
}
I am a css beginner so apologies in advance if I am asking basic questions.
I am using a jquery datepicker in my web application and have an issue with the positioning of the jquery date button. I am using a css framework (yaml) which has a whole set of defined styles for buttons so what I have needed to do is override all the pre-defineed styles.
When I specify the following styles...
button.ui-datepicker-trigger, button.ui-datepicker-trigger:hover {
border: 0px !important;
background-color: transparent !important;
background-color: rgba(0, 0, 0, 0) !important;
background-image:none !important;
border: 0 none !important;
display: inline !important;
margin-left: 5px !important;
box-shadow: none !important;
padding: 0 0.5em !important;
}
The date button is slightly too high and not in line with the input field...
When I fix this and specify the following styles...
button.ui-datepicker-trigger, button.ui-datepicker-trigger:hover {
border: 0px !important;
background-color: transparent !important;
background-color: rgba(0, 0, 0, 0) !important;
background-image:none !important;
border: 0 none !important;
display: inline !important;
margin-left: 5px !important;
box-shadow: none !important;
padding: 0 0.5em !important;
position: absolute !important;
-webkit-box-shadow: none !important;
-moz-box-shadow: none !important;
}
The date button is in line with the next field which is what I want.
BUT after changing the style of the button to use absolute (3 end lines of 2nd css extract above), whilst i am doing a mousepress the date control jumps up about 15 pixeles up the screen.
Has anyone got any ideas on how I might fix this? And a good explanation as to what is happening for my understanding.
thanks
You can try another solution by using the calendar icon inside the textbox.
Check this here :- http://jsfiddle.net/33Xxk/
.tInput_datepick {
width: 250px;
color: #555555;
text-decoration: none;
border-radius: 7px;
padding-left: 7px;
background-image: url(http://www.bay.k12.fl.us/portals/18/Images/calendar_icon.jpg);
background-repeat: no-repeat;
background-position: top right;
background-position-y: -5px;
height: 25px !important;
border: 1px solid #888e9c !important;
background-color: #f4f5f9 !important;
cursor: pointer !important;
}
I have a wordpress website its http://pacelinegroup.com/ as you see below the slideshow theres a body which is the main content of the site. I want it to be all black instead of white. I tried changing it but it doesnt make it white the entire area. Please help me on what css code to use to make it entirely black everything.
Change
body#home #main-content {
background: url("images/main_content_bg.png") repeat-y 480px 39px #000000;
}
style.css (line 136)
body#home #recent-posts {
background: url("images/rec_posts_bg.png") repeat-x scroll 2px 0 #000000;
width: 480px;
}
style.css (line 141)
body#home #sidebar {
background: none repeat scroll 0 0 #000000;
float: left;
margin-top: 0;
width: 480px;
}
style.css (line 342)