Board index   FAQ   Search  
Register  Login
Board index php forum :: HTML CSS

Table properties using CSS ...

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

Moderators: macek, egami, gesf

Table properties using CSS ...

Postby drimades » 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!
----------------------------------------
drimades
New php-forum User
New php-forum User
 
Posts: 39
Joined: Wed Oct 29, 2003 2:11 pm

Postby Alexej Kubarev » Fri Jan 28, 2005 4:44 am

try Ctrl+F5 to reload..

however it might be that the css is not included..
User avatar
Alexej Kubarev
Site Admin
Site Admin
 
Posts: 2223
Joined: Fri Mar 05, 2004 7:15 am
Location: Täby, Stockholms län

Postby drimades » 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?!

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

Postby sobriety » Tue Mar 29, 2005 9:51 pm

not sure if this will work, but try changing the name to

table.purpletbl1
User avatar
sobriety
New php-forum User
New php-forum User
 
Posts: 4
Joined: Tue Mar 29, 2005 9:14 pm
Location: Hong Kong

Postby Alexej Kubarev » 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..
User avatar
Alexej Kubarev
Site Admin
Site Admin
 
Posts: 2223
Joined: Fri Mar 05, 2004 7:15 am
Location: Täby, Stockholms län

Postby MrAustin » Sun Apr 10, 2005 7:51 pm

Make sure there are not any other selectors that are conflicting with the properties you've set forth above. Otherwise, just test this line to see if it gets you what you like:

Code: Select all
<table style="border: 3px double purple;">
  <tr>
    <td>test</td>
  </tr>
</table>


I often use inline definitions when I am having problems with classes.
MrAustin
New php-forum User
New php-forum User
 
Posts: 2
Joined: Sun Apr 10, 2005 7:46 pm

Postby Alexej Kubarev » Sun Apr 10, 2005 10:41 pm

hmmz... I never had problems with classes... weird...
User avatar
Alexej Kubarev
Site Admin
Site Admin
 
Posts: 2223
Joined: Fri Mar 05, 2004 7:15 am
Location: Täby, Stockholms län


Return to CSS

Who is online

Users browsing this forum: No registered users and 0 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.

cron