Questions tagged [cellpadding]

Cellpadding is HTML padding, as specific to table cells.

Cellpadding is HTML padding, as specific to table cells.

The term 'cellpadding' goes back to the now-obsolete cellpadding attribute that was used to control this feature in older versions of HTML. This technique is now deprecated, and use of CSS to control layout is preferred. Therefore, one should use the CSS padding property rather than the cellpadding attribute.

A detailed discussion of how to achieve cellpadding and cellspacing using modern CSS can be found here: Set cellpadding and cellspacing in CSS?

58 questions
2
votes
1 answer

CSS - Adding padding to one td changes padding on all the other rows

This is my HTML: …
SilentDev
  • 20,997
  • 28
  • 111
  • 214
2
votes
2 answers

why doesn't table cellspacing work?

I have tried every bit of tricks to make cellspacing:0; cellpadding:0; described in a css file to work but somehow the table doesn't accept this property but accepts while described inline as
name
first comment
. That's…
Samin
  • 21
  • 1
  • 1
  • 2
2
votes
1 answer

In IE7/8, jQuery tells me cellpadding=0 cells have padding of 1px

This is a strange problem - in the following jsFiddle, jQuery returns 0px for a cell's padding, when using IE7 or IE8, which is correct: http://jsfiddle.net/ZmfHE/ However, when I test this locally in a simple HTML page in IE7 or IE8 (code below),…
ingredient_15939
  • 3,022
  • 7
  • 35
  • 55
1
vote
2 answers

Space padding after the row containing the longest text in a HTML table column

I have an HTML table with multiple columns. A column might have the longest text somewhere in the middle of the table. Whichever row has the longest text, I would like to give a padding of say 5px to the right so that the text from the next column…
Biju
  • 820
  • 1
  • 11
  • 34
1
vote
2 answers

Table vertical padding reduction in html and css

I have this table in my html having a lot of blank space from both upper and lower sides of the text. I have tried css and html but I couldn't fix it myself. Any idea how to remove white space? Screenshot (red arrows mean where I want the space to…
1
vote
1 answer

asp.net gridview cellpadding doesn't work when the gridview is placed within a html-table

I've put a gridview inside an ordinary html-table due to some presentation issues. But then the cellpadding property doesn't work. As soon as the gridview is taken outside the table, cellpadding works as it should. So I guess this has something to…
1
vote
1 answer

Remove space between some rows ( not all)

.spacing-table { border-collapse: separate; border-spacing: 0 5px; /* this is the ultimate fix */ } .SearchListHeader { background-color: #E6E6E6; font-size: 14px; } .SearchListHeader th { border-style: solid; …
demo
  • 6,038
  • 19
  • 75
  • 149
1
vote
2 answers

CellPadding not working for table?

Using DOM elements trying to add cellPadding to a table: why does var FirstTabContent = document.createElement('div'); var Newtable = document.createElement('table'); Newtable.border = "1"; Newtable.cellpadding = "20px 20px 20px…
John
  • 3,965
  • 21
  • 77
  • 163
1
vote
2 answers

HTML cell containing css scrollbars -- how can I get rid of the padding?

I have an HTML table, where each cell contains a large amount of data. I would like each cell to be individually scrollable (sort of like "panes"), so I created a CSS class that includes the overflow:scroll attribute. However, the width is not the…
twpc
  • 709
  • 3
  • 16
  • 26
1
vote
3 answers

CSS: remove all padding from cell with input field

I have a table row with an input field in each cell that is used to filter a column. How can I remove all padding from the td's in this row so that there is no extra space between the input field borders and the td's containing them ? Currently the…
user2571510
  • 11,167
  • 39
  • 92
  • 138
1
vote
1 answer

How to remove left hand border on hover bar while keeping indented text

I would like to keep the menu text indented as is, however I'd like the bar that appears on the hover to extend all the way to the left as it does to the right, so that there is no margin (right now there is a gap on the left). Is this…
user2617190
  • 41
  • 1
  • 6
1
vote
2 answers

Not able to get this link alligned properly

Edit: I'm not an Html pro. I want to add this text : AIM -> Historian AIM -> AIM AIM -> PI Historian -> PI Perfectly aligned like the ones above in the picture. It is one link with all this text. I have tried

Conrad C
  • 746
  • 1
  • 11
  • 32
with NO CSS
Is there a way to use cellpadding for just left and right? I am looking for answers but all I keep finding is CSS.
Francesca
  • 26,842
  • 28
  • 90
  • 153
0
votes
0 answers

Cell padding in circlize circos.genomicDensity()

I want to add a track to a circos plot using the circlize package in R to visualize gene density across a genome. When using the circos.genomicsDensity() function, however, it looks like the gene density line does not spread through the total…
0
votes
0 answers

how can i insert images into google docs table without changing the size of the table cell using app script?

I am trying to insert images into the google docs table and the table cells' dimensions keep changing which I don't want to happen. I have tried setting cell padding to zero and still not working. I also tried reducing the image size and that does…