File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes change the border color Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "change the border color" Watch "change the border color" New topic
Author

change the border color

david hodges
Greenhorn

Joined: Jul 14, 2004
Posts: 10
is there a way to change the border color of a table to match the background color of the table? something besides white. thanks.


-david
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15357
    
    6
CSS Border Property

Eric
david hodges
Greenhorn

Joined: Jul 14, 2004
Posts: 10
I still can't get the inside border to match. here is my code:



there is a small, white, outline on the left of my table. i tried setting the border to "0" but the line is still there. Maybe there is a way to increase the cellpadding on only the far left and right so i wouldn't need the extra columns?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56177
    
  13

Bear in mind that the CCS border attribute and the table tag border attribute have nothing in common. I don't think you have a lot of control over the table attribute so I would not use it all in favor of CSS styles (which come with their own headaches, but at least you have some level of control over them).
[ July 28, 2004: Message edited by: Bear Bibeault ]

[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Yuriy Fuksenko
Ranch Hand

Joined: Feb 02, 2001
Posts: 413
Well, just looking at your code:
1. Your td's in first and second row mismatched. You should either have colspan=2 in a first row, or 5 tds in a second row. - That probably cause your white outline.

2. the setting width="760px" is meaningless, since your second row td's add up to 910px, though it doesn't hurt anything
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: change the border color
 
Similar Threads
border around TR?
Getting border to display within the td tag
disable textbox's border
Another table border question
ListBox