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. alignment of controls

alignment of controls

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netquestionhtmldesign
4 Posts 4 Posters 1 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
    jassiedog
    wrote on last edited by
    #1

    I am adding some new pages to an existing C# asp.net 2010 web forms website. Due that that fact and I am new to web design but how desktop expereince, I have the following question: On the exsiting web pages, most of the controls are embedded in a web table control. I am guesing this is occuring so all the web form controls are aligned correctly. Is that the only way to make the various controls line on correctly? If not, can you tell me another way how to make the controls all line up the same. (I do know when I worked with pure HMTL in year 2000, all the HTML controls were embedded within the same table

    N D M 3 Replies Last reply
    0
    • J jassiedog

      I am adding some new pages to an existing C# asp.net 2010 web forms website. Due that that fact and I am new to web design but how desktop expereince, I have the following question: On the exsiting web pages, most of the controls are embedded in a web table control. I am guesing this is occuring so all the web form controls are aligned correctly. Is that the only way to make the various controls line on correctly? If not, can you tell me another way how to make the controls all line up the same. (I do know when I worked with pure HMTL in year 2000, all the HTML controls were embedded within the same table

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      In the past using tables for alignment was the only method available. Now, however, CSS is being used for tableless design. This is one place to start but there are many more resources available Tableless layout HOWTO[^]


      No comment

      1 Reply Last reply
      0
      • J jassiedog

        I am adding some new pages to an existing C# asp.net 2010 web forms website. Due that that fact and I am new to web design but how desktop expereince, I have the following question: On the exsiting web pages, most of the controls are embedded in a web table control. I am guesing this is occuring so all the web form controls are aligned correctly. Is that the only way to make the various controls line on correctly? If not, can you tell me another way how to make the controls all line up the same. (I do know when I worked with pure HMTL in year 2000, all the HTML controls were embedded within the same table

        D Offline
        D Offline
        Dennis E White
        wrote on last edited by
        #3

        for alignment take a look at http://960.gs/ or even better if you are interested in using jQuery and want an adaptive display you can read about the following about an awesome jQuery plugin that this really great developer I know posted. ;) A jQuery plugin for an Adaptive 960 Grid System

        who better the shamelessly promote other than yourself?

        1 Reply Last reply
        0
        • J jassiedog

          I am adding some new pages to an existing C# asp.net 2010 web forms website. Due that that fact and I am new to web design but how desktop expereince, I have the following question: On the exsiting web pages, most of the controls are embedded in a web table control. I am guesing this is occuring so all the web form controls are aligned correctly. Is that the only way to make the various controls line on correctly? If not, can you tell me another way how to make the controls all line up the same. (I do know when I worked with pure HMTL in year 2000, all the HTML controls were embedded within the same table

          M Offline
          M Offline
          Morgs Morgan
          wrote on last edited by
          #4

          Hi, Nowadays to get a best web page layout that is not only easy to render on client side but also easier to design, is to actually avoid tables and use something like divs (or

          ). This element can align your entire page like magic! As you can see in my example i have put in place a simple but yet handy attribute to the div, "style". The style attribute will help you style your div (oh div stands for "division", a division on your page), and for the sake of alignment in my example i have put float:left, you could also have float:right or simply don't put the float and the browser will decide where to place your division(s) when rendered. There are many styles you can put such as margin, padding, text-align, background, color....and much more! This comes with the power and magic of CSS! Get a hard start on this topic, css: http://www.csstutorial.net/[^] This all you need to giveup tables on your pages. Happy coding, Morgs

          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