Needs review
Project:
NoProb
Version:
6.x-2.1
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
26 Feb 2009 at 22:54 UTC
Updated:
7 Mar 2011 at 11:23 UTC
I like the simplicity of this theme just thought to share that if you want your table output to have alternate coloured rows then add the following to your style.cs file. I simple copied the code from the greenNblack theme.
tr.odd td, tr.even td {
padding:8px 5px;
border:1px solid #88B52D;
}
tr.odd td { background:#F3FAE4; }
tr.even td { background:#E0EFC0; }
tr.odd td.active { background:#E6F2CE; }
tr.even td.active { background:#D1E8A4; }
tr.odd td a, tr.odd td { color:#6A8C22; }
tr.even td a, tr.even td, thead th a { color:#344A04 !important; }
.pager { margin-bottom:15px; }
Just modify the colour and other properties properties to suit your needs.
Comments
Comment #1
Eric3 commentedNice idea; I'll try that.
Comment #2
Eric3 commentedIn the latest build of NoProb for Drupal 6, I implemented this by applying an almost-trasparent PNG to table cells in even rows. This way, tables featuring cells with multiple colours (e.g. Recent log entries) will still be shaded. The only downside is that it won't show up in IE 6 and earlier, although there is non-standard hackery available to get it working there too.
Comment #3
RainDruplets commented@msimanga
Awesome!!! Thanks msimmanga for this soultion. I tried stuff like
.views-view-grid td {
padding: 6px;
}.
but nothing worked. Your solution is neat and effective.
Regards,
Rainy