Solved

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

Posted on 2014-02-07
2
6,019 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
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

When it comes to security, there are always trade-offs between security and convenience/ease of administration. This article examines some of the main pros and cons of using key authentication vs password authentication for hosting an SFTP server.
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
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…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

744 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

12 Experts available now in Live!

Get 1:1 Help Now