HighDots Forums  

What's the CSS equivalent of <table bordercolor="#ffffff"> ?

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss What's the CSS equivalent of <table bordercolor="#ffffff"> ? in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #11  
Old   
Els
 
Posts: n/a

Default Re: What's the CSS equivalent of <table bordercolor="#ffffff"> ? - 01-31-2006 , 04:19 PM






Alan Silver wrote:

Quote:
OK, here is a complete page showing the problem. I realised whilst
making it that I am still using cellpadding and cellspacing on the
table> tag. I'm not sure what the CSS equivalents of these are.
cellpadding:
td{
padding:5px;
}

cellspacing:
table{
border-collapse:collapse;
}

Quote:
Here is the code. Thanks again for all the help.
[snip]
Quote:
.tableCell {
[snip styles]
}
[snip]

Quote:
tr class="tableCell"
td>this is some stuff</td
As you can see, you set the class on the TR, not the TD.
A small change to your CSS makes up for that:
..tableCell td{
[styles]
}

".tableCell td" is a selector for a td that is a descendent of an
element with class 'tableCell'.
You could also write ".DapTable td", since you want the style applied
to all the TDs in that table.

--
Els http://locusmeus.com/
accessible web design: http://locusoptimus.com/


Reply With Quote
  #12  
Old   
Yucky Korpulent
 
Posts: n/a

Default Re: What's the CSS equivalent of <table bordercolor="#ffffff"> ? - 01-31-2006 , 10:02 PM






And you thought that you could ask a question here and receive patient
understanding and helpful guidance rather than ridicule about your
ignorance? That, my naive friend, is _not_ the way it works in
Finland.

Yucky, http://www.yuckykorpulent.com


Reply With Quote
  #13  
Old   
Jim Moe
 
Posts: n/a

Default Re: What's the CSS equivalent of <table bordercolor="#ffffff"> ? - 02-01-2006 , 01:50 AM



Alan Silver wrote:
Quote:
The odds are that you are applying something to a <table> element when
you would in fact need to apply it to table cells as well.

Well, if I understand correctly, the border is part of the table, rather
than the cell. Going on the way HTML attributes work, "border" and
"bordercolor" (now obsolete) both went on the <table> tag to produce the
effect I described.

In the tag form the border[color] is applied to both the table and its
cells. In CSS table borders and table cell borders are separate and must
be specified individually; this is actually a Good Thing.

Quote:
Hint: specify the URL. It saves a lot of everyone's time, and you know,
everyone is busy.

I know, that's why the post was short and (hopefully) to the point. I
don't have an URL for this site, and as the HTML/CSS in question was so
short, I didn't see any need to create a sample page and find somewhere
free to upload it just for this.

It's easier to just provide an URL to a test case. It saves all this
blather about the scope of the problem.
In general there is more to a question than you think and having to
extract relevant info piecemeal is boring and annoying especially when you
suffer from a misunderstanding of CSS or HTML. A test case would provide
the info we need all in one package.

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)


Reply With Quote
  #14  
Old   
Alan Silver
 
Posts: n/a

Default Re: What's the CSS equivalent of <table bordercolor="#ffffff"> ? - 02-01-2006 , 07:30 AM



Quote:
OK, here is a complete page showing the problem. I realised whilst
making it that I am still using cellpadding and cellspacing on the
table> tag. I'm not sure what the CSS equivalents of these are.
snip

That's fantastic, thanks very much.

--
Alan Silver
(anything added below this line is nothing to do with me)


Reply With Quote
  #15  
Old   
Alan Silver
 
Posts: n/a

Default Re: What's the CSS equivalent of <table bordercolor="#ffffff"> ? - 02-01-2006 , 07:31 AM



Quote:
And you thought that you could ask a question here and receive patient
understanding and helpful guidance rather than ridicule about your
ignorance? That, my naive friend, is _not_ the way it works in
Finland.
Good job I don't live in Finland eh?

--
Alan Silver
(anything added below this line is nothing to do with me)


Reply With Quote
  #16  
Old   
Alan Silver
 
Posts: n/a

Default Re: What's the CSS equivalent of <table bordercolor="#ffffff"> ? - 02-01-2006 , 07:32 AM



Quote:
In general there is more to a question than you think and having to
extract relevant info piecemeal is boring and annoying especially when
you suffer from a misunderstanding of CSS or HTML. A test case would
provide the info we need all in one package.
Point taken. In this case it would have been better to have provided a
full sample of the code in question. It seemed such a simple issue that
I didn't see the point in making the post longer than needed.

Thanks for the clarification.

--
Alan Silver
(anything added below this line is nothing to do with me)


Reply With Quote
  #17  
Old   
Jukka K. Korpela
 
Posts: n/a

Default Re: What's the CSS equivalent of <table bordercolor="#ffffff"> ? - 02-01-2006 , 03:00 PM



Alan Silver <alan-silver (AT) nospam (DOT) thanx.invalid> wrote:

Quote:
And you thought that you could ask a question here and receive
patient understanding and helpful guidance rather than ridicule
about your ignorance? That, my naive friend, is _not_ the way it
works in Finland.

Good job I don't live in Finland eh?
You have the privilege of babbling pointlessly, and getting ignored in
future. You already admitted you should have posted a URL, so praising
a troll was foolish. Feed the trolls, get treated like one. Hope this
helps. HAND.

(I would have sent this privately only, but you use a fake From field.)

--
Yucca, http://www.cs.tut.fi/~jkorpela/


Reply With Quote
  #18  
Old   
Yucky Korpulent
 
Posts: n/a

Default Re: What's the CSS equivalent of <table bordercolor="#ffffff"> ? - 02-01-2006 , 03:39 PM



Jukka K. Korpela wrote:
Quote:
You have the privilege of babbling pointlessly, and getting ignored in
future. You already admitted you should have posted a URL, so praising
a troll was foolish. Feed the trolls, get treated like one. Hope this
helps. HAND.
Now, now, Jukka... Mine is not a mission of trolldom, but rather, one
of rescue. I envision a Usenet free from the tyranny of conceited
buffoons like yourself whose first reaction is to bash newbies about
their misspellings, their misuse of technical jargon and their
nonconformity to whatever rules and regulations you and your ilk have
decreed to be the unquestionable law of Usenet.

We can do better!!!! We must do better. We must defeat bullies the
same way we defeat trolls---by ignoring them. Preface all questions
with (No Jukka!) to indicate arrogant responses from self-satisfied
clowns are not acceptable. In time, "NJ" will become a standard
tagline across Usenet, a constant reminder of how far we have come
since the days when "Clearly you have no idea what you are doing. Try
reading an introductory book on HTML" was once a common response to
well-intentioned questions. I HAVE A DREAM!!!!!!!!!!!!!!

Yucky, http://yuckykorpulent.com



Reply With Quote
  #19  
Old   
Alan Silver
 
Posts: n/a

Default Re: What's the CSS equivalent of <table bordercolor="#ffffff"> ? - 02-01-2006 , 05:30 PM



Quote:
And you thought that you could ask a question here and receive
patient understanding and helpful guidance rather than ridicule
about your ignorance? That, my naive friend, is _not_ the way it
works in Finland.

Good job I don't live in Finland eh?

You have the privilege of babbling pointlessly,
We live in a democratic society, and I believe that is one of the
privileges ;-)

Quote:
and getting ignored in
future. You already admitted you should have posted a URL, so praising
a troll was foolish. Feed the trolls, get treated like one. Hope this
helps. HAND.
I read his comment as mild humour, and replied the same way.

Quote:
(I would have sent this privately only, but you use a fake From field.)
Correct. I'm fed up of spam.

--
Alan Silver
(anything added below this line is nothing to do with me)


Reply With Quote
  #20  
Old   
Alan Silver
 
Posts: n/a

Default Re: What's the CSS equivalent of <table bordercolor="#ffffff"> ? - 02-02-2006 , 01:09 PM



Hello again,

Just when you thought you'd got rid of me eh? I'm back with another dumb
question about tables.

Thanks to the help I got here, I now have my tables working fine with
styles instead of inline HTML attributes. However, I've come across a
variation of the problem in that I have a nested table, and I can't
remove the styles from this!! I even have a URL this time...

http://www.kidsinaction.org.uk/Tables.html

If you look in the bottom-right cell of the main table, you see another
table. I want to remove the borders from this one. I tried this by
defining a class like this...

..NoBorders {
border-width: 0px;
border-style: none;
}

and applying it. I tried the table tag, the tr, and the td (all three in
the sample shown), but it didn't do anything. It still has the blue
borders.

I'm sure I'm doing something really stupid here. Please explain!!

TIA

--
Alan Silver
(anything added below this line is nothing to do with me)

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.