php - Text and input box align in form -


i align text left side , input box right side.

this how site looks , how should be: [picture removed]

however, did wanted using div tag inside div tag, so, if give background colour it, how looks like:

the problem is, after green (on grey side) echo errors. because of div width of green area, cannot that. error goes under input box. so, wonder how can able show form did in pictures @ same time able show errors on right side, well.

so, script calls javascript plugin (http://jqueryvalidation.org). , plugin add error right after input box, when sees problem. that's why not able put errors in div tag.

error appear in class: "label.error". if there way make class "don't care fixed width" in css. work.

basicly want create container <div /> element , put 2 <div /> elements inside it. since didn't give code, can give example:

#container {      width: 512px;      height: 506px;      border: 3px solid green;  }  #left {      float: left;      width: 250px;      height: 500px;      border: 3px solid red;      display: block;  }  #right {      float: left;      width: 250px;      height: 500px;      border: 3px solid blue;      display: block;  }
<div id="container">      <div id="left">          form here      </div>      <div id="right">          errors here      </div>  </div>


Popular posts from this blog