I have a wordpress site and all tables seem to be borderless as far as I can see.
When I check it with Firebug I can disable css initialization for <table>
element and design seems to be OK. Firebug tells me the CSS code is set in theme’s style.css file. I open the file and check the content but there is no such line.
After this I choose a worse way to manually set the style
attribute of my <table>
HRTML element as follows. I also apply !important directive to override anything.
As far as I can know the style
attribute of an HTML element overrides all CSS and previous (inherited or not inherited) style declarations. Also the !important also makes it undestructable. I have used both I still can not make it work.
What am I possibly doing wrong and how can I fix it?
Regards.
P.S. : You can check the faulty content @ http://pmiturkey.org/hakkimizda/uyelik/
The table as the bottom of the content.
OK, I played a little with firebug in your website here and had to do a few things:
1) Remove border=”1″ in that same table
2) Change from style=”1 border #000 !important;” to style=”1px border #000;”
These changes solve your problem.
EDIT
In order to draw borders around each cell of the table instead, proceed as follows:
1) Remove the table’s style attribute
2) In your css file, add the following:
This should add borders around each table cell of yours. Hope it helps!
Well for starters you aren’t adding a color to your border
border: 1px solid red;
. The borders are probably being removed in a css reset. You can add css to the bottom of your styles.css file and that should override any reset.Also.. are you wanting a border around the table, or a border between the table rows? You might want to specify what exactly you want.