472,126 Members | 1,594 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,126 software developers and data experts.

Repeater vertical spacing

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
5 8792
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
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
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
:( 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
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.

Similar topics

5 posts views Thread by Analysis&Solutions | last post: by
16 posts views Thread by Uncle Pirate | last post: by
reply views Thread by teddysnips | last post: by
3 posts views Thread by GD | last post: by
1 post views Thread by dave8421 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.