PDA

View Full Version : ASP.net causing CSS problem with multiple forms



opera13
Feb 19th, 2010, 07:33 PM
So I have a page with three forms on it. Thet all have the same class, yet the top one receives no styling from the linked css file. The other two do. On the other hand, the containing div doesn't seem to rgister that the second two forms are there, because the background stops displaying after the first. I finally figured out that this is due to the fact that all three HTML forms are nested inside the mandatory ASP.net form...when I remove that, they look fine...

These forms must submit to an external site, so making them part of the existing ASP.net form isn't really an option. They're working, but the top one looks all wrong. Below are the two files.

http://www.craftonhills.edu/logintest3.htm

http://www.craftonhills.edu/default.css

Suggestions? I'm rather new to ASP.net. Thanks.

abduraooft
Feb 20th, 2010, 08:24 AM
Fix the errors in your markup first, see http://validator.w3.org/check?uri=http%3A%2F%2Fwww.craftonhills.edu%2Flogintest3.htm&charset=%28detect+automatically%29&doctype=Inline&group=0

You can't nest a form inside another.