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. How do I display a label before a Multiline Text Box to appear alligned with the top edge of that text box

How do I display a label before a Multiline Text Box to appear alligned with the top edge of that text box

Scheduled Pinned Locked Moved ASP.NET
question
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

    Can someone please tell me how do I display a label before a Multiline Text Box to appear alligned with the top edge of the text box instead of it's bottom edge! Thanks Tina

    T 1 Reply Last reply
    0
    • T Tina P

      Can someone please tell me how do I display a label before a Multiline Text Box to appear alligned with the top edge of the text box instead of it's bottom edge! Thanks Tina

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

      If you have them in some kind of container control (e.g HTML table), you should be able to set the vertical alignment CSS property. That way, if the table cell has the same height as the multi-line text box, you can set vertical-align on the label's cell to be the top of the cell. This will make it appear that the label's top border is on the same line as the multi-line text box's top border. Hope that helps.

      Have faith in yourself; amateurs built the Ark, professionals built the Titanic.

      T 1 Reply Last reply
      0
      • T t7bros

        If you have them in some kind of container control (e.g HTML table), you should be able to set the vertical alignment CSS property. That way, if the table cell has the same height as the multi-line text box, you can set vertical-align on the label's cell to be the top of the cell. This will make it appear that the label's top border is on the same line as the multi-line text box's top border. Hope that helps.

        Have faith in yourself; amateurs built the Ark, professionals built the Titanic.

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

        Thanks alot, I tried the exact same thing right after posting this and it worked...instead of table, I used a span though and was able to set the v-align under style on that. Thanks for the response. 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