Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Using CSS: Table Padding higher on Top and Bottom than on Sides.. Possible?Using CSS: Table Padding higher on Top and Bottom than on Sides.. Possible?
Previous
 
Next
New Post
8/10/2006 1:53 AM
 
Hello,

I was wondernig if anybody can provide me with methods to adjust the padding of a table, in which I would be able to specify Sides, and Top & Bottom.

Also, is it more intuitive to use CSS to achieve this type of effect rather than using empty tables cells with set width's and height's as spacing?

Let me know! =)


Regards,
Danny
 
New Post
8/10/2006 4:56 AM
 
Dear mr_dimsum

Of course you can. Take a look at this site.
You can also set it for a specific table in a container.
For instance you've upload a table with the text/html module.
Then you can set a style before you use the table
<style type="text/css">#MyTable td {border: 0px; padding: 4px 6px 4px 6px; background-color:#f0f0f0;} </style>
<table id="MyTable" cellspacing="0" cellpadding="0">
   <tr>
      <td>Put here some content</td>
   </tr>
</table>
Of course you can set this style also in your container.css or in you portal.css.
Notice: I never use cellspacing and cellpadding in a table. You can't manipulate that with a style...
A lot of modules... in dnn and in modules that you can buy... use that = hardcode styling... I don't love that.

Vriendelijke groeten
Gilbert Vanden Borre
 
New Post
8/11/2006 11:06 AM
 

What Gilbert said up top is correct, however the shorthand can be a bit cryptic, you can also use the following rules (but it takes up more room etc etc)

.item {
   padding-top: 1px;
   padding-right: 2px;
   padding-bottom: 3px;
   padding-left: 4px;
}

 

SB


Wells Doty Jr
Online Content Development
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Using CSS: Table Padding higher on Top and Bottom than on Sides.. Possible?Using CSS: Table Padding higher on Top and Bottom than on Sides.. Possible?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out