Try the !important mention on your line.
Oct 31, 2015
20
Level 1
My custom CSS is overwritten by the bootstrap CSS
Hi, I am quite new to all of this and I am writing for the first time to this forum, so I hope everything is up to standard.
Problem:
gulpfile.js
elixir(function(mix) {
mix.sass('app.scss');
mix.styles([
'vendor/bootstrap.css',
'vendor/jquery-ui.css',
'vendor/select2.css',
'vendor/select2-bootstrap.css',
'vendor/flatly-bootstrap-theme.css',
'app.css'
], null, 'public/css')
});
app.css
th {
padding: 15px;
}
.text-right {
text-align: right;
}
.border {
border: 1px solid #ddd;
}
.page-header {
margin-top: 1em;
margin-bottom: 0;
padding-bottom: 1em;
text-align: center;
line-height: 1;
border-bottom: none;
}
.page-header:after {
content: '';
display: block;
width: 70px;
height: 3px;
background: #e74c3c;
margin: 40px auto 0;
}
/*# sourceMappingURL=app.css.map */
The TH style is overwritten by bootstrap to 8px, the rest is working fine. I have tried border instead of padding and I have also tried reordering the list in gulpfile.js with no luck. What am I doing wrong?
Thank you.
Level 52
Please or to participate in this conversation.