locked
In html if you align text to the right, then its size is reduced RRS feed

  • Question

  • I found a problem with displaying html in the built-in browser (IE) windows phone 7.
    In html if you align text to the right, then its size is reduced.

    Sample html:
    <!DOCTYPE html>
    <html> 
      <head>  
        <meta charset="utf-8">  
        <title>text-align</title>  
        <style>   
          div {    
            border: 1px solid black; /* Параметры рамки */    
            padding: 5px; /* Поля вокруг текста */    
            margin-bottom: 5px; /* Отступ снизу */   
          }   
          #left { text-align: left; }   
          #right { text-align: right; }   
          #center { text-align: center; }   
          .content {        
            font-size: 20px;        
            width: 75%; /* Ширина слоя */        
            background: #fc0; /* Цвет фона */   
          }  
        </style> 
    </head> 
    <body>  
      <div id="left"><div class="content">Выравнивание по левому краю</div></div>  
      <div id="center"><div class="content">Выравнивание по центру</div></div>  
      <div id="right"><div class="content">Выравнивание по правому краю</div></div> 
    </body>
    </html>

    Third row is displayed incorrectly
    Thursday, May 3, 2012 1:00 PM

Answers

  • This could be due to the way Internet Explorer in Windows Phone 7 renders the HTML source: write your post in the Windows Phone Answers Forum at the following address

    http://answers.microsoft.com/en-us/winphone

    Bye.


    Luigi Bruno - Microsoft Community Contributor 2011 Award

    • Marked as answer by Niki Han Monday, May 7, 2012 8:45 AM
    Thursday, May 3, 2012 6:06 PM

All replies

  • This could be due to the way Internet Explorer in Windows Phone 7 renders the HTML source: write your post in the Windows Phone Answers Forum at the following address

    http://answers.microsoft.com/en-us/winphone

    Bye.


    Luigi Bruno - Microsoft Community Contributor 2011 Award

    • Marked as answer by Niki Han Monday, May 7, 2012 8:45 AM
    Thursday, May 3, 2012 6:06 PM
  • Thanks!

    Done.

    Friday, May 4, 2012 8:18 AM