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;
}
Related
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
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 2 years ago.
Improve this question
I am working in HTML and CSS and I am trying to make a button. However, the button has a border that deviates from the website prototype. I have tried Googling around to no prevail.
This is the button.
This is the code I used (CSS)
height: 50px;
width: 132px;
right: 874px;
top: 610px;
background-color: rgba(0,0,0,0);
color: #FFF;
font-family: Noto Sans JP;
font-size: 15px;
border-radius: 5px;
align-content: center;
vertical-align: middle;
outline: none;
}```
Add border: none; to your CSS class/id like this:
.my-btn-class {
border: none;
}
It will remove all of your button borders.
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;
}
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 5 years ago.
Improve this question
I want to bring my Sketch file to HTML/CSS in the browser.
How can I implement the white line just between the small and big text, as shown in the image below?
If don't want to include any additional html element then you can use pseduo element:after.
h2:after {
display:block;
content:" ";
width: 80px;
height: 5px;
background: grey;
margin-top: 5px;
}
fiddle
You can add an empty div with a bottom border & custom width, which is of cleaner and shorter code:
body {
background-color: blue;
color: white;
}
#mydiv {
border-bottom: 4px solid white;
width: 33%;
}
#myline {
height: 4px;
background-color: white;
border: 0px solid black;
width: 33%;
}
A div:
<div id="mydiv"></div>
A horizontal line:
<hr id="myline" />
That's 4 lines for the HR and 2 for the div, and that's without making the hr align to the left.
If you don't want to add another element you can use ::after on any element - just make it have display: block and set the color, width, height etc. similar to the above code.
You can add tag <hr> and him specify needed width, height,color...
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