This is a discussion on "[SOLVED] Zebra Row Color <DIV>" within the Web Page Design section. This forum, and the thread "[SOLVED] Zebra Row Color <DIV> are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
[SOLVED] Zebra Row Color <DIV>
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
[SOLVED] Zebra Row Color <DIV>
I have not tested them in my css page but would glad if someone can give me a buzz of how to to do this in css page. Thanks..
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
|
|
|
|||
|
Re: Zebra Row Color <DIV>
Well, most of you encourage to use CSS and throw away the "table" things...
Thats why I am asking if this kind of code can be handle by CSS. I am using ASP by the way, and yes I am trying to display some data from my database to this "Zebra Row Color". Well, that's mean CSS <div> cannot be use to display zebra row color huh? Thanks.
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
|
||||
|
Re: Zebra Row Color <DIV>
Quote:
It can be done but is the div element the proper element for the job? If you are displaying tabular data, then no. |
|
|||
|
Re: Zebra Row Color <DIV>
Ok, I get the idea.
CSS for Layout! Table for Tabular Data! Thanks Karinne. By the way, I like the new tag that you have under your name there! Does "Reputable Member" get one too? Thanks again for the explaination above.
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
|
||||
|
Re: Zebra Row Color <DIV>
Yes! see ... that wasn't so hard
Quote:
Reputable Members won't have one ... just people on staff, supermembers and the newsletter team No problem! |
|
|||
|
Re: Zebra Row Color <DIV>
Quote:
Quote:
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
|
||||
|
Re: Zebra Row Color <DIV>
This is how i did it in php. If you can try and translate that to ASP somehow, it may be of some use as I no know nothing about ASP
|
|
|||
|
Re: Zebra Row Color <DIV>
That seems unnecessarily complicated.
I would just add a class to every other row of the table:
Last edited by MikeHopley; Sep 29th, 2007 at 10:41. |
|
||||
|
Re: Zebra Row Color <DIV>
Quote:
As for using JavaScript to do this, what if a user has JavaScript disabled in their browser? |
|
|||
|
Re: Zebra Row Color <DIV>
Yeah... that is one thing we have to put in mind when dealing with javascript.
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
|
|||
|
Re: Zebra Row Color <DIV>
Quote:
Javascript should be used to enhance websites. Wherever possible, all content and important functions should remain accessible without javascript. Most users will still get your pretty zebra colours. The others will still get the table. |
|
||||
|
Re: Zebra Row Color <DIV>
Quote:
|
|
||||
|
Re: Zebra Row Color <DIV>
plus this:
January 94% 6% Thats the amount of people that have javascript turned on and off.
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
|||
|
Re: Zebra Row Color <DIV>
What is the point/purpose/advantage of turning off the javascript, by the way?
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
|
||||
|
Re: Zebra Row Color <DIV>
there are some JS attacks/annoyances people may want to avoid.
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
|||
|
Re: Zebra Row Color <DIV>
oic...
Well thanks for clearing that up alex.
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
|
|||
|
Re: Zebra Row Color <DIV>
Ok I get it.
Thanks everyone.
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [SOLVED] color-box selections | pesho318i | JavaScript Forum | 6 | Dec 22nd, 2007 20:57 |
| [SOLVED] Links not the right color | motormaniac | Web Page Design | 5 | Dec 9th, 2007 09:25 |
| [SOLVED] Change Input Textbox Background Color | tejaxx | JavaScript Forum | 4 | Nov 19th, 2007 20:16 |
| [SOLVED] Link Color and problem with Image positioning! | Ed | Web Page Design | 33 | Oct 10th, 2007 11:17 |
| background color | kaz | Web Page Design | 1 | Apr 20th, 2005 11:43 |