Dreamweaver - Why does a hidden form field trash Design View

I added a hidden form field to a web page, and the page suddenly looks terrible in Dreamweaver Design View (Image 1).  If I go into Preferences and change tell Dreamweaver to not show the hidden form field, the page looks fine again (Image 2).  

It's worth noting that if I change the hidden form field to type="text" the page looks terrible again (Image 3).  When the form field appears in any way in Dreamweaver (Image 1 or 3), it is right aligned to such an extent that the containing DIV is trashed.

It's also worth noting that the issue is solely associated with Dreamweaver.  If I post the page to any browser, it looks just fine.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jason C. LevineDon't talk to me.Commented:
Hi jdana,

Design View is far from perfect and nowhere close to a browser in its ability to render HTML and CSS.  Because Design View includes a ton of DW-specific icons, borders and other elements you can throw off the entire design merely by adding a supposedly invisible element depending on what you are doing with the View states.

In this case, a hidden field actually is not "hidden" for Design View purposes if you represent it as an icon.  DW treats it as if it were a normal text field when it tries to render your page, it just displays the little yellow shield instead of the field.  That's why it works when you turn off the hidden field icons.

Every so often you will generate a design that DW just hates and it appears this is one of those cases.  You can spend a lot of time and effort to find the offending design principle and change it to something DW likes better or you can just ignore it so long as no browsers are affected.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Yes dont use design view I use wamp to do what design view does by using a proper web server (apache) to render the page

jdanaAuthor Commented:

Thanks for the terrific feedback.

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Browsers

From novice to tech pro — start learning today.