HTML CODE
-
The following html code does not work on ‘posts’ and ‘pages’ but works on “widgets”. Why or what I am doing wrong?
Here is the HTML code in question<TABLE BORDER="4" CELLSPACING="4" CELLPADDING="4"> <TR> <TD BGCOLOR='#ffff00'>Yellow Stars <TD BGCOLOR='#00ff00'>Green Clovers </TR> <TR> <TD BGCOLOR='#ff00ff'>Purple Moons <TD BGCOLOR='00ffff'>Blue something or other... </TD> </TR> </TABLE>Website URL is https://onlinefreetool.wordpress.com/2018/10/11/4-colour-table/
I would appreciate it if you could please tell me how to get it to work on my ‘posts’ and ‘pages’
I have tried the following browsers: Microsoft Edge, Google Chrome, Firefox and Explorer, and doesn’t work on any of them.The blog I need help with is: (visible only to logged in users)
-
Hi there!
I’ve been trying your code in one of my sites and works perfectly, but after doing some tests I figured out that it only doesn’t work in your theme, because your theme is changing the background color in every other row of the table; take a look at this picture to see what I mean:
This is integrated in the CSS code of your theme (.post-content table tbody > tr:nth-child(2n+1) > td), so there’s not much that can be done, but at least you now know why it doesn’t work :)
-
Hi onlinefreetool,
Did you see my previous reply in this thread?
I provided some alternative table code there :)
@magdarium — your hunch is correct, these are Rowling’s default table styles. -
-
- The topic ‘HTML CODE’ is closed to new replies.