1 reply [Last post]
timv
Offline
newbie
Last seen: 14 years 28 weeks ago
Joined: 2006-01-31
Posts: 1
Points: 0

Hi, I have a table and want to do padding in a TD. I added a style class to this which has padding-left:10px;
But when the text in this TD is 'too' long and needs to be wrapped, padding doesn't occur for the wrapped line(Drunk (that is the behaviour I would like to have..):

<html><head>
<style type="text/css">
.jobs-detail{
vertical-align:top;
padding-left:10px;
}
</style>
</head><body>
<TABLE>
<TR><TD><A HREF="http://www.google.be">ttttitle</A></TD><TD><span class="jobs-detail">shortdesc</span></TD></TR>
<TR><TD><A HREF="http://www.google.be">JeeWiz</A></TD><TD><span class="jobs-detail">just a small short description</span></TD></TR>
<TR><TD><A HREF="http://www.google.be">A title</A></TD><TD><span class="jobs-detail">This turns out very long because This turns out very long because This turns out very long because This turns out very long.</span></TD></TR>
<TR><TD><A HREF="http://www.google.Be">Solution206</A></TD><TD><span class="jobs-detail">This is the sd of Solution206. This is the body of Solution206. This is the body of Solution206. This is the body of Solution206. This is the body of Solution206. This is the body of Solution206. This is the body of Solution206. This is the sd of Solu</span></TD></TR>
</TABLE>
</body>
</html>

Can someone help me with this?

Greets,
Timv

thepineapplehead
thepineapplehead's picture
Offline
Guru
Last seen: 21 weeks 17 hours ago
Joined: 2004-06-30
Posts: 9668
Points: 801

table padding in row

Why not apply the class to the <td> as opposed to wrapping the text in a <span>?

Verschwindende wrote:
  • CSS doesn't make pies