Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
2542 connectés 

  FORUM HardWare.fr
  Programmation
  HTML/CSS

  frameset border="0" & xhtml 1.0 validation

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

frameset border="0" & xhtml 1.0 validation

n°900436
bob007
Posté le 17-11-2004 à 10:53:28  profilanswer
 

Salut all!
 
Bon petit problème, je pense que vous avez la solution.
Voici le code:

Code :
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
  5. <title>WAO :: Generator :: Index</title>
  6. <link rel="stylesheet" href="template/default/default.css" type="text/css" />
  7. </head>
  8. <frameset rows="3%,*" border="0">
  9. <frame name="topframe" src="gtop.php" scrolling="no" marginwidth="0" marginheight="0" noresize="noresize" frameborder="0" />
  10. <frameset cols="18%,*">
  11.  <frame name="menu" src="gmenu.php" marginwidth="0" marginheight="0" frameborder="0" />
  12.  <frame name="main" src="gmain.php" scrolling="yes" marginwidth="0" marginheight="0" frameborder="0" />
  13. </frameset>
  14. <noframes>
  15. <body>
  16. </body>
  17. </noframes>
  18. </frameset>
  19. </html>


 
il se trouve que l'attribut border="0" de la balise <frameset> n'est pas validé par le validator du w3. Donc du coup, si on enlève le border="0", sous IE, on a de belles bordures blanches! Bref rien de bien joli.
 
Quelqu'un a-t-il une solution xhtml 1.0 validée pour virer ces bordures de $ù***ù  
 
Merci d'avance! :)

mood
Publicité
Posté le 17-11-2004 à 10:53:28  profilanswer
 

n°900439
Profil sup​primé
Posté le 17-11-2004 à 10:56:03  answer
 

frame { border:none }
 
??

n°900451
bob007
Posté le 17-11-2004 à 11:07:05  profilanswer
 

nan, marche pas! hélas

n°900520
masklinn
í dag viðrar vel til loftárása
Posté le 17-11-2004 à 11:46:54  profilanswer
 

Code :
  1. <!ATTLIST FRAME
  2.   %coreattrs;                          -- id, class, style, title --
  3.   longdesc    %URI;          #IMPLIED  -- link to long description
  4.                                           (complements title) --
  5.   name        CDATA          #IMPLIED  -- name of frame for targetting --
  6.   src         %URI;          #IMPLIED  -- source of frame content --
  7.   frameborder (1|0)          1         -- request frame borders? --
  8.   marginwidth %Pixels;       #IMPLIED  -- margin widths in pixels --
  9.   marginheight %Pixels;      #IMPLIED  -- margin height in pixels --
  10.   noresize    (noresize)     #IMPLIED  -- allow users to resize frames? --
  11.   scrolling   (yes|no|autoauto      -- scrollbar or none --
  12.   >
  13. ]]>


Citation :

frameborder = 1|0 [CN]
    This attribute provides the user agent with information about the frame border. Possible values:
 

  • 1: This value tells the user agent to draw a separator between this frame and every adjoining frame. This is the default value.
  • 0: This value tells the user agent not to draw a separator between this frame and every adjoining frame. Note that separators may be drawn next to this frame nonetheless if specified by other frames.


Suffit de llire les docs [:loom the gloom]


---------------
Stick a parrot in a Call of Duty lobby, and you're gonna get a racist parrot. — Cody
n°900546
bob007
Posté le 17-11-2004 à 12:24:13  profilanswer
 

oui et envoi ca sur le validator du w3 et tu verras s'il suffit de lire la doc! :-/

n°900549
bob007
Posté le 17-11-2004 à 12:25:36  profilanswer
 

et puis ton code c'est pour <frame>, je parle de frameset.  
COmme tu peux le voir si tu tests le code que j'ai filé, les bordures s'affichent!
 
Mais merci beaucoup de la recherche, c'est gentil! :)

n°900572
masklinn
í dag viðrar vel til loftárása
Posté le 17-11-2004 à 13:05:33  profilanswer
 

Après des tests et des recherches plus précises:

Citation :

12.9. How do I remove the border around frames?
 
Removing the border around frames involves both not drawing the frame borders and eliminating the space between the frames. The two major frames-capable browsers use different proprietary attributes to achieve this.
 
Netscape recognizes the BORDER attribute on FRAMESET. It can be set to 0, in which case the border will not be shown, and the spacing will be set to zero.
 
Microsoft Internet Explorer recognizes the FRAMEBORDER and FRAMESPACING attributes on FRAMESET, but in some versions also on FRAME for individual frames. Both attributes must be set to 0.
 
So, the most widely supported way to display borderless frames is <FRAMESET ... BORDER=0 FRAMEBORDER=0 FRAMESPACING=0>.
 
Note that these attributes are proprietary and not part of the HTML 4 specifications. Also, removing the border around a frame makes it impossible to resize it, as this border is also used in most GUIs to change the size of the window.


Le W3C n'offre aucun moyen de retirer l'espace entre deux frames (géré au nivau du frameset) de manière, entre autres, à toujours permettre à l'utilisateur de resizer ses frames si besoin.
 
On a side note, les frames, c'est mal (surtout si c'est pour avoir non pas une mais 2 barres de scrolling vertical, comme sur ton site)


Message édité par masklinn le 17-11-2004 à 13:07:11

---------------
Stick a parrot in a Call of Duty lobby, and you're gonna get a racist parrot. — Cody
n°900574
bob007
Posté le 17-11-2004 à 13:07:15  profilanswer
 

voila, c'est bien ce que je pensais! Enfin le site a été fait en frame, je ne me vois pas tout refaire! :(
 
Merci beaucoup des infos!


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation
  HTML/CSS

  frameset border="0" & xhtml 1.0 validation

 

Sujets relatifs
[HTML/CSS] quelle alternative aux cadres (frameset) ?xHTML
[Avis] Mon 1er site XHTML / CSSXHTML 1.1 > Impossible de faire (a name="truc")
Problème de validation XHTML 1.1 avec un tableau[FRAMESET] encore une bonne !
Liens vers un frameset (javascript needed?)Validation w3c et cookies
Plus de sujets relatifs à : frameset border="0" & xhtml 1.0 validation


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR