473,602 Members | 2,746 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Table border color in Mozilla Firefox

Apparently Mozilla/Firefox doesn't support the bordercolor attribute of
the table tag.

Here's what I do that works in IE:

<table border="1" cellpadding="2" cellspacing="0" width="380"
bordercolor="#C B0017">

Now, if I add this to my CSS:

TABLE.standings { border: 1px solid #CB0017; }

and rewrite my HTML like this:

<table border="o" cellpadding="2" cellspacing="0" width="380"
class="standing s">

There are no lines between the cells only around the edge of the table.

How would I make the CSS mimic usage of the bordercolor attribute in IE?
Jul 20 '05 #1
6 15924
/Mr. Clean/:
How would I make the CSS mimic usage of the bordercolor attribute in IE?


Define border for the table cells, too:

table.standings td { border: 1px solid #CB0017 }

--
Stanimir
Jul 20 '05 #2
"Mr. Clean" <mrclean@p&g.co m> wrote:
Apparently Mozilla/Firefox doesn't support the bordercolor attribute of
the table tag.
There's no such attribute in HTML.
Here's what I do that works in IE:

<table border="1" cellpadding="2" cellspacing="0" width="380"
bordercolor="# CB0017">
Yeah, IE supports a lot of stuff that isn't HTML.
Now, if I add this to my CSS:

TABLE.standing s { border: 1px solid #CB0017; }

and rewrite my HTML like this:

<table border="o" cellpadding="2" cellspacing="0" width="380"
class="standin gs">
Did you mean to set your border to 'o', or did you mean '0'?
There are no lines between the cells only around the edge of the table.
Of course. Your stylesheet sets a border around the table not around
the cells.
How would I make the CSS mimic usage of the bordercolor attribute in IE?


TABLE.standings td, TABLE.standings th { border: 1px solid #CB0017; }

You may need to play with border-collapse as well. Check the CSS spec
for details.

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <st***@pugh.net > <http://steve.pugh.net/>
Jul 20 '05 #3
Steve Pugh wrote:
"Mr. Clean" wrote:
Apparently Mozilla/Firefox doesn't support the bordercolor
attribute of the table tag.
There's no such attribute in HTML.

IE supports a lot of stuff that isn't HTML.


Yeah, but they make up for by ignoring a lot of stuff that is in it. ;-)

--
Brian (remove ".invalid" to email me)
http://www.tsmchughs.com/
Jul 20 '05 #4
Steve Pugh wrote:
"Mr. Clean" <mrclean@p&g.co m> wrote:

Apparently Mozilla/Firefox doesn't support the bordercolor attribute of
the table tag.

There's no such attribute in HTML.


In the IE4 DOM it is there, I know it isn't in the HTML spec.
Jul 20 '05 #5
>
TABLE.standings td, TABLE.standings th { border: 1px solid #CB0017; }


Now, I can't get TD.OpenDate to work. see the page:
http://www.austinmetrobaseball.com/schedule.php

CSS here:
http://www.austinmetrobaseball.com/ambl.css
Jul 20 '05 #6
"Mr. Clean" <mrclean@p&g.co m> wrote:
Someone wrote:

TABLE.standings td, TABLE.standings th { border: 1px solid #CB0017; }


Now, I can't get TD.OpenDate to work. see the page:
http://www.austinmetrobaseball.com/schedule.php

CSS here:
http://www.austinmetrobaseball.com/ambl.css


TABLE.standings td {} is more specific than TD.OpenDate {} and hence
takes precedence. Make the second selector more specific: e.g.
TABLE.standings TD.OpenDate {} and it will be applied.

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <st***@pugh.net > <http://steve.pugh.net/>
Jul 20 '05 #7

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

Similar topics

10
26862
by: john T | last post by:
Is there anyway to vertically center a html table using css in such a way it does not alter the html table. When I tryied it just screws up.
9
2212
by: Cezar | last post by:
Hi! I'm styling my table with following CSS code: table.results{ border-collapse:collapse; } table.results td{ border:1px solid #a7a7a7; margin:0;
5
75485
by: Mel | last post by:
is it possible to draw a border around a row of a table ? example please... thanks
31
5683
by: Arthur Shapiro | last post by:
I'm the webmaster for a recreational organization. As part of one page of the site, I have an HTML "Calendar at a Glance" of the organization's events for the month. It's a simple table of a calendar, 7 across by whatever needed down, and I manually create it each month - not a big deal. Every day I go in and darken the background color of the current day's cell by changing the appropriate <TD> entry to <TD bgcolor="c63800"> and...
25
36345
by: Michael Schuerig | last post by:
I'm trying to do something seemingly very simple, but it's brought me close to crushing my head on the keyboard. All I want is a table where the head row is fixed and the body columns below are scrollable (with the ordinary scrollbars, no less). Whatever I try, the columns in the head and the body aren't aligned; the widths are computed independently which gives a completely ragged look. Michael --
1
2227
by: James Black | last post by:
I am dynamically generating a table in IE to display some information. I will probably change it to divs later, but I just want to get it working properly first. In my div I have the following as the value of innerHTML: "<TABLE> <TR> <TD id=td6x vAlign=top align=right><IMG height=14 alt=Required src=\"/images/ci/icons/required.gif\" width=7 border=0 vAlign=\"top\"><INPUT id=anchor6x width=0 size=10
2
16405
by: nino9stars | last post by:
Hello, I have just started messing with absolute positioning on webpages, and it definitely let's you do some creative things. Well, after much searching and help, I got the images I was using to overlap correctly. You can see it on this page: www.creativekaysjewelry.com The images overlap exactly how I wanted and in the right position
4
10383
by: Gabriel | last post by:
Which is the mistake? I need one column with different size. Thanks a lot. table { border: outset 2pt; border-collapse: separate; border-spacing: 4pt; background:black;
2
3011
by: markszlazak | last post by:
I'm a relatively slow response of table cells changing their background color with mouseover/our in IE6 (Win 2K) but the response is fine (fast) in Firefox. Why? The code is below. Sorry about the length. <html> <head> <title>Rapid Blocking Interface</title> <style> .calendar {
0
7921
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8404
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8056
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8270
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5440
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3901
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2424
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1511
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1256
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.