Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What's up with the Width not equal for some controls
Message
De
26/04/2012 01:57:39
 
 
À
25/04/2012 21:35:36
Information générale
Forum:
HTML5
Catégorie:
Autre
Divers
Thread ID:
01542608
Message ID:
01542627
Vues:
53
>This is one of the things that irritates me a lot. I do not know if I am missing something here but this is something I found since a few years. In quirk mode, if a textbox is defined for a width of 300 and I have under that tag a select tag of a width of 300, this is a perfect match. But, as soon as I switched that document to HTML5, thus having the DOCTYPE declaration, there is an offset of six pixels between the two. As anyone found a way to avoid that other than to manually remember that we need to put a difference of six pixels for the width to match perfectly when this will be rendered on the browser?

Just a general observation really:

HTML was originally intended to give guidance to a browser as to how a page is displayed - the way in which the browser chose to interpret this information was it's own affair. To an extent this still applies - so attempting to micro manage the appearance of a page across browsers via the HTML will drive you mad. To be fair this probably isn't the fault of the Browser writers - they have the opposite problem in that they have to try to give a consistent interpretation to widely (or even wildly) varying HTML.

HTML5 should be a step in the consistency direction - but it ain't there yet :-{
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform