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

Discussione: all that boxes

  1. #1

    all that boxes

    Di sotto il codice per un box fluido con background...purtroppo ho notato che si vede male...nel senso che il quadratino in basso a destra risulta leggermente spostato e la cosa si aggrava se all'interno del box ci sono dei float andando a spostarsi al centro
    deve esserci un errore nel codice ma proprio non lo trovo...e si che ne ho fatti parecchi altri cosi
    codice:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="it">
    <head>
    <title>...</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <style type="text/css">
    #cctc{background:url(images/layout/boxes/cc_tc.gif) top repeat-x}
    #ccmr{background:url(images/layout/boxes/cc_mr.gif) right repeat-y}
    #ccbc{background:url(images/layout/boxes/cc_bc.gif) bottom repeat-x}
    #ccml{background:url(images/layout/boxes/cc_ml.gif) left repeat-y}
    #cctl{background:url(images/layout/boxes/cc_tl.gif) top left no-repeat}
    #cctr{background:url(images/layout/boxes/cc_tr.gif) top right no-repeat}
    #ccbl{background:url(images/layout/boxes/cc_bl.gif) bottom left no-repeat}
    #ccbr{background:url(images/layout/boxes/cc_br.gif) bottom right no-repeat;padding:15px 30px 30px 15px}
    </style>
    </head>
    
    <body>
    	<div id="cctc"><div id="ccmr"><div id="ccbc"><div id="ccml"><div id="cctl"><div id="cctr"><div id="ccbl"><div id="ccbr">
    	<div>
    	dfsdghsdhsd h sghs  stmdh sdgh sd h sd h sh  sdhsetyrtsuwtuwr uy rh wr u wry hryuwry wr rwyt h
    	dfsdghsdhsd h sghs  stmdh sdgh sd h sd h sh  sdhsetyrtsuwtuwr uy rh wr u wry hryuwry wr rwyt h
    	dfsdghsdhsd h sghs  stmdh sdgh sd h sd h sh  sdhsetyrtsuwtuwr uy rh wr u wry hryuwry wr rwyt h
    	dfsdghsdhsd h sghs  stmdh sdgh sd h sd h sh  sdhsetyrtsuwtuwr uy rh wr u wry hryuwry wr rwyt h
    	dfsdghsdhsd h sghs  stmdh sdgh sd h sd h sh  sdhsetyrtsuwtuwr uy rh wr u wry hryuwry wr rwyt h
    	dfsdghsdhsd h sghs  stmdh sdgh sd h sd h sh  sdhsetyrtsuwtuwr uy rh wr u wry hryuwry wr rwyt h
    	dfsdghsdhsd h sghs  stmdh sdgh sd h sd h sh  sdhsetyrtsuwtuwr uy rh wr u wry hryuwry wr rwyt h
    	dfsdghsdhsd h sghs  stmdh sdgh sd h sd h sh  sdhsetyrtsuwtuwr uy rh wr u wry hryuwry wr rwyt h
    	dfsdghsdhsd h sghs  stmdh sdgh sd h sd h sh  sdhsetyrtsuwtuwr uy rh wr u wry hryuwry wr rwyt h
    	dfsdghsdhsd h sghs  stmdh sdgh sd h sd h sh  sdhsetyrtsuwtuwr uy rh wr u wry hryuwry wr rwyt h
    	dfsdghsdhsd h sghs  stmdh sdgh sd h sd h sh  sdhsetyrtsuwtuwr uy rh wr u wry hryuwry wr rwyt h
    	dfsdghsdhsd h sghs  stmdh sdgh sd h sd h sh  sdhsetyrtsuwtuwr uy rh wr u wry hryuwry wr rwyt h
    	dfsdghsdhsd h sghs  stmdh sdgh sd h sd h sh  sdhsetyrtsuwtuwr uy rh wr u wry hryuwry wr rwyt h
    	dfsdghsdhsd h sghs  stmdh sdgh sd h sd h sh  sdhsetyrtsuwtuwr uy rh wr u wry hryuwry wr rwyt h
    	dfsdghsdhsd h sghs  stmdh sdgh sd h sd h sh  sdhsetyrtsuwtuwr uy rh wr u wry hryuwry wr rwyt h
    	dfsdghsdhsd h sghs  stmdh sdgh sd h sd h sh  sdhsetyrtsuwtuwr uy rh wr u wry hryuwry wr rwyt h
    	dfsdghsdhsd h sghs  stmdh sdgh sd h sd h sh  sdhsetyrtsuwtuwr uy rh wr u wry hryuwry wr rwyt h
    	dfsdghsdhsd h sghs  stmdh sdgh sd h sd h sh  sdhsetyrtsuwtuwr uy rh wr u wry hryuwry wr rwyt h
    	dfsdghsdhsd h sghs  stmdh sdgh sd h sd h sh  sdhsetyrtsuwtuwr uy rh wr u wry hryuwry wr rwyt h
    	dfsdghsdhsd h sghs  stmdh sdgh sd h sd h sh  sdhsetyrtsuwtuwr uy rh wr u wry hryuwry wr rwyt h
    	dfsdghsdhsd h sghs  stmdh sdgh sd h sd h sh  sdhsetyrtsuwtuwr uy rh wr u wry hryuwry wr rwyt h
    	dfsdghsdhsd h sghs  stmdh sdgh sd h sd h sh  sdhsetyrtsuwtuwr uy rh wr u wry hryuwry wr rwyt h
    	dfsdghsdhsd h sghs  stmdh sdgh sd h sd h sh  sdhsetyrtsuwtuwr uy rh wr u wry hryuwry wr rwyt h
    	dfsdghsdhsd h sghs  stmdh sdgh sd h sd h sh  sdhsetyrtsuwtuwr uy rh wr u wry hryuwry wr rwyt h
    	dfsdghsdhsd h sghs  stmdh sdgh sd h sd h sh  sdhsetyrtsuwtuwr uy rh wr u wry hryuwry wr rwyt h
    	dfsdghsdhsd h sghs  stmdh sdgh sd h sd h sh  sdhsetyrtsuwtuwr uy rh wr u wry hryuwry wr rwyt h
    	dfsdghsdhsd h sghs  stmdh sdgh sd h sd h sh  sdhsetyrtsuwtuwr uy rh wr u wry hryuwry wr rwyt h
    	dfsdghsdhsd h sghs  stmdh sdgh sd h sd h sh  sdhsetyrtsuwtuwr uy rh wr u wry hryuwry wr rwyt h
    	</div>
    	</div></div></div></div></div></div></div></div>
    </body>
    </html>

  2. #2
    ^^^^^^^^^^
    ----------
    :rollo:

  3. #3

    Re: all that boxes

    Originariamente inviato da Quinn
    ...deve esserci un errore nel codice ma proprio non lo trovo...
    codice:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="it">
    <head>
    <title>...</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    mi sono fermato al primo che ho visto.
    usi un DTD XHTML1.1, e servi la pagina come text/html.
    Qualunque imbecille può inventare e imporre tasse. (Maffeo Pantaleoni)

  4. #4
    il validatore non da errore e comunque non mi sembra rilevante, si tratta solo di una pagina di esempio dove lo metto io è molto piu complesso...adare un pochino avanti no eh?

  5. #5

  6. #6
    nessuno mi aiuta?

  7. #7
    Utente di HTML.it
    Registrato dal
    Sep 2001
    Messaggi
    21,188
    Mi pare che sei partito con il piede sbagliato.

    NON e` vero che nessuno ti aiuta, sei tu che snobbi chi ti aiuta.

    Mi pare comunque che stai usando una tecnologia che non conosci (e che francamente pochi qui dentro conoscono), la usi secondo i criteri di una tecnologia diversa, e pretendi di risolvere i problemi.

    Tieni presente che (almeno fino a qualche mese fa) il validatore non e` ancora tarato sul linguaggio XHTML 1.1, per cui qualche errore gli sfugge.
    Non so neppure dirti se l'errore e` nella DTD linkata o nell'uso che ne fa il validatore.


    Altra cosa di cui devi tener conto: il codice postato e` forse machine-friendly, ma sicuramente non e` human-friendly. Ci sono troppe cose simili, per cui e` difficile trovare l'errore.

    Non e` che hai una pagina da poter linkare, in modo da riprodurre l'errore?
    Nuova politica di maggiore severita` sui titoli delle discussioni: (ri)leggete il regolamento
    No domande tecniche in messaggi privati

  8. #8
    Mi scuso con webus che ho effettivamente trattato un po male poichè ho ritenuto la risposta non inerente alla domanda, che però era comunque posta male e frettolosamente.
    Detto ciò ho messo online due pagine d'esempio:

    http://soundandfreedom.com/test/

    il risultato di impaginazione finale o quasi, che per il momento non tiene conto dei sopracitati errori inerenti la selezione del doctype

    http://soundandfreedom.com/test/test.htm

    un codice semplificato che evidenzia un errore di visualizzazione nell'angolo del basso a destra rendendolo sfasato dal contesto sia con Firefox che con IE

    http://soundandfreedom.com/

    posso far notare tramite il sito madre che il codice, identico nella sostanza e che differisce di poco nella forma, è utilizzato con successo in diversi spazi (quadranti laterali e box centrale)

    Faccio notare inoltre che, se nella versione semplificata l'errore è minimo, nella versione completa l'errore si accompagna su IE ad un completo sconvolgimento della parte inferiore del box

    Concludo con 2 aspetti che mi hanno incuriosito per quanto concerne la soluzione del problema IE:

    1) il problema potrebbe essere relativo solo a quest'impaginazione e non presentarsi nel sito madre poichè tale sito fa uso di questi box in maniera slegata (per intenderci non sono l'uno dentro l'altro)

    2)si tratta di un erronea gestione dei float e dei conseguenti clear

    attendo pareri illuminanti
    grazie a tutti e mi scuso ancora per la forma scialba che ha portato ad incomprensioni e fraintendimenti sulla natura del problema

    ps: purtroppo il codice risulta complesso da leggere e vorrei citare la fonte primaria sicuramente più chiara, purtroppo non sono riuscito a reperirla, per una più facile comprensione si possono seguire questi due concetti chiave:
    1) si tratta di una serie di div l'uno dentro l'altro a cui vengono applicati gli angoli del dai cui ne consegue che:
    2)
    cctc = Contenitore Cartaceo Top Center
    ccmr = Contenitore Cartaceo Middle Right
    e via discorrendo tenendo a mente come legenda:
    r=right
    c=center
    l=left

    t=top
    m=middle
    b=bottom

  9. #9

  10. #10

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 © 2025 vBulletin Solutions, Inc. All rights reserved.