whytheq whytheq - 1 month ago 7
CSS Question

Button background color in webpart

I'm using an html file with the following css / html - in the browser this button comes through as expected - orange - but when uploaded to a sharepoint webpart it has a white background - what could be the reason for this?

Are there other properties I could use to enforce this styling?

.clickBut {
font-family: verdana;
font-size: 9px;
font-weight: bold;
background-color: #ffa500;
border-radius: 100px;
shape-rendering: crispEdges;
}

</style>
</head>
<input id="clickMe" type="button" value="Refresh|Reset" onclick="resetRefresh();" class="clickBut" />
...
...

Answer

test background-color: #ffa500 !important;