Stormheart
Programmer
Hi!
This is my first post here. I always learned and did HTML by my own, have never ever learned it in school... Now I am working with PHP and mostly XHTML Transitional.
I decided some time ago that I create my new website in Strict. But it seems, some things that were simple and usable in Transitional, are totally twisted, unusable and uber-complicated in Strict!
Sometimes I think that W3C gone too far... but nevermind...
What makes this hard is that there is absolutely no help or information about this problems in XHTML tutorials or references - or at least I didn't find.
So my simple, but heavy problems are:
- Positioning tables and other lements to the center, both vertically and horizontally.
It seems to me that Strict tries to prevent me to center anything. Even in Transitional, the only way I found to center a table is <div align="center"> ...
- Table falling into pieces.
I've created a table (it contains parts of an image, as two parts are rollovers) and with Transitional header it works perfectly. As soon as I change the header to Strict, it falls into pieces... Under every image part (jpeg file), there will be apr. 5 pixel of SPACE. I tried all the CSS formatting I know, without any result. The W3C validitor says it is valid Strict... If I change the header back to Trans. everything works again.
- <map> problem.
In the w3schools XHTML ref. the example for <map> tag shows that the tag stands alone in the BODY. But the validitor says that it MUST be inside DIV, P, or some other tags... What the hell is that then? Why should I put something into DIV or P, what is NOT a visible element itself?
So far these are the greatest problems that are sometimes make me postal.... I hope you can help me.
Ps.: If you would say use DIVs and no TABLEs than I would say that I have no even the slightest idea about 1, How to replace a complicate table with divs 2, Why the hell TABLE is soooo bad? I didn't found anything on the waht would answer these two questions, so far. Yes, Google is my friend but he didn't help in this...
This is my first post here. I always learned and did HTML by my own, have never ever learned it in school... Now I am working with PHP and mostly XHTML Transitional.
I decided some time ago that I create my new website in Strict. But it seems, some things that were simple and usable in Transitional, are totally twisted, unusable and uber-complicated in Strict!
Sometimes I think that W3C gone too far... but nevermind...
What makes this hard is that there is absolutely no help or information about this problems in XHTML tutorials or references - or at least I didn't find.
So my simple, but heavy problems are:
- Positioning tables and other lements to the center, both vertically and horizontally.
It seems to me that Strict tries to prevent me to center anything. Even in Transitional, the only way I found to center a table is <div align="center"> ...
- Table falling into pieces.
I've created a table (it contains parts of an image, as two parts are rollovers) and with Transitional header it works perfectly. As soon as I change the header to Strict, it falls into pieces... Under every image part (jpeg file), there will be apr. 5 pixel of SPACE. I tried all the CSS formatting I know, without any result. The W3C validitor says it is valid Strict... If I change the header back to Trans. everything works again.
- <map> problem.
In the w3schools XHTML ref. the example for <map> tag shows that the tag stands alone in the BODY. But the validitor says that it MUST be inside DIV, P, or some other tags... What the hell is that then? Why should I put something into DIV or P, what is NOT a visible element itself?
So far these are the greatest problems that are sometimes make me postal.... I hope you can help me.
Ps.: If you would say use DIVs and no TABLEs than I would say that I have no even the slightest idea about 1, How to replace a complicate table with divs 2, Why the hell TABLE is soooo bad? I didn't found anything on the waht would answer these two questions, so far. Yes, Google is my friend but he didn't help in this...