OZONE Asylum
Forums
Stupid Basic HTML
No Point to XHTML?
This page's ID:
9587
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
Well, if you try to validate your page as strict XHTML, you will see it's not so easy and painless... I will explain a example I had which "angered" me... In XHTML strict, you can't anymore use the property "align= center", you have to use styles instead. This is a good point, I think using css is far more better than HTML code. So you create a css property where you use : "text-align: center". You try to applicate it to your object... Personnaly, I wanted to align in the center a table. The width of every row of the table had to be defined exactly because I used images and text in it. So I applied this property to my table. And... That didn't do anything. The property wasn't working on tables. I tried it on layers, images and text : it worked perfectly. But it didn't worked on tables. SO I included my table into a layer and applied the property to a layer : it didn't worked either. Finally I had an idea : I added another property to my table : I set the width to 100%. Now my rows were larger and the graphism was killed, it didn't worked. So, to prevent the width of my rows from being increased, I created a new empty row on the right with the property "overflow: hidden". I thought this row would be the only one to be increased. I was wrong. The result was still the same. Finally, after thinking about it a bit more, I added another empty row with this property but to the left of my table. And it worked ! Now, the width of the table is always 100% and the real content is always centered because the two empty rows expand on the sides. It works on all browsers (Uh at least IE 6.0, Opera 7 beta 2 and Netcape 7) in any rsolution. I am quite proud of what I made. But frankly : do you think the transition between HTML 4.01 and XHTML 1.0 Strict or XHTML 1.1 in this case is painless ? Maybe I am not a great webmaster, maybe there was an easier answer to my problem, but as far as I know XHTML is much more hard than HTML 4.01. Ultimately all things are known because you want to believe you know. -Zensunni koan
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »