Changing the background-color of a...

User 91713 Photo


Registered User
83 posts

Today I did some exercises in making a contactpage.
I used the formcontainer and in there an input for a name, an e-mailadress and a textarea. I finished with a submit button.

In the exported version it is a gray one.
I want the change the background-color but with no succes so far.

I inserted a link to a custom.css file in Layouts>Manage projects like so:
<link rel="stylesheet" href="css/custom.css">

In the html-page I found the classname for this button:
<button type="submit" class="button-submit-1">Verzenden</button>

In the custom.css file I wrote:
.button-submit-1{background-color:black; color:white; }

This doesn't work ,so I am doing something wrong, but what? Can you help me out here?
The perfection isn't reached in one pass.
User 187934 Photo


Senior Advisor
20,188 posts

Maybe this. Make sure your custom css link is below the rest of your style links.
button.button-submit-1{background-color:black; color:white; }
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 91713 Photo


Registered User
83 posts

Eric, thanks for replying.
I tried this immediately, but still no succes.
The custom css-file is working though, because I added labels and could target them.
The perfection isn't reached in one pass.
User 187934 Photo


Senior Advisor
20,188 posts

Can you share a link?
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 91713 Photo


Registered User
83 posts

Eric, I removed my site temporarely and uploaded the exported files from RLM. (As far as the project is at this moment).
You can see the int between result at www.havov.net.
Ctr-U gives you the source as you know and from there you can open the css-links.
I appreciate you having a view.
The perfection isn't reached in one pass.
User 187934 Photo


Senior Advisor
20,188 posts

What elements are you trying to apply the css to?
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 91713 Photo


Registered User
83 posts

At this moment only the submit button on the contact form.
The perfection isn't reached in one pass.
User 187934 Photo


Senior Advisor
20,188 posts

Give this a try.
.coffee-span-8 button.button-submit-1 {
background-color: #000000;
color: #FFFFFF;
}


You can also do it all here in the wireframe-theme.min.css
.link-button, button, input[type="submit"] {
background-color: #C2C2C2;
background-image: -moz-linear-gradient(center top , #DCDCDC, #C2C2C2);
border: 1px solid #919191;
border-radius: 4px;
color: #464646;
display: inline;
font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif;
font-size: 0.875em;
line-height: 1em;
padding: 10px 0;
text-shadow: 0 -1px 0 rgba(255, 255, 255, 0.3);
}
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 91713 Photo


Registered User
83 posts

Eric, thanks for polishing my thoughts. I tried all your suggestions and so far the result is the same. However you directed me to wireframe-theme.min.css, which I didn't approached before. I also went into wireframe-theme.css. I can find the classes and alter the values, but they don't appear in the final result. I made a custom button in custom.css and there I can alter the width, height and the color, but still not the background-color.
The perfection isn't reached in one pass.
User 434929 Photo


Ambassador
938 posts

Hans van Overbeek wrote:
Eric, thanks for polishing my thoughts. I tried all your suggestions and so far the result is the same. However you directed me to wireframe-theme.min.css, which I didn't approached before. I also went into wireframe-theme.css. I can find the classes and alter the values, but they don't appear in the final result. I made a custom button in custom.css and there I can alter the width, height and the color, but still not the background-color.


button.button-submit-1{
background-color:#80FF00;
color:#80FF00;
background-image: -moz-linear-gradient(center top , rgba(345, 32, 32, 1), rgba(50, 32, 32, 1));
}
label{color:white; padding:1em 0; }

Replace above code in your css folder > custom.css document
delete following code and replace with above code it should work


/* Default CSS */
/* Generated by the CoffeeCup HTML Editor - www.coffeecup.com */

button.button-submit-1{background-color:black; color:white; }

label{color:white; padding:1em 0; }
Guys at coffeecup are awesometacular.

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.