IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Mise en page CSS Discussion :

CSS pour <object>


Sujet :

CSS

  1. #1
    Nouveau membre du Club
    Profil pro
    Inscrit en
    Avril 2007
    Messages
    43
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Avril 2007
    Messages : 43
    Points : 39
    Points
    39
    Par défaut CSS pour <object>
    Bonjour,
    dans une page html, je cherche à inclure du code html avec une balise <object> mais la css déclarée dans la page principale n'est pas prise en compte pour les balises dans l'object.

    Code html : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
    <html>
    <head>
     
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <link rel="stylesheet" href="siteAnUbIs.css">
    <link rel="stylesheet" href="starrySky.css">
    <!--script src="js/jquery-1.10.2.min.js"></script-->
    <script src="js/starrySky.js"></script>
     
    <title>object test</title>
    </head>
    <body onload="starrySky0();">
     
    	<div id="top">
    	</div>
     
    	<div id="left">
    		<object data="menuNewMenuObj.htm" type="text/html" width="132" height="470px"></object>
    	</div>
     
    	<div id="right">
    		<!--object data="anubisHomeObj.htm" type="text/xml" width="100%" height="100%" frameborder="0"></object-->
    		<div id="starry-sky">
    			<div id="starry-sky-1"></div>
    			<!--div id="starry-sky-2"></div-->
    			<p align="center" valign="middle" style="position:relative; z-index:1; top:100px;">
    				<img class="imageHome2" src="images/wpeD45.gif" height="55%" border="0">
    			</p>
    		</div>
    	</div>
     
    </body>
    </html>

    menuNewMenuObj.htm:
    Code html : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    <table>
    	<tr>
    		<td class="cake">
    			<a href="anubisHome.htm" target="contenu" class="menuButton" > Home </a>
    		</td>
    	</tr>
    	<tr>
    		<td class="fake">
    			<a href="SH_server.htm" target="contenu" class="menuButton"  title="Updated 15th April 2014"><b> Server IP List </b></font></a>
    		</td>
    	</tr>
    	<tr>
    		<td class="fake">
    			<a href="http://z8.invisionfree.com/AnUbIs_Forums/index.php?act=site" target="contenu" class="menuButton" ><b> NEWS </b></font></a>
    		</td>
    	</tr>
    	<tr>
    		<td class="fake">
    			<a href="maps_download.htm" target="contenu" class="menuButton" title="Updated 9th October 2013"> Custom Maps </a>
    		</td>
    	</tr>
    	<tr>
    		<td class="fake">
    			<a href="downloads.htm" target="contenu" class="menuButton" title="Updated 31st May 2014"> DownLoads </a>
    		</td>
    	</tr>
    	<tr>
    		<td class="fake">
    			<a href="anubisArmySH.htm" target="contenu" class="menuButton" title="Updated 7th April 2014"> =:AnUbIs:= Army </a>
    		</td>
    	</tr>
    	<tr>
    		<td  class="fake">
    			<a href="http://s8.invisionfree.com/AnUbIs_Forums/index.php" target="contenu" class="menuButton forum" > Forums </a>
    		</td>
    	</tr>
    	<tr>
    		<td class="fake">
    			<a href="serverstate.htm" target="contenu" class="menuButton" > Server Stats </a>
    		</td>	
    	</tr>
    	<!--tr>
    		<td class="fake">
    			<a href="shoutbox.htm" target="contenu" class="menuButton" > Shoutbox </a>
    		</td>
    	</tr-->
    	<tr>
    		<td class="fake">
    			<a href="menatwork.htm" target="contenu" class="menuButton" > Shoutbox </a>
    		</td>
    	</tr>
    	<tr>
    		<td class="fake">
    			<a href="latestowned.htm" target="contenu" class="menuButton" > Matches </a>
    		</td>
    	</tr>
    	<tr>
    		<td class="fake">
    			<a href="ingameVideos.htm" target="contenu" class="menuButton" > Videos </a>
    		</td>
    	</tr>
    	<tr>
    		<td class="fake">
    			<a href="DMFlags.htm" target="contenu" class="menuButton" > DMFlags Machine </a>
    		</td>	
    	</tr>
    	<tr>
    		<td class="fake">
    			<a href="weapons.htm" target="contenu" class="menuButton" > MoH Weapons </a>
    		</td>
    	</tr>
    	<tr>
    		<td class="fake">
    			<a href="http://www.novaplanet.com/radionova/player/" target="contenu" class="menuButton" > Radio Nova </a>
    		</td>
    	</tr>
    	<tr>
    		<td class="fake">
    			<a href="photos.htm" target="contenu" class="menuButton" > WWII Pictures </a>
    		</td>
    	</tr>
    	<tr>
    		<td class="fake">
    			<a href="tutorials.htm" target="contenu" class="menuButton" > Tutorials </a>
    		</td>
    	</tr>
    	<tr>
    		<td class="fake">
    			<a href="http://www.modtheater.com/forum/forumdisplay.php?f=16" target="contenu" class="menuButton" > MoH Scripting </a>
    		</td>
    	</tr>
    	<tr>
    		<td class="fake">
    			<a href="whosAnubis.htm" target="contenu" class="menuButton" > =:AnUbIs:= </a>
    		</td>
    	</tr>
     
    </table>

    siteAnUbIs.css:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    /* FIX IE Scrollbars bug - Leave this in! */
    html { overflow-x: auto; scrollbar-face-color: #000000 ;
    	scrollbar-arrow-color: #827a4d;
    	scrollbar-track-color: #000000;
    	scrollbar-shadow-color: #997900;
    	scrollbar-highlight-color: #9C0000;
    	scrollbar-3dlight-color: #393939;
    	scrollbar-darkshadow-Color: #777711;
    }
     
    body {
      	//color: #DCCE81;
    	background-color: #000000; 
      	font:10pt "Trebuchet MS", verdana, geneva, lucida, "lucida grande", arial, helvetica, sans-serif;
    }
     
    .tdLast{
    	border-right-style:solid;
    }
     
    a.menuButtonImg {
    	border:solid 1px #424229;
    	display:block;
    	background:#000000;
    	color:#A49C6F;
    	height:20px;
    	width:118px;
    	text-decoration:none;
    	line-height:19px;
    	text-align:center;
    }
     
     
    a.menuButton {
    	font-size:90%;
    	border:solid 1px #424229;
    	background:#000000;
    	display:block;
    	color:#968659;
    	height:20px;
    	width:118px;
    	text-decoration:none;
    	line-height:19px;
    	text-align:center;
    }
     
    a:hover.menuButtonImg{
    	color:red;
    	border:solid 1px #EFEFB1;
    }
     
    a:hover.menuButton {
    	color:#DCCE81;
    	border:solid 1px #DCCE81;
    }
     
    a:link.liens{
    	text-decoration:none;
    	color:#A49C6F;
    }
     
    a:visited.liens{
    	text-decoration:none;
    	color:#DCCE81;
    }
     
    a:active.liens{
    	text-decoration:underline;
    	color:red;
    }
     
    a:hover.liens{
    	text-decoration:underline;
    	color:#EFEFB1;
    }
     
    a:link.titre{
    	text-decoration:underline;
    	font-weight:bold;
    	color:#A49C6F;
    }
     
    a:visited.titre{
    	text-decoration:underline;
    	font-weight:bold;
    	color:#DCCE81;
    }
     
    a:active.titre{
    	text-decoration:underline;
    	font-weight:bold;
    	color:red;
    }
     
    a:hover.titre{
    	text-decoration:underline;
    	font-weight:bold;
    	color:#EFEFB1;
    }
     
    a:active.boutonDL1936{
    	color:green;
    }
     
    a:hover.boutonDL1936{
    	color:yellow;
    }
     
    a.boutonDL1936{
    	color:black;
    }
     
    a.text:link {
    	text-decoration:none;
    	color:#F6FFD7;
    }
     
    a.text:visited {
    	text-decoration:none;
    	color:#DCCE81;
    }
     
    a.text:active {
    	text-decoration:underline;
    	color:#BB050E;
    }
    a.text:hover {
    	text-decoration:underline;
    	color:#BB050E;
    }
     
     
     
    a.mapsDownloadPicLinkBorder:link img {
    	border-width : 1px;
     	border-color : #DCCE81; 
    }	
     
    a.mapsDownloadPicLinkBorder:visited img {
    	border-width : 1px;
     	border-color : #74664A; 
    }
     
    a.mapsDownloadPicLinkBorder:hover img {
    	border-width : 1px;
     	border-color : #F33B1D; 
    }
     
    table {
    	font-size:10pt;
    }
     
    h1 {
      	font:16pt "Trebuchet MS", verdana, geneva, lucida, "lucida grande", arial, helvetica, sans-serif; font-weight: bold; margin-top: 0px; margin-bottom: 0px;
     
    }
    h2 {
      	font:14pt "Trebuchet MS", verdana, geneva, lucida, "lucida grande", arial, helvetica, sans-serif;
    }
    h3 {
      	font:13pt "Trebuchet MS", verdana, geneva, lucida, "lucida grande", arial, helvetica, sans-serif;
    }
    h4 {
      	font:12pt "Trebuchet MS", verdana, geneva, lucida, "lucida grande", arial, helvetica, sans-serif;
    }
    h5 {
      	font:11pt "Trebuchet MS", verdana, geneva, lucida, "lucida grande", arial, helvetica, sans-serif;
    }
    h6 {
      	font:11pt "Trebuchet MS", verdana, geneva, lucida, "lucida grande", arial, helvetica, sans-serif;
    }
     
     
    hr{
    	color: #ffffff;
    	background-color: #DCCE81;
    	height: 1px;
    	border: 0;}
     
    hr.blood{
    	color: #2F0000;
    	background-color: #DBCA67;  //EFCE81;  //424229; //#2F0000 ;
    	height: 1px;
    	border: 0;
     
    }
     
    .imageHome{
            position: relative;
            left: -48px;
    }
     
    .imageHome2{
            position: relative;
            left: -60px;
            top: 5%;
    }
     
    trBorder0{
    	border-style: solid; 
     	border-color : #000000; }	
     
    tdBorder0{
    	border-style: solid; 
     	border-color : #000000; }
     
    .menuButtonImg{
    	color:red;
    	border:solid 1px #504600;
    }

  2. #2
    Modérateur

    Avatar de NoSmoking
    Homme Profil pro
    Inscrit en
    Janvier 2011
    Messages
    16 959
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Isère (Rhône Alpes)

    Informations forums :
    Inscription : Janvier 2011
    Messages : 16 959
    Points : 44 122
    Points
    44 122
    Par défaut
    Bonjour,
    il te faut mettre le CSS dans le code de ton <OBJECT>.

  3. #3
    Nouveau membre du Club
    Profil pro
    Inscrit en
    Avril 2007
    Messages
    43
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Avril 2007
    Messages : 43
    Points : 39
    Points
    39
    Par défaut
    Merci NoSmoking, c'est ce que je ne voulais pas faire bien sûr Au moins, je peux arrêter de chercher.

  4. #4
    Modérateur

    Avatar de NoSmoking
    Homme Profil pro
    Inscrit en
    Janvier 2011
    Messages
    16 959
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Isère (Rhône Alpes)

    Informations forums :
    Inscription : Janvier 2011
    Messages : 16 959
    Points : 44 122
    Points
    44 122
    Par défaut
    Au moins, je peux arrêter de chercher.
    pas sûr, si tu tiens à tout prix à conserver le style dans la page principale tu peux également charger ton document dans une DIV et ce en Ajax après chargement de la page.

Discussions similaires

  1. css pour la balise object
    Par logiciel_const dans le forum Mise en page CSS
    Réponses: 20
    Dernier message: 06/08/2008, 16h53
  2. plusieurs css pour une page
    Par difficiledetrouver1pseudo dans le forum Mise en page CSS
    Réponses: 6
    Dernier message: 20/02/2006, 21h30
  3. [débutante]utiliser les classes css pour surligner des liens
    Par Mitaka dans le forum Général JavaScript
    Réponses: 18
    Dernier message: 06/01/2006, 09h37
  4. [CSS]à propos d'un css pour un site
    Par henri68 dans le forum Mise en page CSS
    Réponses: 10
    Dernier message: 26/12/2005, 23h16

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo