I have a webpage which initially looks like this.

When clicked upon a link, a small form appears to the right side of the page.


The problem is when that happens that line which reads Record added also moves to the middle.
These are the CSS rules I’ve written to position them.
#frmAddService { float:right; padding-right:250px; padding-top:150px; } //the form
#msg { float:right; padding-right:250px; padding-top:300px; } //the 'Record Added' line
How can I make that line’s position fixed when the form appears?
Thank you.
Cool thank for the link, that help 🙂
I created a new div and add your form and your msg in it. that way, if one move both move.
And I put the id, formContainer.
here is the CSS
I also moddify your Jquery to change the value of your #msg
and this mostly it as you can see in http://jsfiddle.net/PJVu6/29/ it work fine.