PDA

View Full Version : Can I add padding to my text inside a cell ?


Chapo
06-19-2008, 06:28 PM
i'm having problems controlling my text inside a cell of a table. I want to add some padding inside the cell so my text will not be so close to the next cell and it will be easier to read. I know that adding a table inside the cell and controling the padding from there will work, but i will have to do it with all me text and paragraphs, its there an easier way to just control it from the cell ?

domedia
06-19-2008, 06:56 PM
Here's an ugly inline exmaple to show you how it's done:
<td style="padding: 5px;">Your text</td>

You should never have to put a table inside a tablecell for style reasons. Use CSS for all styling.

Chapo
06-20-2008, 05:38 AM
Thats sounds cool with the cool but i'm still learning html and about the codes... how can i do that with the css ? i tried adding a new css rule like i always do but it didn't work. I tried to add some padding inside the cell so the text will have some space and it will be separated from the other text in the next cell.

domedia
06-20-2008, 03:36 PM
Thats sounds cool with the cool but i'm still learning html and about the codes
There's some great resources at adobe you can learn from as well:
http://www.adobe.com/cfusion/designcenter/search.cfm?product=Dreamweaver&go=Go
The help files that ships with DW is good for reference too.

Chapo
06-21-2008, 01:26 AM
Thanx..... thats a great help..!!!!! I'll try it today