473,385 Members | 1,409 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

BORDERCOLOR In A Table

I have a table that I need a coloured border for it rather than the plain
old grey one. I have put in the command bordercolor="0000e0" within the
table command. However whilst this physically works, the w3c validator fails
on this command and says it is not a valid command where it is. What other
solutions could I possibly use to make this work and pass the validator?
Jun 20 '06 #1
2 1890
Deciding to do something for the good of humanity, Tsunami Australia
<gl**@oriley.despam.id.au> declared in
comp.infosystems.www.authoring.html:
I have put in the command
HTML is not a programming language; it does not have commands.
bordercolor="0000e0" within the
table command.
See above re: "command".
However whilst this physically works,
For some values of "works".
the w3c validator fails
on this command and says it is not a valid command where it is.
That's because the bordercolor attribute (again, see above re:
"command") was never a part of any version of HTML.
What other
solutions could I possibly use to make this work and pass the validator?


CSS, same as any other presentational issues.

table {border: 1px solid #0000E0;}

--
Mark Parnell
My Usenet is improved; yours could be too:
http://blinkynet.net/comp/uip5.html
Jun 20 '06 #2
Mark Parnell <we*******@clarkecomputers.com.au> scripsit:
table {border: 1px solid #0000E0;}


This sets the color of the border around the entire table. To set the colors
around the cells, as the nonstandard bordercolor attribute does, you need to
set the border (or just border-color) for th and td elements as well in your
CSS. Oh, and maybe caption, too.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

Jun 20 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Torbjørn Pettersen | last post by:
I have two tables, and I want one of them to use bordercolor. How can I do this with CSS. The W3.com's validator tells me that bordercolor isn't valid any more, so I have to push it into the...
1
by: KKramsch | last post by:
I want the border color of this button to be the same as document.linkColor. How can I implement this? My best solution has been to have the onload handler for the page find the button and set...
2
by: Eirik Eldorsen | last post by:
Is it possible to make the mouseover event of a ImageButton to change the border color? I use this code to change the src: ImageButton.Attributes.Add("onmouseover", "this.src='someImage.jpg'");...
2
by: Jeff S | last post by:
Hello I am having an issue with changing the bordercolor of the panel control I have got to a point where I have created my own control and inherited the Panel control, then in the Overrides Sub...
22
by: Alan Silver | last post by:
Hello, I am updating some old web pages, and have come across a problem. I have some tables where the opening tag looks like... <table border="1" bordercolor="#ffffff"> which gives a nice...
5
by: thavaht | last post by:
I´m having problems setting table bordercolor. Vewing the page on IE 6.0 color is ok. Vewing same page on firefox 1.5 only a hint of set color is visible, on the outer most border. The inner borders...
4
by: ehime | last post by:
...for noncompliant browsers (Opera/Mozilla). I have been trying to get a little hack together for class, and am simply overwhelmed by lack of browser support. Here's what I started with. ...
3
by: rn5a | last post by:
How do I change the BorderColor of the rows under the 2nd column in a DetailsView? I could change the BorderColor of the 1st column using the FieldHeaderStyle-BorderColor property but using...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.