![]() |
|
Welcome to the Computer Webmaster Gaming Console Graphics Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
| |||||||
| HTML HTML problems, maybe you are trying to code for MySpace. Get all the HTML coding help here for your website. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 | ||
| Hi, How can I set a margin inside a table cell? The cellSpacing and cellPadding didn't do the job I want it to be. I only want the content of the cell to shift to the right by x margin... Thanks, Kian | |||
| Advertisements |
| | #2 | ||
| "f" <f@f.com> wrote: >How can I set a margin inside a table cell? Table cells don't have margins, they do have padding though. >The cellSpacing and cellPadding didn't do the job I want it to be. And they're deprecated to boot, >I only want the content of the cell to shift to the right by x margin... So you want some left padding? Hmm, how about the following in your style sheet- td {padding-left: 1em;} Add a class if you only want a few cells to be affected. Alter the property value to suit your needs. Steve -- "My theories appal you, my heresies outrage you, I never answer letters and you don't like my tie." - The Doctor Steve Pugh <steve@pugh.net> <http://steve.pugh.net/> | |||
| | #3 | ||
| Thanks. It is working now when I use: <div style="padding-left: 3em"> </div> inside my table cell. Thank you very much. "Jukka K. Korpela" <jkorpela@cs.tut.fi> wrote in message news:Xns93A5C4099D44Djkorpelacstutfi@193.229.0.31. .. > "f" <f@f.com> wrote: > > > How can I set a margin inside a table cell? > > > > The cellSpacing and cellPadding didn't do the job I want it to be. > > They set the distance between cells and the internal padding in cells, > respectively, _in all four directions_. That's what HTML has to offer. > > > I only want the content of the cell to shift to the right by x > > margin... > > Then use CSS. It's really padding that you want, e.g. > <td style="padding-left: 0.3em"> > > -- > Yucca, http://www.cs.tut.fi/~jkorpela/ > Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html > > | |||
| | #4 | ||
| Steve Pugh wrote: >>The cellSpacing and cellPadding didn't do the job I want it to be. > And they're deprecated to boot, When? They weren't by XHTML 1.0 (although IMO they _should_ be) -- David Dorward http://david.us-lot.org/ Redesign in progress: http://stone.thecoreworlds.net/ Microsoft announces IE is dead (so upgrade): http://minutillo.com/steve/weblog/20...ces-ie-is-dead | |||
| | #5 | ||
| David Dorward <dorward@yahoo.com> wrote: >Steve Pugh wrote: > >>>The cellSpacing and cellPadding didn't do the job I want it to be. > >> And they're deprecated to boot, > >When? They weren't by XHTML 1.0 (although IMO they _should_ be) You're quite right they're not. I must have had a memory failure and just done a presentational = deprecated. Steve -- "My theories appal you, my heresies outrage you, I never answer letters and you don't like my tie." - The Doctor Steve Pugh <steve@pugh.net> <http://steve.pugh.net/> | |||
| Featured Websites | ||||
|
![]() |
| Tags: cell, inside, margin, set, table |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Inside Pitch | Gaz42 | Console Subjects | 1 | 06-26-2007 1:29 AM |
| Delete from a table using entries in temp table | n00bie | Database | 2 | 06-10-2007 12:25 AM |
| Inside The XBOX.. Anyone see it??? | TheLightsAreOn | Computer Consoles | 0 | 05-29-2007 3:40 AM |
| Inside The XBOX.. Anyone see it??? | jojoboy | Computer Consoles | 4 | 05-29-2007 3:39 AM |
| Featured Websites | ||||
|