Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 3 of 3

Thread: Cell margins

  1. #1
    Senior Member misterphotoshop's Avatar
    Join Date
    Jul 2004
    Posts
    289
    Member #
    6538
    Hello everyone. I did a search but I couldnt find anything so Im going to ask. How (assuming there is a way) do I adjust the margins in a table's cell? The text in my cell is too close to the edge. Any fast help would be awesome because this is kind of urgent. Thanks.

  2.  

  3. #2
    Senior Member Eddy Bones's Avatar
    Join Date
    Jan 2004
    Location
    Washington, USA
    Posts
    1,054
    Member #
    4651
    You can use the cellpadding attribute in the table tag:
    <table cellpadding="6" ... >

    or you can set it for each individual cell using CSS classes:
    .cell1 {
    margin: 6px;
    }
    .cell2 {
    margin: 3px;
    }

  4. #3
    Senior Member misterphotoshop's Avatar
    Join Date
    Jul 2004
    Posts
    289
    Member #
    6538
    thanks a bunch man! I used the CSS not the cellpading because I designed the whole thing in tables and cellpadding just messes up all of my dimensions.


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 10:02 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com