Web Hosting Talk







View Full Version : help with text in tables


crazyfish
12-20-2004, 01:37 PM
I have a background image in a cell of a table but the text is going over to of the edges of the graphic, I tried setting a margin but it only set it for the first line on the left side. I need to keep both the right and left side 8 pixels away from the edge, top and bottom don't matter the graphics only show on the side. Any help would be great.

thanks

the_pm
12-20-2004, 03:05 PM
It sounds like you need to set padding within the cell itself, something like this:

<td style="padding-left:8px">

This may not be the best way to apply the style - perhaps an external stylesheet would make more sense - but it should do what you're asking.

crazyfish
12-20-2004, 03:25 PM
oh i forgot to mention I had setup a stylesheet for the text that will be inside these boxes

the_pm
12-20-2004, 03:34 PM
Hmm, did you try margin-left:8px on the container holding the text within the box? How did you try to apply that margin?

crazyfish
12-20-2004, 03:41 PM
yeah I tried that and all that happened was the first word was indented to the proper width. It didn't format everything over the 8px I needed....

the_pm
12-20-2004, 04:18 PM
Can you share your markup? A link would work best so it can be seen in action. You're describing something like p:first-line { margin-left:8px }, but you'd know if you'd done something like this...

crazyfish
12-20-2004, 04:55 PM
i decided to do something different with the text, just one of those days I am hating everything I design today :(

thanks for the help though