By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,905 Members | 894 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,905 IT Pros & Developers. It's quick & easy.

Repeater vertical spacing

P: n/a
Hello,
w/ code like this:

<table border="0" cellspacing="0" cellpadding="0">
<asp:Repeater runat="server" id="op">
<HeaderTemplate></HeaderTemplate>
<ItemTemplate>
<tr>
<td class="label-item" align="left">
<asp:Label runat="server" id="b1" />
<asp:Label runat="server" id="blockConditionMeasure" Text="[{0}]"
Visible="False" />
</td>
<td>
<asp:DropDownList runat="server" id="ob" CssClass="dropdown" Width="50"
TabIndex="9">
<asp:ListItem Value="1">&gt;</asp:ListItem>
<asp:ListItem Value="2">&lt;</asp:ListItem>
<asp:ListItem Value="3">=</asp:ListItem>
<asp:ListItem Value="4">&lt;=</asp:ListItem>
<asp:ListItem Value="5">=&gt;</asp:ListItem>
</asp:DropDownList>
</td>
<td width="7"><img src="space.gif" width="7" height="1" alt=""
border="0"></td>
<td>
<asp:TextBox runat="server" id="pv" CssClass="input" Width="95" TabIndex="9"
MaxLength="6" />
</td>
</tr>
</ItemTemplate>
<FooterTemplate></FooterTemplate>
</asp:Repeater>
</table>

how can i change the vertical space b/w elements?
TIA
Nov 19 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
one easy way is to simply add a filler row
<tr>
<td colspan="4" style="height:20px;"></td>
</tr>
</ItemTemplate>

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is
annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
"Goldy" <no********@mail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hello,
w/ code like this:

<table border="0" cellspacing="0" cellpadding="0">
<asp:Repeater runat="server" id="op">
<HeaderTemplate></HeaderTemplate>
<ItemTemplate>
<tr>
<td class="label-item" align="left">
<asp:Label runat="server" id="b1" />
<asp:Label runat="server" id="blockConditionMeasure" Text="[{0}]"
Visible="False" />
</td>
<td>
<asp:DropDownList runat="server" id="ob" CssClass="dropdown" Width="50"
TabIndex="9">
<asp:ListItem Value="1">&gt;</asp:ListItem>
<asp:ListItem Value="2">&lt;</asp:ListItem>
<asp:ListItem Value="3">=</asp:ListItem>
<asp:ListItem Value="4">&lt;=</asp:ListItem>
<asp:ListItem Value="5">=&gt;</asp:ListItem>
</asp:DropDownList>
</td>
<td width="7"><img src="space.gif" width="7" height="1" alt=""
border="0"></td>
<td>
<asp:TextBox runat="server" id="pv" CssClass="input" Width="95"
TabIndex="9" MaxLength="6" />
</td>
</tr>
</ItemTemplate>
<FooterTemplate></FooterTemplate>
</asp:Repeater>
</table>

how can i change the vertical space b/w elements?
TIA

Nov 19 '05 #2

P: n/a
thats nice, but i want to decrease it :(

"Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net>
wrote in message news:Ov**************@TK2MSFTNGP10.phx.gbl...
one easy way is to simply add a filler row
<tr>
<td colspan="4" style="height:20px;"></td>
</tr>
</ItemTemplate>

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is
annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
"Goldy" <no********@mail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hello,
w/ code like this:

<table border="0" cellspacing="0" cellpadding="0">
<asp:Repeater runat="server" id="op">
<HeaderTemplate></HeaderTemplate>
<ItemTemplate>
<tr>
<td class="label-item" align="left">
<asp:Label runat="server" id="b1" />
<asp:Label runat="server" id="blockConditionMeasure" Text="[{0}]"
Visible="False" />
</td>
<td>
<asp:DropDownList runat="server" id="ob" CssClass="dropdown" Width="50"
TabIndex="9">
<asp:ListItem Value="1">&gt;</asp:ListItem>
<asp:ListItem Value="2">&lt;</asp:ListItem>
<asp:ListItem Value="3">=</asp:ListItem>
<asp:ListItem Value="4">&lt;=</asp:ListItem>
<asp:ListItem Value="5">=&gt;</asp:ListItem>
</asp:DropDownList>
</td>
<td width="7"><img src="space.gif" width="7" height="1" alt=""
border="0"></td>
<td>
<asp:TextBox runat="server" id="pv" CssClass="input" Width="95"
TabIndex="9" MaxLength="6" />
</td>
</tr>
</ItemTemplate>
<FooterTemplate></FooterTemplate>
</asp:Repeater>
</table>

how can i change the vertical space b/w elements?
TIA


Nov 19 '05 #3

P: n/a
Hahah..you have to admit that wasn't at all clear from your orignal post :P

Try making use of the padding style for setting different padding-top/bottom
and padding-left/right

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
"Goldy" <no********@mail.com> wrote in message
news:OD**************@TK2MSFTNGP14.phx.gbl...
thats nice, but i want to decrease it :(

"Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net>
wrote in message news:Ov**************@TK2MSFTNGP10.phx.gbl...
one easy way is to simply add a filler row
<tr>
<td colspan="4" style="height:20px;"></td>
</tr>
</ItemTemplate>

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is
annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
"Goldy" <no********@mail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hello,
w/ code like this:

<table border="0" cellspacing="0" cellpadding="0">
<asp:Repeater runat="server" id="op">
<HeaderTemplate></HeaderTemplate>
<ItemTemplate>
<tr>
<td class="label-item" align="left">
<asp:Label runat="server" id="b1" />
<asp:Label runat="server" id="blockConditionMeasure" Text="[{0}]"
Visible="False" />
</td>
<td>
<asp:DropDownList runat="server" id="ob" CssClass="dropdown" Width="50"
TabIndex="9">
<asp:ListItem Value="1">&gt;</asp:ListItem>
<asp:ListItem Value="2">&lt;</asp:ListItem>
<asp:ListItem Value="3">=</asp:ListItem>
<asp:ListItem Value="4">&lt;=</asp:ListItem>
<asp:ListItem Value="5">=&gt;</asp:ListItem>
</asp:DropDownList>
</td>
<td width="7"><img src="space.gif" width="7" height="1" alt=""
border="0"></td>
<td>
<asp:TextBox runat="server" id="pv" CssClass="input" Width="95"
TabIndex="9" MaxLength="6" />
</td>
</tr>
</ItemTemplate>
<FooterTemplate></FooterTemplate>
</asp:Repeater>
</table>

how can i change the vertical space b/w elements?
TIA



Nov 19 '05 #4

P: n/a
:( no good so far
i tryed adding padding="0px" to all hr and hd tags w/ no result
can go into some more details ?
TIA

"Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net>
wrote in message news:%2****************@TK2MSFTNGP11.phx.gbl...
Hahah..you have to admit that wasn't at all clear from your orignal post
:P

Try making use of the padding style for setting different
padding-top/bottom and padding-left/right

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
"Goldy" <no********@mail.com> wrote in message
news:OD**************@TK2MSFTNGP14.phx.gbl...
thats nice, but i want to decrease it :(

"Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net>
wrote in message news:Ov**************@TK2MSFTNGP10.phx.gbl...
one easy way is to simply add a filler row
<tr>
<td colspan="4" style="height:20px;"></td>
</tr>
</ItemTemplate>

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is
annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
"Goldy" <no********@mail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hello,
w/ code like this:

<table border="0" cellspacing="0" cellpadding="0">
<asp:Repeater runat="server" id="op">
<HeaderTemplate></HeaderTemplate>
<ItemTemplate>
<tr>
<td class="label-item" align="left">
<asp:Label runat="server" id="b1" />
<asp:Label runat="server" id="blockConditionMeasure" Text="[{0}]"
Visible="False" />
</td>
<td>
<asp:DropDownList runat="server" id="ob" CssClass="dropdown" Width="50"
TabIndex="9">
<asp:ListItem Value="1">&gt;</asp:ListItem>
<asp:ListItem Value="2">&lt;</asp:ListItem>
<asp:ListItem Value="3">=</asp:ListItem>
<asp:ListItem Value="4">&lt;=</asp:ListItem>
<asp:ListItem Value="5">=&gt;</asp:ListItem>
</asp:DropDownList>
</td>
<td width="7"><img src="space.gif" width="7" height="1" alt=""
border="0"></td>
<td>
<asp:TextBox runat="server" id="pv" CssClass="input" Width="95"
TabIndex="9" MaxLength="6" />
</td>
</tr>
</ItemTemplate>
<FooterTemplate></FooterTemplate>
</asp:Repeater>
</table>

how can i change the vertical space b/w elements?
TIA



Nov 19 '05 #5

P: n/a
well, <td
style="padding-top:0px;padding-left:5px;padding-right:5px;padding-bototm:0px;">aa</td>

or the shorthand <td style="padding:0px 5px 0px 5px;">aa</td>

Keep in mind though that ultimately, the browser will render the necessary
spacing it needs to display the content.

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
"Goldy" <no********@mail.com> wrote in message
news:uZ**************@TK2MSFTNGP12.phx.gbl...
:( no good so far
i tryed adding padding="0px" to all hr and hd tags w/ no result
can go into some more details ?
TIA

"Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net>
wrote in message news:%2****************@TK2MSFTNGP11.phx.gbl...
Hahah..you have to admit that wasn't at all clear from your orignal post
:P

Try making use of the padding style for setting different
padding-top/bottom and padding-left/right

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is
annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
"Goldy" <no********@mail.com> wrote in message
news:OD**************@TK2MSFTNGP14.phx.gbl...
thats nice, but i want to decrease it :(

"Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net>
wrote in message news:Ov**************@TK2MSFTNGP10.phx.gbl...
one easy way is to simply add a filler row
<tr>
<td colspan="4" style="height:20px;"></td>
</tr>
</ItemTemplate>

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is
annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
"Goldy" <no********@mail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
> Hello,
> w/ code like this:
>
> <table border="0" cellspacing="0" cellpadding="0">
> <asp:Repeater runat="server" id="op">
> <HeaderTemplate></HeaderTemplate>
> <ItemTemplate>
> <tr>
> <td class="label-item" align="left">
> <asp:Label runat="server" id="b1" />
> <asp:Label runat="server" id="blockConditionMeasure" Text="[{0}]"
> Visible="False" />
> </td>
> <td>
> <asp:DropDownList runat="server" id="ob" CssClass="dropdown"
> Width="50" TabIndex="9">
> <asp:ListItem Value="1">&gt;</asp:ListItem>
> <asp:ListItem Value="2">&lt;</asp:ListItem>
> <asp:ListItem Value="3">=</asp:ListItem>
> <asp:ListItem Value="4">&lt;=</asp:ListItem>
> <asp:ListItem Value="5">=&gt;</asp:ListItem>
> </asp:DropDownList>
> </td>
> <td width="7"><img src="space.gif" width="7" height="1" alt=""
> border="0"></td>
> <td>
> <asp:TextBox runat="server" id="pv" CssClass="input" Width="95"
> TabIndex="9" MaxLength="6" />
> </td>
> </tr>
> </ItemTemplate>
> <FooterTemplate></FooterTemplate>
> </asp:Repeater>
> </table>
>
> how can i change the vertical space b/w elements?
> TIA
>
>



Nov 19 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.