Register | Login
Views: 19364387
Main | Memberlist | Active users | ACS | Commons | Calendar | Online users
Ranks | FAQ | Color Chart | Photo album | IRC Chat
11-02-05 12:59 PM
0 user currently in Programming. | 3 guests
Acmlm's Board - I2 Archive - Programming - table bordercolor
  
User name:
Password:
Reply:
 

UserPost
Dylan
Posts: 169/1407
I think I will just go and learn CSS. It's probably more useful anyway, HTML are fairly limited in comparison.

UPDATE:







contentcontentcontent
contentcontentcontent
contentcontentcontent


This works, with the extra columns and rows, but there are little spaces in the corners there. How do I fill those in? Also what if I want borders everywhere but on the exterior?
FreeDOS
Posts: 565/1657
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

I personally prefer CSS...
Dish
Posts: 101/596




test


#00FF00 is the "light" bordercolor
#0000FF is the "dark" bordercolor

For tables with more than 1 column... you'll have to increase the colspan attribute so that it stretches across the whole table.

And cellspacing and cellpadding have to be set to zero or you get weirdness. Yeah, this method is a big pain in the ass... probably because tables weren't really meant for this kind of thing.


The site I used for reference said that the td width,height and bgcolor tags are deprecated and that you should use style sheets to perform this function instead... but I don't know enough about CSS to be of any help there.
Dylan
Posts: 168/1407
Originally posted by Disch


So yeah... don't use any of them. If you want your table border to look a certain way, you could put 2 extra rows and columns and give them BG colors or an image. That way it'll be proper and look the same in every browser.


Can you provide a quick example table? I understand what you mean, I just need to know where I would place in the tags in order for that to show up.
Dish
Posts: 100/596
edit: well... it appears that neither bordercolor, bordercolorlight, nor bordercolordark are valid attributes. I'll look into it more.

Final edit:

This page lays out the differences between bordercolor / bordercolorlight / bordercolordark

http://www.faqs.org/docs/htmltut/tables/_TABLE_BORDERCOLOR.html

bordercolorlight and bordercolordark are IE specific
bordercolor works in IE, Firefox, and possibly Opera (although I didn't test)
but none of them are REAL attribute tags... so in short... you shouldn't use them. As described by the W3C standard:

http://www.w3.org/TR/html4/struct/tables.html#h-11.2.1

So yeah... don't use any of them. If you want your table border to look a certain way, you could put 2 extra rows and columns and give them BG colors or an image. That way it'll be proper and look the same in every browser.
Dylan
Posts: 167/1407
Is the tag to add color the main section of border on an html table <table bordercolor="colorname or value">? Because this does not set the color for me. I can set the color for bordercolorlight and bordercolordark. Why is this?



test


Quote this text to see the table code. I wanted the bordercolor to be white. It isn't.
However the bordercolor light and dark have recognized the input.
Acmlm's Board - I2 Archive - Programming - table bordercolor


ABII


AcmlmBoard vl.ol (11-01-05)
© 2000-2005 Acmlm, Emuz, et al



Page rendered in 0.010 seconds.