Re: [css-d] Zebra Stripes effect with CSS and jQuery
Anthony wrote: What am I missing? A link? It's hard to tell what the problem is from that code snippet. -- Blake Haswell http://simpleweb.com.au/ __ css-discuss [css-d@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Re: [css-d] Zebra Stripes effect with CSS and jQuery
The site is still in development, so I don't have a production link as yet :( On Mon, Jan 14, 2013 at 1:59 PM, Blake Haswell wrote: > Anthony wrote: >> >> What am I missing? > > > A link? It's hard to tell what the problem is from that code snippet. > > -- > Blake Haswell > http://simpleweb.com.au/ __ css-discuss [css-d@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Re: [css-d] Zebra Stripes effect with CSS and jQuery
On 1/13/13 7:31 PM, Anthony wrote: The site is still in development, so I don't have a production link as yet :( On Mon, Jan 14, 2013 at 1:59 PM, Blake Haswell wrote: Anthony wrote: What am I missing? A link? It's hard to tell what the problem is from that code snippet. We'd prefer a simple version to a full production page anyway. You could use your browser's "save complete page" (not .mht format) to save that page, use your editor to delete any proprietary code, and post that online somewhere. I hope this is helpful. -- Cordially, David __ css-discuss [css-d@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Re: [css-d] Zebra Stripes effect with CSS and jQuery
Le 14 janv. 2013 à 12:12, Anthony a écrit : > What am I missing? ::sigh:: Without a link, it is impossible to help you. Have you checked with the debugging tools provided by most browsers? Error consoles, WebKit inspector, Firebug, etc will provide you with lots of information. There could be a script error, or there could be some style rule that overrides the one you set through the script (you set the background on the TR, but you could also have a background set on the TD descendant of that TR). Or create a minimum testcase and start analysing what is going on, and upload that for someone to help you out. Philippe -- Philippe Wittenbergh http://l-c-n.com __ css-discuss [css-d@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Re: [css-d] Zebra Stripes effect with CSS and jQuery
My main issue is that the javascript code is not appending an odd class for each tr. Maybe it's just my expectations of what should happen that are incorrect. I was expecting the code I've got to change my html as follows Is this what should happen? Or have I got it all wrong? On Tue, Jan 15, 2013 at 10:40 AM, Philippe Wittenbergh wrote: > > Le 14 janv. 2013 à 12:12, Anthony a écrit : > >> What am I missing? > > ::sigh:: > > Without a link, it is impossible to help you. > Have you checked with the debugging tools provided by most browsers? Error > consoles, WebKit inspector, Firebug, etc will provide you with lots of > information. > There could be a script error, or there could be some style rule that > overrides the one you set through the script (you set the background on the > TR, but you could also have a background set on the TD descendant of that TR). > > Or create a minimum testcase and start analysing what is going on, and upload > that for someone to help you out. > > Philippe > -- > Philippe Wittenbergh > http://l-c-n.com > > > > __ css-discuss [css-d@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Re: [css-d] Zebra Stripes effect with CSS and jQuery
Le 15 janv. 2013 à 09:33, Anthony a écrit : > My main issue is that the javascript code is not appending an odd > class for each tr. Maybe it's just my expectations of what should > happen that are incorrect. > > I was expecting the code I've got to change my html as follows > > > Is this what should happen? Or have I got it all wrong? That is probably what should happen if everything works correctly… But you can't see that by doing a 'view source'; you need to check the generated source (after the JS has run). With Firebug (Firefox) or WebKit Inspector (Chrome, Safari): right click on the element and choose 'Inspect…', then you'll be able to see the generated source. Philippe -- Philippe Wittenbergh http://l-c-n.com __ css-discuss [css-d@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Re: [css-d] Zebra Stripes effect with CSS and jQuery
On Jan 13, 2013, at 10:12 PM, Anthony wrote: > > > The zebra stripes effect doesn't work... Did you know you could do that with php? Here's an example: http://webbytedd.com/b/color-rows/ The page should have a .php suffix -- or -- a htaccess file that calls the php interpreter to work on html file. Cheers, tedd _ t...@sperling.com http://sperling.com __ css-discuss [css-d@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Re: [css-d] Zebra Stripes effect with CSS and jQuery
Or CSS: http://css-tricks.com/snippets/css/css3-zebra-striping-a-table/ -- Blake Haswell http://simpleweb.com.au/ Tedd Sperling wrote: On Jan 13, 2013, at 10:12 PM, Anthony wrote: The zebra stripes effect doesn't work... Did you know you could do that with php? Here's an example: http://webbytedd.com/b/color-rows/ The page should have a .php suffix -- or -- a htaccess file that calls the php interpreter to work on html file. Cheers, tedd _ t...@sperling.com http://sperling.com __ css-discuss [css-d@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/ __ css-discuss [css-d@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/