You are here Support Forums
Search:  
Padding in grid rows
Last Post 21 Mar 2005 11:59 AM by jj gg. 2 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
jj gg
New Member
New Member
Posts:4

--
21 Mar 2005 11:59 AM  

Thanks for a great module! I'm using the new DNN3.012 version.

I'm trying to get some padding around each row of a grid (rather than padding around the grid itself.

In the CSS I have tried this in the .SQLViewNormalItem and .SQLViewAlternatingItem

 padding-bottom : 10px;
 padding-right : 10px;
 padding-top : 10px;
 padding-left : 10px;

But it doesn't make any difference to the display. Other CSS elements work fine.
Any suggestions?

Thank
Leslie

 

 

Richard Edwards
DNNStuff Founder
Veteran Member
Veteran Member
Posts:1207
Avatar

--
21 Mar 2005 12:23 PM  
Leslie,

I think to achieve what you want to do , you have to apply it directly to the TD within the TR for that row. Since the SQLViewNormalItem and SQLViewAlternatingItem are applied against the TR, you need to do the following to specify a style for the TD within the TR.

.SQLViewAlternatingItem TD{
padding-top: 10px;
padding-bottom: 10px;
}

This should add 10px top and bottom for each TD in the row.

Hope this helps you.




Richard Edwards
DNNStuff Founder
Did you receive excellent support? Consider leaving a testimonial
jj gg
New Member
New Member
Posts:4

--
21 Mar 2005 02:20 PM  

It all makes sense now! Many thanks

Leslie

You are not authorized to post a reply.

Active Forums 4.1
Privacy StatementTerms Of UseCopyright (c) 2004-2012 DNNStuff