Text on web pages displaying at left edge for some and center for me.

Discussion in 'Visual Studio' started by wisemx, Feb 27, 2009.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. Hi,
    This can be a real bear with ASP.NET pages, IE will often render the DIVs while Firefox ignores them.
    There are ways to control this behavior, a really good example is in the link below for Expression Web.
    Scroll down to the section: Centering Content in DIVs with Expression Web
    expression.microsoft.com/en-us/cc197140.aspx
    Salute,
    Mark

    Technical Evangelist for DiscountASP.NET

    Find ASP.NET code samples with my Dev Coop search tools below.
    Google
    Microsoft

    DiscountASP.NET Technical Webcasts:
    http://www.iis7test.com/webcasts/

    My Microsoft Technical Blogs
    http://weblogs.asp.net/markwisecarver/
    http://blogs.windowsclient.net/wisecarver/default.aspx
     
  2. I'm working with Visual Web Developer 2008 Standard. I have my web site up and for me it displays more or less the way I want it to. Someone in DiscountASP.net support sent me a screenshot of one of my pages and it showed the text at the left edge of the page. For me the text always displays centered with good sized margins on left and right. Whether I run my web site locally on my computer or I access it on the internet the text is centered.

    Does anyone know what I might try. The problem is of course if I make some change I'll only know if it made a difference if someone who had my web pages displaying with text at the left edge were to then see the text centered. Someone might know exactly what's happening here and give me the solution.

    My site is www.taylorentertainment.biz the/WinthropPage.aspx I know was certainly displaying with text at the left edge for someone in support so I know that that particular page has the problem at least for some browsers. I'm using Internet Explorer 7.
    Someone could let me know maybe if they're seeing that page with the text centered or at the left edge and let me know what browser you're using. I'm guessing that anyone with Internet Explorer 7 won't see this problem but who knows. If that page has the text at the left edge for you then very likely all the pages will.

    There are two attachments. One is the screenshot sent to me by support and the other is the way the page displays for me with text centered.
     

    Attached Files:

  3. I've already determined that there's a problem with the Firefox browser when it accesses my site.
     
  4. At VBForums someone gave me the exact solution to this problem.


    I need this code:


    <div style="margin:0 auto; ......>


    within the Div tags. That took care of the problem.
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page