Site logo

Archived topic

CSS Issue

24 replies · Started by johnzoro on May 5, 2017

Viewing posts 16–25 of 25

i removed the

.responsive-stacked-table.with-mobile-labels td:nth-of-type(1):before {
content: "Model:";

bits

and now it works but doesn't have headers on mobile view

What exactly is the issue now? Both tables look identical to me. Something wrong on mobile?

yeah on mobile when they're stacked it used to have the catergory as a header in each section

but now it doesn't even if i have the data content thing in the td tag

desktop laptop view with catergories

this is how mobile view looks now

this is how it used to look

no it is missing the headers in the stackable table

@John I'm just another GP user passing by but this thread caught my eye. I really love CSS and detangling CSS issues so I took a look at what you have on your site vs what's on the test page you linked.

Quick tip: if dealing with code that is working on one site but not on another, https://text-compare.com/ can be your best friend. A quick check shows that your live site is missing content: attr(data-category); from .responsive-stacked-table.with-mobile-labels td:before {

In other words:

    .responsive-stacked-table.with-mobile-labels td:before {
        display: block;
        font-weight: bold;
        content: attr(data-category); /* here's the line you're missing */
    }

wekhter I could kiss you! thanks for the tip!

it's resolved!

i love the GP community!

Thanks, wekhter! :)

This archived topic is closed to new replies.