Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. [newbie] Controls have to be aligned

[newbie] Controls have to be aligned

Scheduled Pinned Locked Moved ASP.NET
csharphtmlvisual-studiohelpquestion
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jon 80
    wrote on last edited by
    #1

    I would like to align controls within a form so that forms appear within a table. Basically I have a form that needs to show, say: Label Textbox Name Address The 'textbox' in this case need to be aligned under each other. The problem with using (within tags was that the code was not compiling within Visual Studio 2005, since it does not comply with the markup validations. XHTML 1.0 Transitional Any more ideas, please?

    Jon

    T M 2 Replies Last reply
    0
    • J jon 80

      I would like to align controls within a form so that forms appear within a table. Basically I have a form that needs to show, say: Label Textbox Name Address The 'textbox' in this case need to be aligned under each other. The problem with using (within tags was that the code was not compiling within Visual Studio 2005, since it does not comply with the markup validations. XHTML 1.0 Transitional Any more ideas, please?

      Jon

      T Offline
      T Offline
      TylerBrinks
      wrote on last edited by
      #2

      You can use the literals to write non-alpha characters. For example, "& a m p;" (without spaces) renders "&" on a page. That'll pass xhtml validation.

      J 1 Reply Last reply
      0
      • T TylerBrinks

        You can use the literals to write non-alpha characters. For example, "& a m p;" (without spaces) renders "&" on a page. That'll pass xhtml validation.

        J Offline
        J Offline
        jon 80
        wrote on last edited by
        #3

        Thanks for your reply, however, I would like to make sure that the controls are aligned. How is this possible?

        Jon

        1 Reply Last reply
        0
        • J jon 80

          I would like to align controls within a form so that forms appear within a table. Basically I have a form that needs to show, say: Label Textbox Name Address The 'textbox' in this case need to be aligned under each other. The problem with using (within tags was that the code was not compiling within Visual Studio 2005, since it does not comply with the markup validations. XHTML 1.0 Transitional Any more ideas, please?

          Jon

          M Offline
          M Offline
          Member 4001596
          wrote on last edited by
          #4

          to align controls use css property.

          J 1 Reply Last reply
          0
          • M Member 4001596

            to align controls use css property.

            J Offline
            J Offline
            jon 80
            wrote on last edited by
            #5

            I could use it to align text, however, I would like to make sure that they fit within a , and, somehow the

            tags have rendered the page unreadable. I tried with a smaller version and it worked, so I must have done some mistake in my actual form. However when I tried to include controls within a wizard control within

            tags it doesn't compile. Any workarounds? ]]> onfinishbuttonclick="Wizard1_FinishButtonClick" Width="765px">    Choose Step 2a Step 2b Error: Error 1 System.Web.UI.WebControls.WizardStepCollection must have items of type 'System.Web.UI.WebControls.WizardStepBase'. 'table' is of type 'System.Web.UI.HtmlControls.HtmlTable'. c:\inetpub\wwwroot\WebSite2\Default.aspx 16

            Jon

            modified on Sunday, January 18, 2009 2:36 PM

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups