wdir

Third Party Plugins to CMSimple - how to install, use and create plugins

Moderator: Tata

Post Reply
ustalo
Posts: 165
Joined: Mon Aug 16, 2010 7:42 am
Location: Russia
Contact:

wdir

Post by ustalo » Tue Apr 09, 2024 2:31 pm

Hello
Masters
haw to make table of content not so wide
in % of window?

wdir
https://www.sima.spb.ru/?Kako/Knigi/Kollekciya
Aleksei

Tata
Posts: 3588
Joined: Tue May 20, 2008 5:34 am
Location: Slovakia
Contact:

Re: wdir

Post by Tata » Wed Apr 10, 2024 9:07 am

Pack the wdir() in a DIV aand check

Code: Select all

.wdir_table {
  border-collapse: collapse;
  width: 100%; 
}
If width is set to 100%, the table will get its width from the width of the parent DIV.
In your template you have

Code: Select all

<DIV>
<table class="wdir_table" ...
The div has no class. Here you can change DIV to

Code: Select all

<div class="myClass">
and add this class in your template/stylesheet.css
e.g.

Code: Select all

.myClass{width:75%}
In this case the DIV will always use 75% of the entire page width and the table will always use the full width of the DIV.
However, I am not sure how will this behave with other used classes e.g.

Code: Select all

.col-md-...
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.

Post Reply