• User

    Centrare sito internet

    Salve a tutti, volevo un aiuto sul seguente codice:
    come mai il mio sito si visualizza a sinistra.

    [html]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "(nonl'ho messo perche non potevo postare il msg altrimenti)/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="(nonl'ho messo perche non potevo postare il msg altrimenti)/1999/xhtml" lang="it" xml:lang="it">
    <head>
    <title>Jackless Design - House of Pixel</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <body bgcolor="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" scroll="no">
    </head>
    <body>
    <div id="flashContent">
    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="980" height="750" id="25903" align="middle">
    <param name="movie" value="25903.swf" />
    <param name="quality" value="high" />
    <param name="bgcolor" value="#010101" />
    <param name="play" value="true" />
    <param name="loop" value="true" />
    <param name="wmode" value="window" />
    <param name="scale" value="showall" />
    <param name="menu" value="true" />
    <param name="devicefont" value="false" />
    <param name="salign" value="" />
    <param name="allowScriptAccess" value="sameDomain" />
    <!--[if !IE]>-->
    <object type="application/x-shockwave-flash" data="25903.swf" width="980" height="750">
    <param name="movie" value="25903.swf" />
    <param name="quality" value="high" />
    <param name="bgcolor" value="#010101" />
    <param name="play" value="true" />
    <param name="loop" value="true" />
    <param name="wmode" value="window" />
    <param name="scale" value="showall" />
    <param name="menu" value="true" />
    <param name="devicefont" value="false" />
    <param name="salign" value="" />
    <param name="allowScriptAccess" value="sameDomain" />
    <!--<![endif]-->
    <a href="sitoadobe/go/getflash">
    <img src="sitoadobe/images/shared/download_buttons/get_flash_player.gif" alt="Scarica Adobe Flash Player" />
    </a>
    <!--[if !IE]>-->
    </object>
    <!--<![endif]-->
    </object>
    </div>
    </body>
    </html>[/html]


  • User

    Il sito mi si visualizza in alto a sinistra


  • User

    tra laltro noto ora che, se clicco il bottone del fullscreen, non mi si mette.
    (cosa che quando lavoravo in preview sul pc mi si metteva)


  • User

    grazie per le tante risposte ! 🙂


  • User

    Crea un div contenitore con il contenuto del sito all'interno e centralo mettendo i margini destra e sinistra su auto, dovrebbe andare.

    Cioè:
    [html]<div id="content">
    <body>
    <div id="flashContent">
    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="980" height="750" id="25903" align="middle">
    <param name="movie" value="25903.swf" />
    <param name="quality" value="high" />
    <param name="bgcolor" value="#010101" />
    <param name="play" value="true" />
    <param name="loop" value="true" />
    <param name="wmode" value="window" />
    <param name="scale" value="showall" />
    <param name="menu" value="true" />
    <param name="devicefont" value="false" />
    <param name="salign" value="" />
    <param name="allowScriptAccess" value="sameDomain" />
    <!--[if !IE]>-->
    <object type="application/x-shockwave-flash" data="25903.swf" width="980" height="750">
    <param name="movie" value="25903.swf" />
    <param name="quality" value="high" />
    <param name="bgcolor" value="#010101" />
    <param name="play" value="true" />
    <param name="loop" value="true" />
    <param name="wmode" value="window" />
    <param name="scale" value="showall" />
    <param name="menu" value="true" />
    <param name="devicefont" value="false" />
    <param name="salign" value="" />
    <param name="allowScriptAccess" value="sameDomain" />
    <!--<![endif]-->
    <a href="sitoadobe/go/getflash">
    <img src="sitoadobe/images/shared/download_buttons/get_flash_player.gif" alt="Scarica Adobe Flash Player" />
    </a>
    <!--[if !IE]>-->
    </object>
    <!--<![endif]-->
    </object>
    </div>
    </body>
    </div>[/html]E nel css metti:
    [html]#content{
    margin-left: auto;
    margin-right: auto;
    }[/html]


  • User

    Grazie infinite 🙂
    sei stato gentilissimo


  • User

    Di nulla,
    buon lavoro 😉