Solved screen suddenly stretched

Posted on 2012-09-13
Last Modified: 2012-09-13

I opened my project to find that the controls have stretched. In the image controls that were next to each other are very far apart.

Here's some of the markup

<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="Admin.aspx.vb" Inherits="Survey.Admin" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
            width: 138px;
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
        <asp:Label ID="Label39" runat="server" Width="297px"></asp:Label>
        <asp:Label ID="Label_LoggedIn" runat="server" ForeColor="#666666"
            Text="Not logged in" Font-Size="X-Small" Width="80px"></asp:Label>
        <asp:Label ID="Label_Reviewer" runat="server" ForeColor="#666666"
            Font-Size="X-Small" Width="80px"></asp:Label>
        <asp:Label ID="Label40" runat="server" ForeColor="#CCCCCC"
        <asp:Label ID="Label_Survey" runat="server" Width="474px" ForeColor="#CCCCCC"></asp:Label>
        <asp:Label ID="lblAdminID" runat="server" ForeColor="#003366" Text="Admin ID"></asp:Label>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Label ID="Label30" runat="server" ForeColor="#003366" Text="Password"></asp:Label>
Question by:murbro
    LVL 20

    Expert Comment

    Is this markup you have created? Or this is autogenerated?

    Why so many &nbsp;?
    LVL 23

    Accepted Solution


    Issue with your HTML markup code!

    You try to use CSS to design the page!

    Moreover, never use &nbsp; for spacing!

    Instead, try this code!

    <span style="width:100px;display:inline-block;" ></span>

    Open in new window

    Hope it helps u...

    Author Closing Comment

    Thanks very much

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    Suggested Solutions

    Title # Comments Views Activity Error clicking GridView button 2 29
    SequenceEqual in C# List 2 31
    Explain Unit of Work pattern 2 27
    call function 8 34
    In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
    Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    This video discusses moving either the default database or any database to a new volume.

    737 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

    18 Experts available now in Live!

    Get 1:1 Help Now