473,399 Members | 3,106 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

Need help padding table rows

Hello All,

I would like to "pad" the rows of my table. Cellpadding and
Cellspacing aren't an option cause they affect both the horizontal as
well as vertical axis.
So I used to do essentially a row with nothing more than one  
in
it.
Then I realized thta if I removed the   my padding got smaller,
and I could use 2 or 3 and get more precise.
So my question is, is this row:
<tr><td></td></tr>
Or could not having the &nbsp; in there cause a problem?
Thanks ahead, as always.

Dec 26 '07 #1
2 5751
SergioQ wrote:
Hello All,

I would like to "pad" the rows of my table. Cellpadding and
Cellspacing aren't an option cause they affect both the horizontal as
well as vertical axis.
So I used to do essentially a row with nothing more than one &nbsp;
in
it.
Then I realized thta if I removed the &nbsp; my padding got smaller,
and I could use 2 or 3 and get more precise.
So my question is, is this row:
<tr><td></td></tr>
Or could not having the &nbsp; in there cause a problem?
Answered in comp.infosystems.www.authoring.stylesheets

td { padding-left: 1em; padding-right: 1em; }

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Dec 26 '07 #2
Jonathan N. Little wrote:
SergioQ wrote:
>Hello All,

I would like to "pad" the rows of my table. Cellpadding and
Cellspacing aren't an option cause they affect both the horizontal as
well as vertical axis.
So I used to do essentially a row with nothing more than one &nbsp;
in
it.
Then I realized thta if I removed the &nbsp; my padding got smaller,
and I could use 2 or 3 and get more precise.
So my question is, is this row:
<tr><td></td></tr>
Or could not having the &nbsp; in there cause a problem?

Answered in comp.infosystems.www.authoring.stylesheets

td { padding-left: 1em; padding-right: 1em; }
Well, no, he wanted spacing between rows:

td { padding-top: 1em; padding-bottom: 1em; }

or some such thing.
Dec 26 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Robert P. Stearns | last post by:
I have been trying to convert the following simple table into CSS. <table> <tr><th colspan=2>Header Area</th></tr> <tr><th>Navigation Area</th><th>Information Area</th></tr> <tr><th...
0
by: EasyRider41 | last post by:
I am trying to merge to scripting samples I for on a source code web site and having limited luck. Then first one is called Zebra Tables witch colors alternate rows of a table to look beter. The...
2
by: Knoxy | last post by:
Hello, I've noticed one or two people post on this before but nobody seems to have replied so raising the issue again... is this a known IE6 CSS bug? I have placed the following in my...
1
by: | last post by:
Hi there, the following works perfectly in Opera and Netscape, but not IE. Is this a known problem? I have a table defined with the following definition: table { margin-top: 30px;...
36
by: phil-news-nospam | last post by:
Here is a simpler (no drop shadows) example of the padding bug I see: http://phil.ipal.org/usenet/ciwas/2006-05-08/buttons-1.html So far I find nothing in the CSS2 document that says I should...
3
by: charchap | last post by:
hello. I'm experiencing problems with my css code (once again) working with Firefox and not working with IE 6 or 7 I have a problem with my head_logo_inner not too sure what's going on . Here is...
7
by: arupfrancis | last post by:
Hi, I am trying to create a colored box using background images. I am able to do it easily using tables but doing it in divs is proving to be an issue. Moreover IE and Mozilla also seems to be...
1
by: deepaks85 | last post by:
Dear All, I want to send some data through a form with Multiple attachment in an HTML Format. I have tried it but it is not working for me. I am able to send data without attachment but with the...
5
by: Stepheno | last post by:
Hi, I am a recently converted Iseries (AS/400) RPG programmer trying to learn HTML/CSS/JavsScript all at the same time (not fun). My problem deals mostly with CSS. I will be reveiving a table,...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.