A
A
anvarik22020-10-31 12:04:12
css
anvarik2, 2020-10-31 12:04:12

How to customize the table?

The bottom line is that there is such a table: 5f9d286071e91730852662.png
With a resolution of less than 640, you need to make it so that it becomes like this:5f9d2885084cd957935907.png

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Vladimir Korotenko, 2020-10-31
@anvarik2

Make a media selector and make a display none for the desired columns.
Wrote from a mobile phone, so not quite right.
Here is your case
https://codepen.io/AllThingsSmitty/pen/MyqmdM

N
Nadim Zakirov, 2020-10-31
@zkrvndm

Use media queries and pseudo-elements. Look at an example from one of my sites:
https://imgural.ru/product/lpu
Scroll to the table and try to reduce the window width.

V
Vyacheslav Yuzhakov, 2020-12-23
@ledperm

Actually, one of the most effective options is to create a horizontal scroll for the table.
I found one interesting approach to table responsiveness. It consists in using data-attributes and pseudo-classes.
An example can be viewed on the page of my site https://cerbergroup.ru/dlya-biznesa/videomonitoring.php
There is a table at the bottom of the page. try reducing the window width. I hope you enjoy this option.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question