Currently working on an app utilizing ASP.NET Web Forms
and aiming to incorporate bootstrap.css
for styling purposes. However, encountering issues with button properties conflicting between the default Style.css and bootstrap.
This is the HTML markup:
<asp:Button ID="Button1" type="button" CssClass="btn btn-primary" runat="server"
Text="View data" OnClick="Button1_Click" />
Default Style.css Properties:
input[type="submit"], input[type="button"], button {<br>
background-color: #d3dce0;<br>
border: 1px solid #787878;<br>
cursor: pointer;<br>
font-size: 1.2em;<br>
font-weight: 600;<br>
padding: 7px;<br>
margin-right: 8px;<br>
width: auto;<br>
}
Bootstrap Properties:
.btn-primary {<br>
color: #ffffff;<br>
background-color: #428bca;<br>
border-color: #357ebd;<br>
}<br>
The issue lies in the background-color being pulled from Style.css instead of bootstrap.
What could be causing this conflict?