I am facing an issue with the bootstrap CSS/print feature.
In the bootstrap CSS (reset.css) file, all styles are cleared for printing purposes.
@media print {
* {
text-shadow: none !important;
color: black !important;
background: transparent !important;
box-shadow: none !important;
}
}
However, I need to print certain lines in color. The structure of my table is as follows:
<div class="container">
<div id="task-summary">
<div id="process-summary">
<table class="table table-condensed">
<tbody>
<tr class="success">
<td>
I tried embedding this code snippet into my project but it did not work:
@media print {
#task-summary{
.success{
background-color: #DFF0D7 !important;
}
}
}
I have experimented with using display: none and confirmed that it works, but I'm still struggling to override the bootstrap CSS without modifying the reset.css file directly.
If anyone has any suggestions on how to achieve this, I would greatly appreciate it!