there is no attribute "bordercolor"

  • mrcountry
  • Newbie
  • Newbie
  • No Avatar
  • Joined: Feb 24, 2008
  • Posts: 14
  • Status: Offline

Post February 24th, 2008, 9:20 pm

I have one error that is a problem for me. I have this error covering all 32 pages on my site. Please someone help me to correct this. I have searched and searched and I just cant figure it out. Any help would be greatly appreciated.

Code: [ Download ] [ Select ]
Line 81, Column 57: there is no attribute "bordercolor".
<table width="952" border="1" align="center" bordercolor="#FFCC00">
  1. Line 81, Column 57: there is no attribute "bordercolor".
  2. <table width="952" border="1" align="center" bordercolor="#FFCC00">
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post February 24th, 2008, 9:20 pm

  • joebert
  • Weathered
  • Genius
  • User avatar
  • Joined: Feb 10, 2004
  • Posts: 11817
  • Loc: Clearwater, FL
  • Status: Offline

Post February 24th, 2008, 10:54 pm

Try this <table> line instead of the one you have there.

Code: [ Download ] [ Select ]
<table style="width:952px; border:#FC0 1px solid; text-align:center;">
Why yes, yes I am.
  • snuggles
  • Novice
  • Novice
  • No Avatar
  • Joined: Feb 06, 2008
  • Posts: 27
  • Status: Offline

Post February 25th, 2008, 5:40 am

joebert is correct with his suggestion of combining the three properties into one.

Just for reference though, you just need to add a hyphen to your code mrcountry if you wanted to keep it the way it is just now.

Code: [ Download ] [ Select ]
border-color: #FC0;
  • mrcountry
  • Newbie
  • Newbie
  • No Avatar
  • Joined: Feb 24, 2008
  • Posts: 14
  • Status: Offline

Post February 25th, 2008, 1:42 pm

I really appreciate the help, but now that I have that one fixed I get another error. I am very new to this and I really appreciate the help. I bought Dreamweaver because I was told it was wonderful. It's not bad except for the errors. Is there something that i'm doing wrong or is this in the program that it does not set things up right. Any advice would be greatly appreciated. Also how hard is it to learn CSS and where can I learn it.

Thanks again for the help.

Code: [ Download ] [ Select ]
Line 86, Column 76: there is no attribute "bordercolor".
…table width="177" border="0" bordercolor="#FFCC00" bgcolor="003300">
  1. Line 86, Column 76: there is no attribute "bordercolor".
  2. …table width="177" border="0" bordercolor="#FFCC00" bgcolor="003300">

Post February 26th, 2008, 4:20 pm

Dreamweaver uses the old convention, rather than defaulting to CSS for everything.

CSS is easy to learn, just a bunch of tags. Google is your friend.

As you fix the errors, you will learn how to do it properly, so keep using the validator, and keep fixing the errors. The errors show up only once, so even though you "fix" it, it appears to come back again. That's fine, keep turning old Dreamweaver attributes into CSS attributes and you will learn.

<table width="177" border="0" bordercolor="#FFCC00" bgcolor="003300">

Becomes

<table style="width:177px; border:0px; background-color:#030;">

Or better yet:

<table class="style1">

<style>
.style1 {
width:177px;
border:0px;
background-color:#030;
}
</style>
Upload video and picture galleries at http://www.bodydot.com?post+upload+video+picture+gallery
  • htcorp
  • Beginner
  • Beginner
  • No Avatar
  • Joined: Feb 27, 2008
  • Posts: 39
  • Status: Offline

Post February 27th, 2008, 2:16 am

<table style="width:177px; border:0px; border-color:#FFCC00;">

Have fun !
  • lzr
  • Novice
  • Novice
  • No Avatar
  • Joined: May 09, 2008
  • Posts: 18
  • Status: Offline

Post May 9th, 2008, 9:45 am

camperjohn wrote:
<table style="width:177px; border:0px; background-color:#030;">


This works. But when I try similarly
<th style="border-color: #FFFFFF;"> no cell's border is displayed by IE. How do I specify border color of the cell of this table?
Thanks.
  • Bogey
  • Disturbed
  • Genius
  • User avatar
  • Joined: Jul 14, 2005
  • Posts: 7103
  • Loc: Ozzuland
  • Status: Offline

Post May 9th, 2008, 2:30 pm

snuggles wrote:
joebert is correct with his suggestion of combining the three properties into one.

Just for reference though, you just need to add a hyphen to your code mrcountry if you wanted to keep it the way it is just now.
Code: [ Download ] [ Select ]
border-color: #FC0;

No snuggles. Joebert had it right. No need to put a hyphen anyway... either that, or I misunderstood the post...
Code: [ Download ] [ Select ]
<table style="width:952px; border:#FC0 1px solid; text-align:center;">

The stuff that's in blue is one attribute...

border:#FC0 1px solid;

It is saying that the border is 1px wide, solid line and it's the color #FC0. All under one attribute.
(I know the post is old... for the record).
lzr wrote:
camperjohn wrote:
<table style="width:177px; border:0px; background-color:#030;">

This works. But when I try similarly
<th style="border-color: #FFFFFF;"> no cell's border is displayed by IE. How do I specify border color of the cell of this table?
Thanks.

Try the following...
<th style="border: #FFFFFF 1px solid;">
Learn PHP | I got 10 PHP tutorials! Check them out!
Dreamtale - Farewell
Just a note... I've giving up on web development and that stuff... Just lost all interest in it.
  • lzr
  • Novice
  • Novice
  • No Avatar
  • Joined: May 09, 2008
  • Posts: 18
  • Status: Offline

Post May 11th, 2008, 5:44 pm

[quote="Bogey]
Try the following...
<th style="border: #FFFFFF 1px solid;">[/quote]

Bogey,
Thanks, it worked.
Lzr
  • Bogey
  • Disturbed
  • Genius
  • User avatar
  • Joined: Jul 14, 2005
  • Posts: 7103
  • Loc: Ozzuland
  • Status: Offline

Post May 11th, 2008, 5:52 pm

lzr wrote:
Bogey wrote:
Try the following...
<th style="border: #FFFFFF 1px solid;">


Bogey,
Thanks, it worked.
Lzr

Good... no problem :)
Learn PHP | I got 10 PHP tutorials! Check them out!
Dreamtale - Farewell
Just a note... I've giving up on web development and that stuff... Just lost all interest in it.

Post Information

  • Total Posts in this topic: 10 posts
  • Users browsing this forum: No registered users and 162 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© Unmelted Enterprises 1998-2009. Driven by phpBB © 2001-2009 phpBB Group.