Tables with different color left and right borders, no top or bottom borders, etc.

G

George

Hi,

I have seen a table, somewhere that had different colors for left and
right borders.

I though the tag was something like this:
<table leftborder=blue, rightborder=red>
<tr>
<td

I know one thing for sure - it wasn't done in CSS or any special
scripting language.

Can someone help?

Thanks,
George
 
N

Neal

Hi,

I have seen a table, somewhere that had different colors for left and
right borders.

I though the tag was something like this:
<table leftborder=blue, rightborder=red>
<tr>
<td

I know one thing for sure - it wasn't done in CSS or any special
scripting language.

It's easy as pissing on a pumpkin in CSS. Why do you not want that
solution?

Which, incidentally, is:

table {
border-left: blue;
border-right: red;
}

Or:

<table style="border-left: blue; border-right: red;"
otherattributes="values">
 
N

Neal

Which, incidentally, is:
not:

table {
border-left: blue;
border-right: red;
}

Or:

<table style="border-left: blue; border-right: red;"
otherattributes="values">

But:

table {
border-width: 1px;
border-style: solid;
border-left-color: blue;
border-right-color: red;
}

Or:

<table style="border-width: 1px; border-style: solid; border-left-color:
blue; border-right-color: red;" otherattributes="values">
 
G

George

It's easy as pissing on a pumpkin in CSS. Why do you not want that
solution?

Which, incidentally, is:

table {
border-left: blue;
border-right: red;
}

Or:

<table style="border-left: blue; border-right: red;"
otherattributes="values">

I found what I was originally looking for:

<table border="5" bordercolorlight="red" bordercolordark="blue">

I tried your second method, but that did not work.
This is why I don't really care for CSS. I use JavaScript sometimes,
when I find a really cool script effect.

But the simple stuff like for what I wanted here, must work
cross-browser.

Thanks,George
 
N

Neal

I tried your second method, but that did not work.

Because I screwed it up.
This is why I don't really care for CSS.

Well, don't judge CSS on my inconsistency.
I use JavaScript sometimes,
when I find a really cool script effect.

But JS is less likely to be available than CSS. CSS isn't a security risk.
But the simple stuff like for what I wanted here, must work
cross-browser.

That's what I'm sayin'.
 
R

rf

George said:
I found what I was originally looking for:

<table border="5" bordercolorlight="red" bordercolordark="blue">

I tried your second method, but that did not work.
This is why I don't really care for CSS.

I use JavaScript sometimes,
when I find a really cool script effect.

Javascript can not cause an element to have borders, of any colour, unless
you fiddle with the style (that is, CSS) of course :)
But the simple stuff like for what I wanted here, must work
cross-browser.

And what makes you think the above will work cross-browser? There are no
such attributes as bordercolorlight and bordercolordark in the HTML
specifications. These things are a Microsoft invention. The fact that some
browser other than IE may support them is more accidental than anything
else.
 
G

George

In alt.html George said:


please don't toppost, it upsets the little voices.

How am I supposed to post my replies in a newsgroup?:
http://allmyfaqs.com/faq.pl?How_to_post

Thanks again. I will comply about the top post.
I had no idea. I lurn something nu evry day.

Here's one though:

<td bgcolor=AliceBlue
onMouseOver="document.bgColor='AliceBlue'";return=true>&nbsp&nbsp</td>

On a table, I have the above statement, which does just what it's
supposed to.

But, I would like to add a caption, so the little yellow banner pops
up and shows Alice Blue.. Akin to alt="Alice Blue", on the <img src
statement.

How can I include a caption function in that <td statement?
Thanks,George
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,731
Messages
2,569,432
Members
44,832
Latest member
GlennSmall

Latest Threads

Top