Solved

Annoying double border

Posted on 2006-07-10
4
268 Views
Last Modified: 2006-11-18
Hi,

In an asp:table I need cells to be enclosed within a thin 1px black line.

When I set the BorderStyle="Solid" and borderwidth="1px", wether this is for tableroxw or each cell, the table then appear with 1 border per each cell, thus drawing some sort of double separation lines.

How to make this look like a 'normal' grid?
0
Comment
Question by:frSurfer
4 Comments
 
LVL 13

Expert Comment

by:PraxisWeb
ID: 17074573
Set your cellspacing to 0
0
 

Expert Comment

by:flalar
ID: 17074681
you can control this using  the cellpadding and cellspacing attributes. Try setting these to  cellpadding="0" and cellspacing="0"... probably what you're after
0
 
LVL 28

Accepted Solution

by:
gamebits earned 125 total points
ID: 17075261
Not the cellpadding, cellpadding is for how space you want inside the cell (how far the text would be from the border).

cellspacing is the one you need to set to 0 like PraxisWeb has already point out, cellspacing dictate how much space between the cell, by default the table has a border and a cellspacing.

Gamebits
0
 
LVL 2

Expert Comment

by:dognamedmoses
ID: 17086222
double separation lines may be coming due to a table declaration in your .css document.  if there is one, you need to find it and add

{
  table-collapse: collapsed;
}

also if the css has any border declarations, make sure they are only under the "td" tag and not tr.

finally as mentioned before try cellspacing=0, but even if it's set to 1 it shouldn't double up the border.

good luck.
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
Any business that wants to seriously grow needs to keep the needs and desires of an international audience of their websites in mind. Making a website friendly to international users isn’t prohibitively expensive and can provide an incredible return…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now