This question already has answers here:
How to remove focus border (outline) around text/input boxes? (Chrome) [duplicate]
(11 answers)
Closed 3 years ago.
I tried to remove border from the buttons on the Gps tracking Control Panel.
The button on the click shows the blue border, so I do not want that border on the buttons, here is the picture how its looks like :
https://ibb.co/RDHGX3f
Please, can you inspect it and tell me what do I need to do, to remove that border from the buttons!
and I tried this code to insert but nothing:
.x-toolbar .x-btn {
border: none!important;
border-radius: 15px!important;
text-decoration: none!important;
}
That's an outline.
outline:none;
Related
This question already has answers here:
Can I have an onclick effect in CSS?
(14 answers)
Closed last month.
im new to the whole Angular/Web Development world. I am currently trying to improve my HTML/CSS skills and ran into a problem I couldnt solve myself.
I am using Bootstrap in my angular project and implemented the cards component.
the card for my usecase](https://i.stack.imgur.com/yOj9R.png)
I added hover effects with css and made the whole card clickable, now I want to implement a frame/border after the card get clicked (as shown in the image).
Does anyone knows a way to do this ?
Best Regards
tschanni
.....................................................................................................
your question doesn’t contain any example of your code but you could do something like adding an onclick or add an event listener to toggle a “clicked” class with the desired border: i.e.
<div class="card" onclick="this.classList.toggle('clicked')">card</div>
With CSS
.card {width: 50px; height: 100px;}
.clicked {border: 1px solid red;}
an example
You can do it in simple and code-readable way, for example add this CSS:
.card.selected {
border: 2px solid blue;
}
And JavaScript click event:
const card = document.querySelector('.card');
card.addEventListener('click', function() {
this.classList.toggle('selected');
});
This question already has answers here:
How to style material-ui textfield
(11 answers)
Closed 3 years ago.
I want to change the color of border bottom of the material Ui Textfield and when it focused also should change the color.
Textfield
______________ (this border color)
You need to set the color in CSS after selector. Here is a screenshot attached which will help you.
Simply you need to do the following:
.yourInputFieldClassName:after {
transform: scaleX(1);
border-bottom-color: #f44336;
}
Let me know if that worked.
Inspect element and lookup for style which is setting the border color. You would find it's probably .mdc-text-field__input class. Just override it.
input.mdc-text-field__input {
border-bottom-color: red;
}
input.mdc-text-field__input:focus {
border-bottom-color: yellow;
}
This question already has answers here:
Is it possible to apply CSS to half of a character?
(20 answers)
CSS Display One Character in 2 Colors [duplicate]
(2 answers)
Closed 5 years ago.
If I have : <p>A</p>
Is there any way in html or css or Javascript which I am able to paint half of "A" white and the other black or any other color.
Thanks
You can try it with gradients as Robbie suggested. There is only one down side of this. You won't be able to use text-shadow property (except with another hack - make duplicate of text and give it the shadow property)
Edited on request...
p {
font-size: 12px;
background: -webkit-linear-gradient(#000, #DDD);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
Source code can be found here https://css-tricks.com/snippets/css/gradient-text/
This question already has an answer here:
Making image positioned on textbox clickable in case of ipad (Creating HTML5 Search input type for iOS)
(1 answer)
Closed 9 years ago.
I have a following scenario but i dont know how to add the text followed by image and text followed by image and so on. Please refer the image below and that is an input text with values
How do i achieve this using jquery and css?
If possible show it in js fiddle
Thanks in advance
Try this:
HTML:
<input type="text" name="whatever" id="funkystyling" />
CSS:
#funkystyling {
background: white url(/path/to/icon.png) right no-repeat;
padding-right: 17px;
}
Example:
http://jsfiddle.net/markom/5Ayx7/
This question already has answers here:
Google Chrome > Textboxes > Yellow border when active..?
(2 answers)
Closed 10 years ago.
I am trying to make a form for my website and there is two problems that i am facing
the first problem is when i put an input for example :
<textarea cols:40 rows:50></textarea>
If you clicked on that in chrome the border-color will change into orange and in safari it will change into blue so how can i stop the color changing in border?
Remove the outline:
textarea {
outline: none;
}
Bear in mind, though, that the outline is used to indicate the focused form-field, which may be useful as an accessibility aid to some disabled/limited-vision users; it's always worth making an effort to replace the default visual cue with another, that fits your theme, whether by changing the color of the outline or by using background-color on the element itself.
Also your HTML is malformed, it should be:
<textarea rows="50" cols="40"></textarea>
References:
outline.
You need to remove outline on focus:
textarea:focus {
outline: none;
}