Table properties using CSS ...

Questions and tutorials related to Cascading Style Sheets *all versions*

Moderators: egami, macek, gesf

Post Reply
drimades
New php-forum User
New php-forum User
Posts: 39
Joined: Wed Oct 29, 2003 2:11 pm

Fri Jan 28, 2005 3:23 am

----------------------------------------

I'm using the following class for my tables:

.purpletbl
{
background:transparent;
font-size:0.8em;
border-style:double;
border-width:3px;
border-color:purple
}


If I write in my code: <table class="purpletbl">

it doesn't apply the settings to the table but only to rows (no external borders).
Why?

Thank you!
----------------------------------------

User avatar
Alexej Kubarev
Site Admin
Site Admin
Posts: 2213
Joined: Fri Mar 05, 2004 7:15 am
Location: Täby, Stockholms län
Contact:

Fri Jan 28, 2005 4:44 am

try Ctrl+F5 to reload..

however it might be that the css is not included..
Best Regards,
Alexej Kubarev
-------------------------------
Zend Certified Engineer
Image Image

drimades
New php-forum User
New php-forum User
Posts: 39
Joined: Wed Oct 29, 2003 2:11 pm

Fri Feb 04, 2005 2:49 am

---------------------------------------------------------

.purpletbl1
{
align:center;
background:transparent;
font-size:13px;
font-weight:bold;
border-top-width:1px;
border-top-style:dashed;
border-color:purple;
}


If I apply the class setting to the column it works, if I apply it to the rows it doesn't work (specially the borders)!
Note: to the same table in <table> I'm applying the following class:

.purpletbl
{
background:transparent;
border-style:double;
border-width:3px;
border-color:purple
}


Can someone tell me why? Maybe there is a conflict?!

---------------------------------------------------------

User avatar
Alexej Kubarev
Site Admin
Site Admin
Posts: 2213
Joined: Fri Mar 05, 2004 7:15 am
Location: Täby, Stockholms län
Contact:

Wed Mar 30, 2005 12:57 am

still a bit confused... i believe that you have simply messed up somewhere a lil.. but where? hihi... there shouldnt be any conflict thou..
Best Regards,
Alexej Kubarev
-------------------------------
Zend Certified Engineer
Image Image

User avatar
Alexej Kubarev
Site Admin
Site Admin
Posts: 2213
Joined: Fri Mar 05, 2004 7:15 am
Location: Täby, Stockholms län
Contact:

Sun Apr 10, 2005 10:41 pm

hmmz... I never had problems with classes... weird...
Best Regards,
Alexej Kubarev
-------------------------------
Zend Certified Engineer
Image Image

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 3 guests