DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Rick Guest

    Aligning text to a background when resolution is changed


    I have my text aligned to the background when the resolution is 1024x768 but
    if a user has 800x600 the text does not line up anymore. My code is: Style
    = "Position:Absolute;Left:435;Top:95".

    What should I use to align the text?

    Is there a way to determine the users resolution settings and open the appropriate
    page?

    What I am tring to do is an org chart:

    [ Title ]
    [ Name ]
    Arrow Arrow Arrow
    [ Title ] [ Title ] [ Title ]
    [ Name ] [ Name ] [ Name ]


    switch to 800x600 it looks like this:

    [ Ti]tle
    [ Na]me
    Arrow Arrow Arrow
    [ Ti]tle [ Ti]tle [ Ti]tle
    [ Na]me [ Na]me [ Na]me


    Thanks

    Rick



  2. #2
    Constance J. Petersen Guest

    Re: Aligning text to a background when resolution is changed

    Hi Rick,

    "Rick" <rick1962@cox.net> wrote in message news:3d331aec$1@10.1.10.29...
    >
    > I have my text aligned to the background when the resolution is 1024x768 but
    > if a user has 800x600 the text does not line up anymore. My code is: Style
    > = "Position:Absolute;Left:435;Top:95".


    You should also look at using CSS to specify the foreground and background
    colors plus margins, paddings, and borders for each org chart element.

    BTW, I find liquid tables still to be the most reliable way to control complex
    positioning at any resolution and in any browser.

    Constance Petersen, DevX newsgroup section leader
    --
    Coming soon to a bookstore near you:
    "Programming the Web with Visual Basic .NET"
    http://www.apress.com/book/bookDisplay.html?bID=103
    --
    Please reply in the newsgroup so everyone can benefit



  3. #3
    Rick Guest

    Re: Aligning text to a background when resolution is changed


    Thank you very much. I think I have it working now.

  4. #4
    Herries Guest

    Re: Aligning text to a background when resolution is changed


    "Rick" <rick1962@cox.net> wrote:
    >
    >Thank you very much. I think I have it working now.


    Hi,

    May I know how do you resolved it !?
    cos I'm having a same problem .. when user have different display resolution
    !!

    I would like to know .. how to capture the display resolution !?

    Thank you,

    Herries

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links