Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme »

Removing "Zebra" stripes on a table for one post/page - not entire site


  #1  
Old Jun 11, 2010, 07:04 AM
globalnerds's Avatar
globalnerds
 
43 posts · Nov 2009
Saratoga Springs, NY
Removing "Zebra" stripes on a table for one post/page - not entire site

I want to put a table in one of my pages for formatting purposes - and for this one table, I don't want the zebra strips. However, I want to keep them on the tables that already exist on my site for my other post/pages, and other tables that exist in this page. Is there a way to "turn off" the zebra stripes for just one table?

I am running WP 2.9.2 and Atahualpa 3.4.4. The site is www.eponaracingstable.com

Thanks!!
__________________
Gary GlobalNerds.com
  #2  
Old Jun 12, 2010, 06:01 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
when you add the table, give it an ID= (see http://www.w3schools.com/css/css_id_class.asp for a reference) so you can uniquely identify it in a CSS Selector statement. Then you can add CSS Styling of your choice.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Last edited by juggledad; Jun 13, 2010 at 03:07 PM.
  #3  
Old Jun 12, 2010, 04:52 PM
globalnerds's Avatar
globalnerds
 
43 posts · Nov 2009
Saratoga Springs, NY
Do you know what portion of the css.php has the zebra code. I tried to look for it, but it wasn't easy to find.
__________________
Gary GlobalNerds.com
  #4  
Old Jun 12, 2010, 07:15 PM
globalnerds's Avatar
globalnerds
 
43 posts · Nov 2009
Saratoga Springs, NY
I put the following in my css.php:
Code:
table.nozebra {
	border-width: 10px;
	background: #aaa;
        text-align:left;
}
table.nozebra th {
	border-width: 10px;
	background: #aaa;
        text-align:left;
}
table.nozebra td {
	border-width: 10px;
	background: #aaa;
        text-align:left;
}
table.nozebra tr {
	border-width: 10px;
	background: #aaa;
        text-align:left;
}
I then put the following in the table html:
Code:
<table align="left" class="nozebra" style="width: 90%; ">
But the table still has the stripes (in this case the table has 2 columns and 1 row). Take a look at the following link:
http://www.eponaracingstable.com/roster/air-attack

I am referring to the table that has no borders (where the horse is).

Thanks!!
__________________
Gary GlobalNerds.com

Last edited by globalnerds; Jun 12, 2010 at 07:17 PM.
  #5  
Old Jun 13, 2010, 04:48 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
1) don't make changes to css.php you will just have to make them again the next time upyou upgrade. Put any new CSS or CSS overrides in ATO->Add HTML/CSS Inserts->CSS Inserts. they will be added to the CSS and are stroed in the DB as an option wo you can upgrade and they will carry over.

2) the only reference to 'nozebrz' outside the CSS is on a '<td class="nozebra">'
but your CSS doesn't reference it. You would need a 'td.nozebra {...}' to work with that
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Last edited by juggledad; Jun 13, 2010 at 03:08 PM.
  #6  
Old Jun 13, 2010, 12:45 PM
globalnerds's Avatar
globalnerds
 
43 posts · Nov 2009
Saratoga Springs, NY
I moved those changed from css.php into the db portion as you suggested, thanks.

Wouldn't the :
Code:
table.nozebra td {
	border-width: 10px;
	background: #aaa;
        text-align:left;
}
take care of the
Code:
'td.nozebrs {...}'
But just in case it was not what you were referring to, I change the css portion to:

Code:
td.nozebra {
	border-width: 10px;
	background: #aaa;
        text-align:left;
}
td.nozebra th {
	border-width: 10px;
	background: #aaa;
        text-align:left;
}
td.nozebra td {
	border-width: 10px;
	background: #aaa;
        text-align:left;
}
td.nozebra tr {
	border-width: 10px;
	background: #aaa;
        text-align:left;
}
And I still don't see a change. fyi - I really don't want the borders that large, but it is a very easy way to see if this is working.

Thanks!!
__________________
Gary GlobalNerds.com

Bookmarks



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to post on 2 seperate "Pages" or "Cats" TPR Atahualpa 3 Wordpress theme 18 Aug 4, 2010 08:24 PM
Removing header, footer and sidebars for a "splash" page mactony Header configuration & styling 29 Jun 9, 2010 07:10 PM
How to select "Only Exerpts"/"Full Posts" for certain post? shus Center area post/pages 4 Jan 19, 2010 01:41 PM
Archives Page-How can I add the date before the post title when using "postbypost"? fromtheranks Atahualpa 3 Wordpress theme 8 Jul 25, 2009 09:52 AM
How to style "post icon" and "post comments" text Whatsthatcat? RSS, Feeds & Subscribing 3 Apr 1, 2009 09:41 AM


All times are GMT -6. The time now is 08:29 AM.


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.