|
| |||||||
| Support (Version 2) Here is where we provide limited support for version 2. If you are seeking support for version 3 please post in the phpLD 3.0 Support Forum. |
![]() |
| | topic widgets |
| | #1 |
| Join Date: Feb 2006 Posts: 6 | It is possible to add alternating row colors to links listing page? |
| |
| | #2 |
| Supporter Moderator Join Date: Dec 2005 Location: Cluj-Napoca/Sighisoara (Romania) Posts: 4,524 | Code: Content visible to registered users only. Go to your "link.tpl" file, and find: Code: Content visible to registered users only. Code: Content visible to registered users only. Code: Content visible to registered users only. Boby __________________ Please do *not* contact me for support on phpLD!! I can hardly find time to give support for my own mods, for anything else I won't.
|
| |
| | #3 |
| Join Date: Feb 2006 Posts: 6 | Tnq for your fast reply It's working 8)Mai pe romaneste - ms pentru ajutor |
| |
| | #4 |
| Join Date: Apr 2007 Posts: 48 | Okay, I'm at wits end here. This should be so-o-o simple. The background color is not showing up in alternate the alternate tables. I've added this to my main.css file in templates/Default/style Code: Content visible to registered users only. Code: Content visible to registered users only. Code: Content visible to registered users only. So I looked up background color in CSS. Well, for the span property, it is written a bit differently (can't find an example for table background colors in CSS in my book). So I tried this: Code: Content visible to registered users only. My CSS file is the default CSS file. This is driving me totally nuts. Since everything else works, why doesn't my alternating background color show up? So in desperation, I tried making the background color black. Code: Content visible to registered users only. Choose a different color for the background than #F8F8FC !! (It is too white to show a difference against white backgrounds.) **goes off to take some aspirin** |
| |
| | #5 |
| Join Date: May 2007 Posts: 63 | How would you do this if you converted the table into a div? My current code shows: <div style="padding:5px; margin:5px; border-top-style: dotted; height:200px; border-top-color: #CCCCCC; border-top-width: 1px; cycle values dd,even;">You can see that I tried adding it like the above but dont know the css for this....... |
| |
| | #6 |
| Supporter Join Date: May 2007 Posts: 159 | Thank you for this worked out great Last edited by Mr_Bill; 08-27-2007 at 07:45 PM. |
| |
| | #7 |
| Join Date: Nov 2006 Posts: 10 | Code: Content visible to registered users only. Code: Content visible to registered users only. |
| |
| | #8 |
| Supporter Join Date: Aug 2007 Posts: 94 | And what if the <div> is allready styled through the main.css with a class, like <div class="something">? |
| |
| | #9 |
| Supporter Moderator Join Date: Dec 2005 Location: Cluj-Napoca/Sighisoara (Romania) Posts: 4,524 | You can assign more classes to an HTML element: Code: Content visible to registered users only. Code: Content visible to registered users only. You can now style the element in your CSS file by using one of the assigned classes. If you have a custom styling set for let's say "class1" and now your HTML element has also "odd" or "even" assigned, you can override the settings with: Code: Content visible to registered users only. (bad IE)Code: Content visible to registered users only. __________________ Please do *not* contact me for support on phpLD!! I can hardly find time to give support for my own mods, for anything else I won't.
|
| |
| | #10 |
| Supporter Join Date: Aug 2007 Posts: 94 | Thanks Boby, What I did was remove the original class from the div and give it the class="{cycle values="odd,even"}. In my .css I added the original properties to .even and .odd. Apparently that works nicely, if I discover any issues later on I´ll restyle using several classes in the same div. I didn´t know that I can apply more than one class to one element. |
| |
| | #11 |
| Supporter Moderator Join Date: Dec 2005 Location: Cluj-Napoca/Sighisoara (Romania) Posts: 4,524 | Code: Content visible to registered users only. Code: Content visible to registered users only. __________________ Please do *not* contact me for support on phpLD!! I can hardly find time to give support for my own mods, for anything else I won't.
|
| |
| | #12 |
| Supporter Join Date: Aug 2007 Posts: 94 | I see, That works nicely, just applied this. Thanks again and greetings. |
| |
| | #13 |
| Supporter Join Date: Dec 2005 Location: www.dynn.org Posts: 177 | do you have demo for this? __________________ |
| |