Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Piatok, 19. apríl 2024
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Fórum  »  Color alternate rows on initial view?

phpMyEdit General     Color alternate rows on initial view?
Odoslať novú tému   Odpovedať na tému    
 
rumex     Založený: 27.10.2017   Príspevky: 7  
Príspevok Zaslal: 2018-05-15 15:55
Návrat hore  Odpovedať s citátom     

Hi

Whats a good way to color the background of alternate rows to make them more readable?

 
doug     Založený: 10.02.2003   Príspevky: 1013   Bydlisko: Denver, Colorado (USA)
Príspevok Zaslal: 2018-05-15 23:31
Návrat hore  Odpovedať s citátom     

Right click on the form when in List mode. View Source and note the existing style classes, then create a corresponding style in your stylesheet. There are probably two TR classes one with a 0 and another with a 1, thus create one or two classes to match. I moved on to Bootstrap HTML5, an alternative, in which you can hack the TABLE tags in the class file in order to add Bootstrap classes.
https://getbootstrap.com/docs/4.1/content/tables/

 
rumex     Založený: 27.10.2017   Príspevky: 7  
Príspevok Zaslal: 2018-05-17 15:08
Návrat hore  Odpovedať s citátom     

just in case anyone else is interested I successfully did the following. From the generated php, I cut out the style section into a file called styles-agenter.css, so it looks like

<!DOCTYPE html>
<html>
<head>
<title>Agenter</title>
<link rel="stylesheet" type="text/css" href="styles-agenter.css">
</head>

---
In the styles-agenter.css file it looks like

-- <style type="text/css">
hr.pme-hr { border: 0px solid; padding: 0px; margin: 0px; border-top-width: 1px; height: 1px; }
--- ... copied code cut out for clarity ----
td.pme-stats { text-align: right; }
tr.pme-row-0 { background: #d3d2c2 } -- this gives me the colored coloured alternate row
-- </style>

 
Odoslať novú tému   Odpovedať na tému    

Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok · Odkazový formulár · Prihláška
Upozorniť na chybu na PLATON.SK webstránke · Podmienky použitia · Ochrana osobných údajov