CSS in custom PHP file

deep64blue

DaDaBIK Guru
I have a custom PHP file in which I want to display a table, the data shows ok but there is no formatting.

I've added the following style to styles_screen_custom.css

table#asm_t01 {
width: 75%;
background-color: #f1f1c1;
border: 1px solid black;
border-collapse: collapse;
}

and I call it by this:-

echo "<table id='asm_t01'>";

but it still doesn't show any formatting.

What am I doing wrong?

You are using DaDaBIK version 9.2.2-Monterosso enterprise, installed on May 9, 2019 (installation code: 142355c2a450898537), the latest version of DaDaBIK is 9.3-Monterosso released on May 29, 2019

You are not running the last release of DaDaBIK, the release you are running might have bugs and security holes, see the official change log for further information. You can upgrade DaDaBIK here.

PHP Version: 7.3.6

mysql version: 5.5.60-0+deb7u1-log

Web server: Apache

Client: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36
 

eugenio

Administrator
Staff member
Hi,
your code seems fine, it's difficult to say why the formatting rule doesn't work without seeing the page. Is the page publicly accessible somewhere? Or maybe you can replicate it somewhere?

It's maybe a conflict with another formatting rule?

Best,
 
Top