I have 2 pages (A and B), I have coded them and they were fine. then I have noticed that in page A, the text area resize automatically depending on contents, but in page B ( which has the same EXACT css files and styles) doesn't resize automatically.
After comparison, I noticed that page A has:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
while page B has:
<!DOCTYPE html PUBLIC "-//W3C//DTD//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtm...
and when I tried to change that tag in page B to the way it is in page A, I found all the CSS styles are missed!!
I read about <!DOCTYPE in w3.org , but I didn't understand anything!!
What's that? is there a way to solve it without effectin the style?
Tags: