I am using Rails and I recently created a new form to add new records with a few mandatory fields names but when I try to add blank records I get an error which is what is supposed to happen but the problem is that page layout is changed. The labels are all moved to a new line. I tried deleting the CSS files . How can I fix this? Can anyone please help?