Results 1 to 2 of 2

Thread: Space out controls in a panel

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2001
    Location
    Fort Lauderdale, FL
    Posts
    98

    Space out controls in a panel

    I'm creating txtboxes, labels, and cboboxes based on a users selection. These controls are being added to a panel.

    I know I've seen this question here somewhere, but I can't find it. I would like to know how to space out these controls within the panel.

    Any ideas?

  2. #2
    C# Aficionado Lord_Rat's Avatar
    Join Date
    Sep 2001
    Location
    Cave
    Posts
    2,497
    A few methods:

    1) Create a table with 100% width and insert each control in to their own table cell (the recommended method)

    2) Use   to hard code multiple spaces. Not recommended due to copy paste issues. Looks like [control]               [control]

    3) IE only. Create an img tag with a height of 0px and a width of how much space you want to seperate them.

    4) Varying results: Create a DIV SPAN or LAYER between each with a style of style="width:xxxpx"
    Need to re-register ASP.NET?
    C:\WINNT\Microsoft.NET\Framework\v#VERSIONNUMBER#\aspnet_regiis -i

    (Edit #VERSIONNUMBER# as needed - do a DIR if you don't know)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width