Pagina 1 di 2 1 2 ultimoultimo
Visualizzazione dei risultati da 1 a 10 su 14
  1. #1

    [Validator W3C] e attributo BORDER nei <frameset>

    salve a tutti,

    ho il seguente problema:

    "giocando" con l'HTML mi sono accorto che l'attributo BORDER
    relativo ai frameset, non viene (più) validato
    dallo standard W3C per i frameset (--> HTML 4.01)

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
    "http://www.w3.org/TR/html4/frameset.dtd">


    Avrei la necessità di inserirlo fra gli attributi del frameset
    (per rendere il bordo uguale a zero)
    o di raggirarlo in qualche modo (se possibile)

    p.s. ho già provato ad inserirlo nei CSS e poi richiamarlo
    tramite l'attributo CLASS, ma non funge nemmeno così!!!

    ho anche controllato (nella sez. relativa ai frameset per l'html 4.01)
    sul sito del W3C, ma non ho trovato nulla che facesse al caso mio.

    HELP ME e grazie
    ...Terrible warlords, good warlords, and an english song

  2. #2
    frameborder=no
    powered by slackware 9.1 & WindowsXP
    Programmazione: C/C++, Java, Visual Basic
    Web: HTML, CSS, PHP, JavaScript
    sito web www.softwaremerelli.it

  3. #3
    già che ci sono...

    a sinistra c'è la pagina ottenuta omettendo l'attributo border (quindi validato dallo standard w3c)

    a destra c'è la pagina ottenuta inserendo l'attributo border (settato a 0) (come lo vorrei io, ma non validato dal w3c )

    ................

    Come posso risolvere???
    ...Terrible warlords, good warlords, and an english song

  4. #4
    @rx7:

    grazie per aver risposto, ma...
    purtroppo come dici tu non funge.

    il problema (appena appreso dal sito del W3C)
    è che gli attributi: border, frameborder, framespacing, ecc... non sono più riconosciuti dallo standard HTML 4.01:
    [fonte]
    http://www.w3.org/TR/html401/present/frames.html

    Ora, come raggirare il tutto???

    1) Chiedo aiuto ( quello che sto già facendo )

    2) me ne fre** del validator e inserisco lo stesso l'attributo:
    border="0"... ma non mi sembra la soluzione più elegante...
    ...Terrible warlords, good warlords, and an english song

  5. #5
    Utente di HTML.it L'avatar di Francis87
    Registrato dal
    Jun 2003
    Messaggi
    5,970
    il border non puoi gestirlo con i css?

    frame { border: 1px solid #ffffff; }
    Heaven's closed. Hell sold out.

    Linux 2.6.26-2-amd64
    Debian squeeze

  6. #6
    non funge...

    ho provato nei seguenti modi:

    1)
    ...
    <style type="text/css">
    frameset { border: 0px none #000000; }
    </style>

    </head>

    <frameset rows="50, 465, *">
    ...

    Risultato: pagina visualizzata a sinistra (nel post sopra)



    2)
    senza css (alla vecchia maniera)
    ...
    <frameset rows="50, 465, *" border="0">
    ...

    Risultato: pagina visualizzata a destra :metallica (nel post sopra)
    ma... non validata a causa dell'attributo border...







    p.s. inizio a pensare che il problema sia la "struttura" della pagina index.html (contenente diversi frameset, forse mal strutturati)
    Resta il fatto, che se utilizzo l'attributo border="0"
    ottengo il risultato che voglio... ma al w3c non piace
    ...Terrible warlords, good warlords, and an english song

  7. #7
    Utente di HTML.it L'avatar di Francis87
    Registrato dal
    Jun 2003
    Messaggi
    5,970
    frame { border: 0 }
    Heaven's closed. Hell sold out.

    Linux 2.6.26-2-amd64
    Debian squeeze

  8. #8
    mi dispiace!!!

    abuso per l'ultima volta della tua (vostra) pazienza...
    posto il codice della pagina (TEST) index.html che chiama i frames:
    codice:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
    
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <meta name="generator" content="Notepad">
    
    <title>frameset validator test</title>
    
    <style type="text/css">
    
        frameset { border: 0 }
    
    </style>
    
    </head>
    
    
    
    <frameset rows="50, 465, *"> 
    
    
    
        <frameset cols="*, 94, 500, 94, *">
    
            <frame src="./test.html" name="" noresize scrolling="no" frameborder="0" marginwidth="0" marginheight="0">
            <frame src="./test.html" name="" noresize scrolling="no" frameborder="0" marginwidth="0" marginheight="0">
            <frame src="./test.html" name="" noresize scrolling="no" frameborder="0" marginwidth="0" marginheight="0">
            <frame src="./test.html" name="" noresize scrolling="no" frameborder="0" marginwidth="0" marginheight="0">
            <frame src="./test.html" name="" noresize scrolling="no" frameborder="0" marginwidth="0" marginheight="0">
    
        </frameset> 
    
    
    
        <frameset cols="*, 94, 500, 94, *">
    
            <frame src="./test.html" name="" noresize scrolling="no" frameborder="0" marginwidth="0" marginheight="0">
            <frame src="./test.html" name="" noresize scrolling="no" frameborder="0" marginwidth="0" marginheight="0">
    
            <frameset rows="94, 348, 20">
    
                <frame src="./test.html" name="" noresize scrolling="no" frameborder="0" marginwidth="0" marginheight="0">
                <frame src="./test.html" name="" noresize scrolling="no" frameborder="0" marginwidth="0" marginheight="0">
                <frame src="./test.html" name="" noresize scrolling="no" frameborder="0" marginwidth="0" marginheight="0">
    
            </frameset>
    
            <frame src="./test.html" name="" noresize scrolling="no" frameborder="0" marginwidth="0" marginheight="0">
            <frame src="./test.html" name="" noresize scrolling="no" frameborder="0" marginwidth="0" marginheight="0">       
    
        </frameset>
    
    
    
        <frameset cols="*, 94, 500, 94, *">
    
            <frame src="./test.html" name="" noresize scrolling="no" frameborder="0" marginwidth="0" marginheight="0">
            <frame src="./test.html" name="" noresize scrolling="no" frameborder="0" marginwidth="0" marginheight="0">
            <frame src="./test.html" name="" noresize scrolling="no" frameborder="0" marginwidth="0" marginheight="0">
            <frame src="./test.html" name="" noresize scrolling="no" frameborder="0" marginwidth="0" marginheight="0">
            <frame src="./test.html" name="" noresize scrolling="no" frameborder="0" marginwidth="0" marginheight="0">
    
        </frameset>
    
    
    
    </frameset>
    
    
    
    </html>
    codice dei frame (TEST) test.html
    codice:
    <html><head></head><body bgcolor=#000000></body></html>


    Se avete tempo e pazienza, provate questo codice...

    Il risultato che vorrei ottenere dal test,
    è una pagina (composta da N frames)TOTALMENTE nera.
    (senza spazi bianchi)


    Cosa che con il codice postato sopra non accade...
    (a meno che nel primo frameset non inserisca l'attributo BORDER="0">)

    Grazie comunque
    ...Terrible warlords, good warlords, and an english song

  9. #9
    Ciao!

    Due tentativi:

    1) invece di border=0 inserisci style="border:none;"

    oppure

    2) nel css crei una classe tipo .nobrd{border:none;} da associare poi al frameset... (non so, visto che hai già provato e non andava)

    fai sapere...

    ciao

  10. #10
    ciao

    purtroppo non va!!!
    ...Terrible warlords, good warlords, and an english song

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2026 vBulletin Solutions, Inc. All rights reserved.