html - add bottom border to all table data cells -


Anyway, can I avoid writing glasses in every table data cell?

  & lt; Table width = '800' bgcolor = 'gray' cells = '0' style = "border-bottom-style: solid; border-bottom-width: 1px; border color: black" & gt; & Lt; TR & gt; & Lt; Td style = "border-bottom-style: solid; border-bottom-width: 1px;" & Gt; First name: & lt; Td style = "border-bottom-style: solid; border-bottom-width: 1px;" & Gt; {$ Info ['firstname']} & lt; / TD & gt; & Lt; / TR & gt; & Lt; Tr & gt; & Lt; Td style = "border-bottom-style: solid; border-bottom-width: 1px;" & Gt; Last name: & lt; Td style = "border-bottom-style: solid; border-bottom-width: 1px;" & gt; {$ Information ['aliases']} & lt; / TD & gt; & Lt; / TR & gt; & Lt; Tr & gt; & Lt; Td style = "border-bottom-style: solid; border-bottom-width: 1px;" & Gt; Email: & lt; Td style = "border-bottom-style: solid; border-bottom-width: 1px;" & Gt; {$ Info ['email']} & lt; / TD & gt; & Lt; / TR & gt; & Lt; TR & gt; & Lt; TD & gt; Password: & lt; TD & gt; ******** & lt; / TD & gt; & Lt; / TR & gt;    

This is the original CSS, put it in the head of your document: < Pre> & lt; Style type = "text / css" & gt; TD {Border bottom style: solid; Border-bottom-width: 1px; } & Lt; / Style & gt;

This will be applied to all & lt; Td> if you want it to be applicable to certain table cells or some tables, you have to start using more advanced selectors but any CSS tutorial can show you how to do this.

BTW, you can also do this from your desk:

  table {border style below: solid; Border-bottom-width: 1px; Border color: black}   

or use:

  table {border: 1px solid black; }   

Maybe you can see one.

Comments

Popular posts from this blog

python - Assemble mpeg file unable to play in mediaplayer -

c# - crystal report failed -

mongodb - CakePHP paginator ignoring order, but only for certain values -