Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6093645
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T12:35:03+00:00 2026-05-23T12:35:03+00:00

I have several web pages containing tables, for which I’d like to have line-borders

  • 0

I have several web pages containing tables, for which I’d like to have line-borders around the tables and the cells. In fact, some of these pages existed for several years already, and rendered acceptably in IE6, IE7.

We switched about 6 months ago to a completely different set of style sheets to change our site look and feel. We also switched to “modern” browsers such as IE8 (and because I couldn’t stop Vista) to IE9.

Now the borders don’t render at all.

I spent a day fighting with this about a month ago, and failed to fix it. It seemed that I could reduce the page down to just the barest table and IE8 would still not render the border. I think I decided IE8 was just buggy, but I’m not an HTML expert so it is more likely that I’m buggy.
(I’m just getting back to this; I’ll go see if I can find that reduced page).

Here is one such page:

http://www.semdesigns.com/products/DMS/DMSComparison.html

The tables should be obvious; you can tell them by their absence of lines :-{

The URI validates using the W3C service as HTML 4.01 Transitional.

Any suggestions?

EDIT: Posters all pointed out that the new style sheets set the default borders to 0. Oops!

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T12:35:03+00:00Added an answer on May 23, 2026 at 12:35 pm

    Your new stylesheets appear to use reset values, i.e. it sets lots of different elements to border:0 (including the table). You’ll need to specifically set the border on the table and cells.

    To set the border around just the table simply use table.box {border:1px solid #000}. If however you set the border on all sides of the table and cells you will have a border twice as thick as you need.

    I therefore use the following trick to set the top and right border of the outside table, and the bottom and left of the table cells. This gives the appearence of an even border across the whole content of the table.

    table.box {
        border-top: 1px solid #000;
        border-right: 1px solid #000;
    }
    
    table.box td {
        border-bottom: 1px solid #000;
        border-left: 1px solid #000;
    }
    

    I’ve noticed however you have some empty cells in your box table, so you’ll need to remove these to prevent the double borders.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have several web sequential pages which will modify a record and its child
I have several web pages to parse, and there are links like <a href=/news/monde/0,,3204267-VU5WX0lEIDUy,00.html
I have several web pages with different amount of tables with different amount of
On my web page, I'd like to have a group of several concentric circles
I have several DropDown controls on a Web Form which are filled using AJAX
I have a Websphere Portal application containing several portlets for which I'm currently working
I have noticed from several web pages that apparently Spring 3.0 supports @Inject from
I have an asp.net mvc3 project, it has some reports in aspx web pages.
Since switching to Windows 7, we've noticed that several of our web pages have
I have a classifieds website, which uses PHP and MYSQL. I have several pages

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.