Tagged: x
-
AuthorPosts
-
December 1, 2016 at 1:44 pm #1277793
kynate33ParticipantI have made each column header in my table featured to get the style that goes with it. I want each column header background to be a different color. I have tried using some variations of nth child(x), but cant get it to work. Please help.
The table I am working with can be found here:
December 1, 2016 at 2:18 pm #1277845
Nabeel AModeratorHi there,
Thanks for writing in! I checked your page and it doesn’t exist, have you deleted the page? Please give us the page URL so we can take a look.
Thanks!
December 1, 2016 at 3:30 pm #1277947
kynate33ParticipantIt is there now, it is a new page. Please try and view it again.
Thanks
December 1, 2016 at 7:23 pm #1278210
LelyModeratorHello There,
I tried the page too but it is page not found. See this:http://screencast-o-matic.com/watch/cDlnVYQlz3
December 2, 2016 at 7:24 am #1278728
kynate33ParticipantOk, I’m not sure what is going on. This is a page that is not complete. I didn’t really want to publish it, but I did so that I could get an answer to my question. Is there a way for you to answer my question without seeing the page? Is there not a standard way to change the color of the individual headers for the price table? I will see what I can do to get the page live in the meantime.
December 2, 2016 at 7:40 am #1278746
kynate33ParticipantOk, it is live now.
December 2, 2016 at 8:29 am #1278795
JoaoModeratorHi There,
Please try the following code:
.x-pricing-column.featured h2:first-of-type{ background: red; } .x-pricing-column.featured h2:nth-child(2) { background: green; } .x-pricing-column.featured h2:nth-child(3) { background: yellow; } .x-pricing-column.featured h2:last-child { background: orange; }Hope it helps
Joao
December 2, 2016 at 9:49 am #1278868
kynate33ParticipantDidn’t work. When I copy this into the global css, all of the featured headers are red.
December 2, 2016 at 12:33 pm #1279039
JadeModeratorHi there,
Please use this code:
.page-id-1817 #x-section-2 .x-pricing-table .x-pricing-column:nth-child(1) h2 { background: red; } .page-id-1817 #x-section-2 .x-pricing-table .x-pricing-column:nth-child(2) h2 { background: green; } .page-id-1817 #x-section-2 .x-pricing-table .x-pricing-column:nth-child(3) h2 { background: yellow; } .page-id-1817 #x-section-2 .x-pricing-table .x-pricing-column:nth-child(4) h2 { background: orange; }Hope this helps.
December 2, 2016 at 1:18 pm #1279083
kynate33ParticipantThis produces the same result. All of the headers are red.
December 2, 2016 at 2:21 pm #1279141
kynate33ParticipantWhat could the reason be that the red color is carrying over to the other headers? It seems to me that the nth-child call outs are not working properly.
December 2, 2016 at 6:41 pm #1279331
FriechModeratorHi There,
Its on different colour now, did you resolve the issue?
http://image.prntscr.com/image/a138c1fdc43c4a24962ebb00455bdb19.png
Please clear your browser’s cache.
Thanks.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1277793 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
