Solved

Annoying double border

Posted on 2006-07-10
4
280 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
hbo knew my windows software 4 90
asp web application 3 56
Print a <div></div> only 5 55
type of website 13 54
Because your company can’t afford for you to make SEO mistakes, you’ll want to ensure you’re taking the right steps each and every time you post a new piece of content. This list of optimization do’s and don’ts can help you become an SEO wizard.
Does your audience prefer people in photos or no people? How can you best highlight what you’re selling? What are your competitors doing, and what can you do that is different and unique from them?  Continue reading to learn how to make your images …
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
The viewer will learn how to dynamically set the form action using jQuery.

752 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