DotDragnet
May 24, 2012, 10:31:59 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Mobile users - Our forum is Tapatalk enabled. http://www.tapatalk.com/
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: CSS - Styling <col>'s  (Read 1071 times)
Jeep Stone
Hero Member
*****
Posts: 908



View Profile WWW Awards
« on: August 13, 2007, 09:43:34 AM »

I've got the following HTML:

Code:
<table class="hampercontents">

<col></col>
<col id="quantities"></col>

<tbody>
<tr>
<td>Item 1</td>
<td>30cl</td>
</tr>
<tr>
<td>Item 2</td>
<td>60cl</td>
</tr>

and I wish to style up the second column. However, my CSS below seems to have no effect.

Code:
table.hampercontents #quantities {
color: #81040A;
font-size: 14px;
}

Is this a correct implementation of <col>?
Logged

Mr Anderson
DDN Contribs
Hero Member
*****
Posts: 2267



ap4a.uk ap4a
View Profile WWW Awards
« Reply #1 on: August 13, 2007, 10:06:20 AM »

http://css-discuss.incutio.com/?page=StylingColumns
http://ln.hixie.ch/?start=1070385285&count=1
Logged

Jeep Stone
Hero Member
*****
Posts: 908



View Profile WWW Awards
« Reply #2 on: August 13, 2007, 02:18:21 PM »

Thanks. Useful to know.
Logged

Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2006-2008, Simple Machines Valid XHTML 1.0! Valid CSS!