css - HTML not rendering correctly -


i following ruby tutorial make sample app. made signup page errors in signing being rendered in funny way. period @ end of error line comes before it. , asterisk , bullet point on wrong end of line.

here page source html source:

<div class="container">             <h1>sign up</h1> <div class="row">     <div class="span6 offset3">         <form accept-charset="utf-8" action="/users" class="new_user" id="new_user" method="post"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" /><input name="authenticity_token" type="hidden" value="upwvqbjk5hdjlsxerjfnaesr61pkf3l/k1u2/05+ily=" /></div>                 <div id="error explanation">         <div class="alert alert-error">             form contains 2 errors.         </div>         <ul>                 <li>* password doesn't match confirmation</li>                 <li>* email invalid</li>         </ul>     </div> 

this how looks:

enter image description here

this css:

#error_explanation {     color: #f00;     ul {         list-style: none;         margin: 0 0 18px 0;     } } 

also mention, input field had similar problem input cursor on right end of box (like arabic text). solved 1 adding direction: ltr; line in input textarea css:

input, textarea, select, .uneditable-input {     border: 1px solid #bbb;     width: 100%;     padding: 10px;     height: auto;     margin-bottom: 15px;     direction: ltr;     @include box_sizing; } 

i treid adding direction styleing in css didn't work. can't think of else. please tell me going wrong?

so though things suggested @sam worked, found same problem in other places on site. fixed of them using direction: ltr. later when deployed heroku, lot of things failed. when looked solution found need pre compile assets before deploying heroku. using bootstrap.

surprisingly bundle exec rake assets:precompile solved problem on localhost heroku.

so yeah, problem in asset pipeline compilation.


Comments

Popular posts from this blog

ios - iPhone/iPad different view orientations in different views , and apple approval process -

java Extracting Zip file -

C# WinForm - loading screen -