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 7727785
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T05:32:58+00:00 2026-06-01T05:32:58+00:00

I got another problem, this time with tables and their borders in HTML (4.01,

  • 0

I got another problem, this time with tables and their borders in HTML (4.01, 5.0)

Notice: All codes are from w3schools.com

When using this code:

<h4>One row and three columns:</h4>
<table border="1">
<tr>
  <td>100</td>
  <td>200</td>
  <td>300</td>
</tr>
</table>

Everything is drawn correctly in the browser (FF, IE, Opera, Chrome), but when the border="1" is changed with style="border: 1px;" the borders and cell walls disappear.
I can’t find the reason, but using style gives me the precious validation.

That’s my main file sections:

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-type" content="text/html;charset=UTF-8">
<title>
Title of the document
</title>
<style type="text/css">
body {background-color:teal;}
</style>
</head>

I hope someone here knows where’s the problem is …
Here are the results with classic border and style:

http://www.free imagehosting.net/pyk3e << border="1"

http://www.free imagehosting.net/cw98o << style="border: 1px solid black;" for cells too

  • 1 1 Answer
  • 0 Views
  • 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-06-01T05:33:00+00:00Added an answer on June 1, 2026 at 5:33 am

    You may need border: 1px solid;. Having the pixels alone isn’t enough, you have to tell the browser what to do with them. 🙂

    But remember that if you use <table style="border: 1px solid">, that will create a border around the TABLE, not the cells within the table.

    You’ll need to specify a border for the cells too.

    You should probably just specify a stylesheet:

    <style type="text/css">
      TABLE, TD {
        border: 1px solid;
      }
    </style>
    

    Or even, identify your table or TD blocks with an ID or a class, then use that in your stylesheet, so you don’t affect other innocent bystander tables.

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

Sidebar

Related Questions

I got a problem like this (this is html/css menu): Eshop | Another eshop
I have already posted my this problem another time but i have not got
I've got another problem in the same code... I'm getting this error: initialization method
I've got a problem when I'm calling a static var from another class. I
Time for another silly question :) I got some tables in a xhtml-document with
I've got another problem (which might not be an issue in terms of coding
I'm having another iOS related issue. This time relating to addSubView on a UIView.
I've got a blocking problem with the sorting functionality of a JTable; this made
I've got another question regarding to basic Android programming: How can I access the
I just got another assignment for web design. And I was curios how to

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.