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. Alligning text boxes using CSS (don't want to use &nbsp)

Alligning text boxes using CSS (don't want to use &nbsp)

Scheduled Pinned Locked Moved ASP.NET
css
3 Posts 2 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.
  • T Offline
    T Offline
    Tina P
    wrote on last edited by
    #1

    Hello folks, I just can't seem to get the property right...I am enter data using text boxes on a page such as Name, address etc. So in a give row on the page, I have one lable (such as name) and a text box corresponding that lable where the user will type in teh name and then the same thing for the address and so forth. I've been using the designer to adjust all the text boxes so that they lign up accurately. I have dumped all these controls (lables, text boxes, required field validation text and finally a submit button in a div) I want all those text boxes alligned underneath each other accurately and space   (from the designer) can't seem to cut it :) can't someone please tell me what other properties needs to be set...on the div, or better yet, I'll put a cssClass attribute on the div...what properties should I set in the extenal CSS so that the text boxes are all alligned properly. Thanks as you can probably tell, I'm not good with CSS :( Thanks Tina

    T 1 Reply Last reply
    0
    • T Tina P

      Hello folks, I just can't seem to get the property right...I am enter data using text boxes on a page such as Name, address etc. So in a give row on the page, I have one lable (such as name) and a text box corresponding that lable where the user will type in teh name and then the same thing for the address and so forth. I've been using the designer to adjust all the text boxes so that they lign up accurately. I have dumped all these controls (lables, text boxes, required field validation text and finally a submit button in a div) I want all those text boxes alligned underneath each other accurately and space   (from the designer) can't seem to cut it :) can't someone please tell me what other properties needs to be set...on the div, or better yet, I'll put a cssClass attribute on the div...what properties should I set in the extenal CSS so that the text boxes are all alligned properly. Thanks as you can probably tell, I'm not good with CSS :( Thanks Tina

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

      You can do it with css using float:left to make sure they all left align, or you can do all this within a table as well. example (C#):

      This would accomplish what you were asking with just tables. As far as css i would suggest doing google searches for good css tutorials. Hope that helps Matthew Vass QA Analyst mvass@hostmysite.com HostMySite.com

      T 1 Reply Last reply
      0
      • T tech603

        You can do it with css using float:left to make sure they all left align, or you can do all this within a table as well. example (C#):

        This would accomplish what you were asking with just tables. As far as css i would suggest doing google searches for good css tutorials. Hope that helps Matthew Vass QA Analyst mvass@hostmysite.com HostMySite.com

        T Offline
        T Offline
        Tina P
        wrote on last edited by
        #3

        Hey there, thanks for the response...I ended up using float as well....but yeah I'm using Divs and span...as opposed to Tables. Thanks for the help though! Tina

        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