Selected from Linux Selected from PHP
- Ubuntu 17.10 Install google's mod pagespeed for apache - PHP-Ubuntu-Youtube-dl simple script for converting and downloading youtube video or mp3
- Ubuntu SSH tunnel via proxy - PHP while loop with every row with a different color
- Install GoAccess Apache Log Analyzer Tool on Ubuntu 17.10 - PHP use while loop in function
- SSHFS and map folder with a proxy - PHP List Files And Folders As links
- How to connect to SSH server with a proxy - PHP Extract Text From String
➥ Създаване на HTML таблица с различни цветове за всеки ред
Added by sonik on 02-05-2017 and keywords: html, table, different, row, color, td, tr, th, хтмл, различен, цвят, всеки, ред [ Print Article ]
Чрез тази методика си спестяваме писането на php код за всяка наша таблица и унифицираме страниците си.

<!DOCTYPE html>
table {
   font-family: arial, sans-serif;
   border-collapse: collapse;
   width: 100%;

td, th {
   border: 1px solid #dddddd;
   text-align: left;
   padding: 8px;

tr:nth-child(even) {
   background-color: #dddddd;

   <td>Alfreds Futterkiste</td>
   <td>Maria Anders</td>
   <td>Centro comercial Moctezuma</td>
   <td>Francisco Chang</td>
   <td>Ernst Handel</td>
   <td>Roland Mendel</td>
   <td>Island Trading</td>
   <td>Helen Bennett</td>
   <td>Laughing Bacchus Winecellars</td>
   <td>Yoshi Tannamuri</td>
   <td>Magazzini Alimentari Riuniti</td>
   <td>Giovanni Rovelli</td>


@All rights reserved with Copyright 2018 by Sonik_Blast [ Site Map ] [ RSS ] [ YouTube Mp3 Downloader and converter ]