cellpadding & cellspacing isnt being displayed

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Locked
blaze

cellpadding & cellspacing isnt being displayed

Post by blaze »

I'm trying to display a table in a page, however the cellpadding & cellspacing isnt being displayed. Here's an example of the code that im using, so you can tell me what im doing wrong...



AB
CD


Thanks
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: cellpadding & cellspacing isnt being displayed

Post by RonnyK »

I thought cellpadding and cellspacing should be put there without the doublequotes, so



Ronny
blaze

Re: cellpadding & cellspacing isnt being displayed

Post by blaze »

it still wont display the cell padding...
alby

Re: cellpadding & cellspacing isnt being displayed

Post by alby »

blaze wrote: it still wont display the cell padding...
Have you a table entry in your style CSS?

Alby
blaze

Re: cellpadding & cellspacing isnt being displayed

Post by blaze »

nope, tho ive also tryed puting the cellpadding & cellspacing in as a style


AB
CD
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: cellpadding & cellspacing isnt being displayed

Post by Dr.CSS »

The default install templates have a CSS style sheet for tables td tr so if using a default template, even if customized you may have to look thru the attached CSS to find out if it's there...
twiz
Forum Members
Forum Members
Posts: 13
Joined: Tue Dec 12, 2006 8:56 pm

Re: cellpadding & cellspacing isnt being displayed

Post by twiz »

I've found that removing:

Code: Select all

* {
margin:0pt;
padding:0pt;
}
... from the CMSMS's standard [screen] CSS, eliminates the cellpadding constraint.

Before relying on this as the solution, may I ask why this asterisk-code is used in the first place? Thanks,

twiz/
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: cellpadding & cellspacing isnt being displayed

Post by calguy1000 »

Please keep in mind the templates and stylesheets installed by default with CMS are examples, you are not required to use them.

the default styles illustrated below are what the initial template users specified so that things were in a known state and then could be overridden with CSS.

This is not a CMS issue, it's merely a lack of understanding.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Locked

Return to “Layout and Design (CSS & HTML)”