Solved

How to Increase the Space Between the Columns but not the Rows in a HTML Table

Posted on 2014-02-07
2
7,211 Views
Last Modified: 2014-02-07
I have created the following table which holds a series of anchors that link to topics within the page:

<table border="0" cellspacing="1" cellpadding="2" align="center">
<tbody>
<tr>
<td><a style="font-size: xx-small;" href="http://www.saiprograms.com/john-cabot-university-syllabi-new#arthist">Art History and Studio Art</a></td>
<td><a style="font-size: xx-small;" href="http://www.saiprograms.com/john-cabot-university-syllabi-new#econsocsci">Economics and Social Sciences</a></td>
<td><a style="font-size: xx-small;" href="http://www.saiprograms.com/john-cabot-university-syllabi-new#mathsci">Mathematics</a></td>
</tr>
</tbody>
</table>

I would like to have more space between the columns, but not the rows. However, if I try to increase the cell spacing, the space between the rows also increase.

How can I just increase the column width only?
0
Comment
Question by:geeta_m9
[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
2 Comments
 
LVL 8

Accepted Solution

by:
Adrian Crabtree earned 350 total points
ID: 39842516
Hi geeta_m9, you could try adding padding to the td. Here's a link to illustrate that idea.

http://jsfiddle.net/tB96H/1/
0
 

Author Closing Comment

by:geeta_m9
ID: 39842543
Thanks.
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

691 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