Absolute Positioning in Visual Studio 2008

Posted on 2011-10-24
Last Modified: 2012-05-12
Getting started with Visual Studio 2008 to develop web pages in and vb script. I've heard that using absolute positioning, where I can drag and drop controls anywhere on a page, is not recommended and rarely used by experienced programmers.
Is this true, and if so, what's the reason?

Question by:Michael Vasilevsky
    LVL 20

    Accepted Solution

    It's because the HTML and CSS that are generated by this process become flawed and obnoxious to work with. This turns out to be true for any similar software (Dreamweaver for example).

    The HTML/CSS often become overcomplicated as a computer program tries to arrange/re-arrange styles and what you end up with is 100 lines of code that could likely be done much better with 3 lines or something.

    It will just create all sorts of problems down the road that will waste more time than the "automation" saved. Cross browser issues will crop up. Bugs will slide in. Simple optimizations will become nightmarish, Intelligent styling (overall site style sheets for example) will go out the window, JavaScript becomes overly complex.

    The bottom line is good development for design and execution comes from good planning and precise execution. When something is done efficiently and properly all aspects are made easier and better.

    I don't know if I'm making my point, but all you have to do is layout a average complexity web site using the wsiwig editor model from anything and you will find out why its a disaster for yourself.

    If it were so easy a computer program could do it for you then web developers would have been made obsolete long ago :)
    LVL 16

    Assisted Solution

    Don't use absolute and don't even use the visual studio's designer.
    I have never used the Design view (since .net 2001) and always use the Source view.

    Use a good CSS/Html design template before you start building your page.
    Then just add your controls in Source view where you want them.
    You'll have more control and precision when positioning your elements.
    It's not hard to use ccs and html to position things once you start playing around with it.

    LVL 10

    Author Closing Comment

    by:Michael Vasilevsky
    Good answers, thank you.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    In this Article, I will provide a few tips in problem and solution manner. Opening an ASPX page in Visual studio 2003 is very slow. To make it fast, please do follow below steps:   Open the Solution/Project. Right click the ASPX file to b…
    Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    758 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now