Add some space between drowdown list items

Posted by Sandeepmhatre under ASP.NET on 8/21/2013 | Points: 10 | Views : 999 | Status : [Member] | Replies : 4
Hi All,

My Requirement is to add some space between two list items of drowdown.

How it can be done with CSS ?

Tnks in advance.

Regards
Sandeep M

Sandeep M,
Software Developer
Follow me on :
http://sandeepmhatre.blogspot.in



Responses

Posted by: Satyapriyanayak on: 8/21/2013 [Member] [MVP] Silver | Points: 25

Up
0
Down
http://stackoverflow.com/questions/13070828/add-space-between-list-items-or-make-items-easier-to-select-on-touchscreens-in

If this post helps you mark it as answer
Thanks

Sandeepmhatre, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Bandi on: 8/22/2013 [Member] [MVP] Platinum | Points: 25

Up
0
Down
refer these links...
http://stackoverflow.com/questions/276324/css-horizontal-navigation-spacing
http://www.sagehill.net/docbookxsl/ListSpacing.html

Mark This Response as Answer
--
Chandu
http://www.dotnetfunda.com/images/dnfmvp.gif

Sandeepmhatre, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sandeepmhatre on: 8/22/2013 [Member] Starter | Points: 25

Up
0
Down
Hi,

It doesnt work,

Please suggest another style sheet.
Code for my dropdown list is :

<asp:DropDownList runat="server" ID="ddlTest">
<asp:ListItem Text="text1" />
<asp:ListItem Text="text2" />
<asp:ListItem Text="text2" />
<asp:ListItem Text="text2" />
<asp:ListItem Text="text2" />
</asp:DropDownList>



Sandeep M,
Software Developer
Follow me on :
http://sandeepmhatre.blogspot.in

Sandeepmhatre, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Bandi on: 8/22/2013 [Member] [MVP] Platinum | Points: 25

Up
0
Down
May be this....
display: inline will give respect the spaces between list items...
Refer the following link
http://stackoverflow.com/questions/3942871/css-li-items-in-horizontal-menu-have-a-gap-between-them


Mark This Response as Answer
--
Chandu
http://www.dotnetfunda.com/images/dnfmvp.gif

Sandeepmhatre, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response