Democratic Underground Latest Greatest Lobby Journals Search Options Help Login
Google

HTML programmers: Cell Padding

Printer-friendly format Printer-friendly format
Printer-friendly format Email this thread to a friend
Printer-friendly format Bookmark this thread
This topic is archived.
Home » Discuss » The DU Lounge Donate to DU
 
riverdale Donating Member (881 posts) Send PM | Profile | Ignore Thu May-07-09 02:08 PM
Original message
HTML programmers: Cell Padding
I am actually making a wiki, but I think the same principle would apply to HTML coding.

Has anyone ever run into a situation where a table's cellpadding attribute is being ignored?
All the other table attribute commands are working.

Thanks
Printer Friendly | Permalink |  | Top
mainegreen Donating Member (1000+ posts) Send PM | Profile | Ignore Thu May-07-09 02:23 PM
Response to Original message
1. All the time. What mode are you in?
Strict, Quirks?

Things work better in strict.
padding is respect there in css across browsers
Printer Friendly | Permalink |  | Top
 
bif Donating Member (1000+ posts) Send PM | Profile | Ignore Thu May-07-09 02:24 PM
Response to Original message
2. I hope I never have to deal with a padded cell
Even though I might be crazy!
Printer Friendly | Permalink |  | Top
 
sakabatou Donating Member (1000+ posts) Send PM | Profile | Ignore Thu May-07-09 02:25 PM
Response to Original message
3. No, my codes have all worked before
Printer Friendly | Permalink |  | Top
 
DS1 Donating Member (1000+ posts) Send PM | Profile | Ignore Thu May-07-09 02:37 PM
Response to Original message
4. Maybe Control+F5 or Apple+F5 to force a refresh?
Cellpadding has always worked for me, but it could be a span with none wrapping it that's the problem. Put the table at the very top of your page and test.
Printer Friendly | Permalink |  | Top
 
HopeHoops Donating Member (1000+ posts) Send PM | Profile | Ignore Thu May-07-09 02:39 PM
Response to Original message
5. Generally most CSS works in all browsers - well, other than IE if you can even CALL that a browser.
It would help to have some more information - as in "what are you trying to do?"
Printer Friendly | Permalink |  | Top
 
riverdale Donating Member (881 posts) Send PM | Profile | Ignore Thu May-07-09 04:27 PM
Response to Reply #5
7. code
I cannot give you a link to the page, since it is internal. But here is the code of the table. Remember, this is a wiki.

The problem is that the cellpadding value is ignored, and zero cellpadding is applied.


{| cellpadding="4" border="1" cellspacing="0"
|+'''Paper Form Processing'''
|-
! colspan="2" style="background:#efefef;" | Existing Agency Business Process
|-
! width="35" style="background:#efefef;" | Step
! width="499" style="background:#efefef;" | Action
|-
! 1
| A State of Michigan agency presents a business user with a printable PDF form.
|-
! 2
| The business user prints and completes the form, then mails it to the agency.
|-
! 3
| The agency receives the form. A processing person enters the form data into a unique record keeping system.
|-
! 4a
| The business user contacts the agency’s help desk with any questions or problems.
|-
! colspan="2" style="background:#efefef;" | New Agency Business Process Using Quick Status
|-
! 4b
| When the receiving agency receives a form, an agency representative opens Quick Status. Using Quick Status, the agency’s processing person and the business user both have access to status updates, eliminating the need for status inquiry calls.
A Document Number is created for reference. The agency representative writes this number on the paper form. The Document Number tracks all changes made to the form, and links it to the business. The business user can read and act upon this information in a timely manner.

Status updates and additional instructions or comments may be passed from the agency to the business user by updating the task in Quick Status. These updates are viewable by the business user in the My Workspace section of One Stop.
|}
Printer Friendly | Permalink |  | Top
 
DS1 Donating Member (1000+ posts) Send PM | Profile | Ignore Thu May-07-09 04:33 PM
Response to Reply #7
8. click the first checkbox
Check here if you want to format your message in plain text. Use for posting code snippets.

Printer Friendly | Permalink |  | Top
 
HopeHoops Donating Member (1000+ posts) Send PM | Profile | Ignore Thu May-07-09 04:38 PM
Response to Reply #7
9. I'm not positive, but I think that's been somewhat depricated.
Try something like

table {border-collapse: separate;}
td {border: 1px; padding 4px;}

The border-spacing property might also help you out.

It is a little hard to tell what the problem is without seeing the symptoms. Are you using straight HTML or HTML with CSS?

Printer Friendly | Permalink |  | Top
 
riverdale Donating Member (881 posts) Send PM | Profile | Ignore Fri May-08-09 08:37 AM
Response to Reply #9
10. www
I don't know about CSS ...

table {border-collapse: separate;}
td {border: 1px; padding 4px;}

That code doesn't look like wiki code either

Here is wiki table coding:
http://meta.wikimedia.org/wiki/Help:Table

I put in your code and it made no difference

Thanks anyway

Printer Friendly | Permalink |  | Top
 
riverdale Donating Member (881 posts) Send PM | Profile | Ignore Fri May-08-09 09:06 AM
Response to Reply #10
12. Interesting thing.
I registered for the Wikimedia.org forum to post a question on wiki table cellpadding. In my question I included the table code, and it looked perfect on the forum page. There must be some kind of setting in our workplace's environment that is causing the cellpadding feature to be disabled.
Printer Friendly | Permalink |  | Top
 
Bertha Venation Donating Member (1000+ posts) Send PM | Profile | Ignore Thu May-07-09 03:19 PM
Response to Original message
6. Wouldn't it be better to ask a psychiatrist?
:rofl:
Printer Friendly | Permalink |  | Top
 
mainegreen Donating Member (1000+ posts) Send PM | Profile | Ignore Fri May-08-09 08:40 AM
Response to Original message
11. use firefox with the firebug plugin.
then right click on the cell and choose 'inspect element'. You will be able to look at the css rules being applied (attributes are translated into css rules). This is probably your best bet for figuring out what is wrong.

You may be getting stomped by an !important tag somewhere along the line.
Printer Friendly | Permalink |  | Top
 
DU AdBot (1000+ posts) Click to send private message to this author Click to view 
this author's profile Click to add 
this author to your buddy list Click to add 
this author to your Ignore list Mon Apr 29th 2024, 09:28 PM
Response to Original message
Advertisements [?]
 Top

Home » Discuss » The DU Lounge Donate to DU

Powered by DCForum+ Version 1.1 Copyright 1997-2002 DCScripts.com
Software has been extensively modified by the DU administrators


Important Notices: By participating on this discussion board, visitors agree to abide by the rules outlined on our Rules page. Messages posted on the Democratic Underground Discussion Forums are the opinions of the individuals who post them, and do not necessarily represent the opinions of Democratic Underground, LLC.

Home  |  Discussion Forums  |  Journals |  Store  |  Donate

About DU  |  Contact Us  |  Privacy Policy

Got a message for Democratic Underground? Click here to send us a message.

© 2001 - 2011 Democratic Underground, LLC