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
0
votes
1 answer

How can I remove/adjust the cell padding/margin of UITableViewCell?

I am using the below code; it works but the text appears with few pixels left padding/margin. How can I remove/adjust the cell padding/margin? - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { …
itsazzad
  • 6,868
  • 7
  • 69
  • 89
0
votes
1 answer

For IE8 - Trying to set cell spacing/padding to 0px in combination with CSS display's table_cell

I tried to vertically align some content into div box. to achieve this I have found some CSS that works perfect. Except for you know who it doen't: IE8. When using the display attribute with the value 'table-cell', IE is creating an invisible…
user448038
0
votes
2 answers

Inner table content not aligned with outer table

I am creating a table inside another table. I have divided the columns to be the exact same ratio as the outer table. However, the columns are not aligned with outer table columns. Can anyone tell me what I am missing?
bula
  • 8,719
  • 5
  • 27
  • 44
0
votes
2 answers

How can I change the "Cell padding" per Script

I have create a very simply Google-Script to add a table into a Google Docs: var body = DocumentApp.getActiveDocument().getFooter(); body.clear(); var cells = [ ['Cell1', 'Cell2', 'Cell3', 'Cell4'], ['Cell5', 'Cell6', 'Cell7', 'Cell8'], ]; var myT…
0
votes
2 answers

Problems with unwanted padding inside table cell

I have this table and custom CSS code here in https://jsfiddle.net/g9a4sL6r/ As you can see, the table row have 28px height, while the content only has 14px height. I want to get rid of the additional padding, so the table row will also have height…
Donny Kurnia
  • 5,260
  • 5
  • 35
  • 52
0
votes
0 answers

How do I Remove Cell Padding in a Gridview

I'm hoping someone can help me. I have created a Sudoku app. I have a grid view that shows string text from a list view. I have a problem with my layout of the Grid View on my phone and tablet; , see 1st and 2nd screens below . What I'm trying…
ns2016
  • 63
  • 1
  • 4
0
votes
0 answers

What could interfere HTML table attributes?

I have the following code in a JSP: <%@page contentType="text/html" pageEncoding="UTF-8"%> …
arcy
  • 12,845
  • 12
  • 58
  • 103
0
votes
2 answers

add padding for RTL content after use row_number CSS

I used below CSS code for add row number to a table rows: table { direction: rtl; counter-reset: line-number; } td:first-child { text-align: right !important; } td:first-child:before { content: counter(line-number) "."; …
b24
  • 2,425
  • 6
  • 30
  • 51
0
votes
0 answers

EDM for campaign monitor - padding everywhere

Sorry if this is a silly question - I've searched everywhere and I haven't been able to find a solution to my problem. Basically I'm creating an EDM and even though I have spacing and padding down as 0 in all of my table tags (that contain info)…
fentale
  • 1
  • 1
0
votes
1 answer

Not able to pinpoint css, that renders undesired padding

The folder tree has folder items represented by ul tag and file items by li tag. All of them are contained in a large unordered list container. All ul items are left padded by 40px but this setting, i am not sure where it picks from. css box model…
user2879704
0
votes
1 answer

basic table padding with html & dreamweaver

I haven't used DW for a while, excuse my beginners question. I have created a table with 2 rows & 1 column within HTML. I have inserted an image in to the top row and one image in to the bottom row. With border, cell padding and cell spacing set…
deeps10
  • 19
  • 1
  • 4
0
votes
3 answers

How can I force an attribute to a cell?

I'm working on a Wiki page from Gamepedia. It has an upper layer file called Common.css with extra styles automatically applied to all skins. table.wikitable2 { background-color: transparent; color: #FFFFFF; border-collapse: collapse; …
Kirbyarm
  • 29
  • 5
0
votes
4 answers

Can't remove padding on an image

I'm trying to make a simple 3-cell div that will show a list of ratings for cigars. I want the left cell to be a square image of the cigar, the middle to be the name, and the right to be the rating. The code works fine until I add the image - it…
jordanG
  • 49
  • 1
  • 6
0
votes
1 answer

GWT ListBOx change text padding

I am using GWT's ListBox to let user select their input from a list of items. When the listboxes are display in my browser (Chrome) there seems to be a rather large space between the end of the word and the end of the listbox itself. For…
jonatzin
  • 922
  • 1
  • 13
  • 30
0
votes
4 answers

White margin/padding at the bottom of table cell

Look at this JSFiddle: http://jsfiddle.net/nMbb4/1/ HTML:
onetwo
threefour
1
CSS: table, tr, td { padding:0px; …
John
  • 2,043
  • 5
  • 28
  • 49