[SOLVED] Classes added to style.css seem to be ignored
For some content I like to use my own ccustom table style and thus I added a class (derived from table) to the 'styles.css' file like;
table.mytable { border-width: 0px; border-spacing: 0px; border-style: none; border-color: gray; border-collapse: collapse; background-color: white; However, when I apply the class in my content (using html edit) it is completely ignored. Is this by design or am I making a mistake? |
you should put this in the theme options at ATO->HTML/CSS Inserts->CSS Inserts
tis way they will be applied last and you won't have to re add them when you upgrade the theme since they are now a theme option and not a change to the code. |
Makes sense, however it does not work either.
See http://www.elefantin.nl/?p=5 for the result. It seems the style is not applied or overruled. I would expect something like this; http://www.elefantin.nl/test/ I have added the following CSS insert into your theme in Wordpress; table.photoblog { border-width: 0px; border-spacing: 0px; border-style: none; border-color: gray; border-collapse: collapse; background-color: white; } table.photoblog th { border-width: 0px; padding: 0px; border-style: none; border-color: gray; background-color: white; } table.photoblog td { padding: 0px 0px; background-color: #ffffff; border-style: none; } and in my post (html edited) I then use; <table class="photoblog" border="0"> <tbody> <tr> <td><img src="blogged/blog_effarc2009/eff1.jpg" alt="p1" width="180" height="135" /></td> <td><img src="blogged/blog_effarc2009/eff2.jpg" alt="p2" width="100" height="135" /></td> <td><img src="blogged/blog_effarc2009/eff3.jpg" alt="p3" width="180" height="135" /></td> <td><img src="blogged/blog_effarc2009/eff4.jpg" alt="p4" width="180" height="135" /></td> <td><img src="blogged/blog_effarc2009/eff5.jpg" alt="p5" width="100" height="135" /></td> </tr> </tbody></table> |
try this instead of what you have
HTML Code:
table.photoblog tr td, |
Ah, yes indeed ... that does the trick :). And what a nice compact way to (re)define the custon style. (typically lack of knowledge from my side)
Let me send you some kudo's as a token of appreciation for your swift reply. |
All times are GMT -6. The time now is 10:35 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.