Change bottom border styling on mat-autocomplete [closed] - html

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 1 year ago.
Improve this question
I went through several links but I can't find a solution. Here is the demo code.
I want to remove the purple color and replace it with red, but I am unable to do that. Please help.

It is possible to overwrite class like this:
.mat-form-field.mat-focused {
.mat-form-field-ripple {
background-color: red;
}
}
The complete stackblitz example can be seen here

Try below styling:
autocomplete-filter-example {
input[type="text"] {
border-bottom: 1px solid black;
}
input[type="text"]:focus {
border-bottom: 1px solid red !important;
}
.mat-form-field-underline {
display: none;
}
}
Demo code

Related

css not being applied to div when giving class name [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 3 years ago.
Improve this question
i have a listing html page, in which the first div background color will be white and the second grey color. i have used the following css
.aamir {
background: #fff;
width: 1000px;
margin: 0 auto;
text-align: left;
padding: 20px;
box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.05);
height: 45px;
margin-bottom: 3px;
border-radius: 1px;
}
div:nth-child(even) {
background: #fafafa
}
the problem is when i am using the class name like
.aamir:nth-child(even)
its not working. when i am using
div:nth-child(even)
its working fine. can anyone please tell me why i cannot give it my class. thanks in advance.
Firstly, i think your CSS selector is incorrect. You would need to do the following (note, the starting period):
.aamir:nth-child(even) {
background: #fafafa
}
Second, i think you might be suffering because of the specificity. You can try the below CSS to get around it. This will make it more specific than the original selector by using the element type as well as the class. If your element type is not a div, change the CSS to match the element type.
div.aamir:nth-child(even) {
background: #fafafa
}
You can find out more about specificity at: https://www.w3schools.com/css/css_specificity.asp
Make sure not to forget to add a dot before aamir.
.aamir:nth-child(even) {
background: #fafafa;
}

Contact Form 7 plugin submit button [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 3 years ago.
Improve this question
I need to change the submit button style of contact form 7. https://www.narwal.shop/contact-us/
Change background colour
Add border radius 2 px
Add hover white background colour, black font and black border
Normaly I find the source and edit the CSS file, however this no impact. Do you know which file I have to edit?
Click here for example
Change this
input#cntctbttn {
color: rgb(255, 255, 255);
background-color: red;
border-radius: 2px;
}
and add it in appearance -> style editor(style.css))
The style-settings from #cntctbttn seems to overwrite yours. Just search in the project for #cntctbttnand comment it out or remove it.
Put this code inside your css file:
.wpcf7-submit:hover {
color: black !important;
background: white !important;
border: 1px solid !important;
}
Definitely it will work.
insert id for the submit button then use the code below:
input#id {
border: 1px solid #000000;
background: #caf1ff;
color: #ffffff;
border-radius: 2px;
}
input#id:hover {
background: #ffffff;
color: #000000;
}

how to get checkbox with '-' minus symbol inside check box using css only? [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 6 years ago.
Improve this question
get a minus "-" symbol inside checkbox using html and css only
I tried using
document.getElementsByTagName("input")[0].indeterminate = true;
but requirement is using html and css only
It sounds like you want a label posing like a checkbox, with a minus symbol inside. Like this:
input {
display: none
}
label {
padding: 0 6px;
border: 1px solid #eee
}
input:checked+label {
background: #000;
color: #fff
}
<div>
<input type="checkbox" id="box">
<label for="box">-</label>
</div>

Border not showing up in table [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 9 years ago.
Improve this question
I have a css code, "border-top" is not displaying correctly. I've done everything correctly but I just don't see the problem.
JSFiddle: http://jsfiddle.net/3vnWh/1/
Code:
div.topb {
border-top: 1px solid #dcdcdc;
}
you have and open { and selector:
fiddle
/* optional div height ,width, color */
{ /*this is missing*/
width:400px;
height:200px;
background-color:#ffffff;
font-size:28px;
color:#ffffff;
}
You should use
table.topb
instead of
div.topb
The section immediately before div.topb has no opening brackets or labels. If you comment this section out or give it the appropriate opening brackets, your border-top will display properly. Your section looks like this and can be fixed by adding a { before the width line:
/* optional div height ,width, color */
width:400px;
height:200px;
background-color:#ffffff;
font-size:28px;
color:#ffffff;
}
use any of the following
.topb
{
border-top: 1px solid #dcdcdc;
}
OR
table
{
border-top: 1px solid #dcdcdc;
}
OR
table.topb
{
border-top: 1px solid #dcdcdc;
}

Need help placing a border at top and bottom of navbar [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.
Closed 9 years ago.
Improve this question
Ive tried for hours to get a border at the top and bottom of my navbar.
http://www.rubricdesign.co.uk/ http://www.rubricdesign.co.uk/style.css
Your font-size is too big for the <nav>. That's what's happening. Plus all the unnecessary floats. Here's a link to get you back to the start and you can style from here: http://jsfiddle.net/disinfor/ypL8n/1/
use css:
#navi {
border-top: solid 1px black;
border-bottom: solid 1px black;
}
Use this:
CSS
border-top:1px solid #FFFFFF;
So it's border-top: ( thickness ) ( type of line ) ( color )
use css:
.navbar {
border-top: solid 1px black;
border-bottom: solid 1px black;
}
Also you have given it a set height remove that