bonjour

je débute en css et j ai mon entête avec une image logo en float:left ,2 lignes de texte et j aimerai positionner une autre image à droite de mon texte.

en fait quand j insère une image, elle va au dessous de la première.

Peut être un float:right ? mais j ai déja la balise #entete img avec float:left.


je met le code complet css + html, vous pourrez voir directement

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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Document sans nom</title>
</head>
<style type="text/css" title="css1" media="screen">
body {
	color: #F0E39E;
	background-color:#CCC;
padding: 10px 5px;
}
/* Titres */
h1, h2, h3, h4, h5, h6 {
	margin: 1em 0 .5em 0; /* -> 6 */
}
h1, h2 {
	font-family: Georgia, "Bitstream Vera Serif", Norasi, serif;
	font-weight: normal; /* -> 7 */
}
h1 {
	font-size: 2em; /* -> 8 */
	font-style: italic;
}
h2 {font-size: 1.4em;
font-style: italic;
}
h3 {font-size: 1.2em;}
h4 {font-size: 1em;}
 
#global {
	width: 90%;
	max-width: 90em;
	min-width: 850px;
	margin-left: auto;
	margin-right: auto;
}
#entete {
	padding: 20px 0;
	background-color:#006;
	height:100px;
	overflow:hidden; /* permet à la div d'englober son contenu flottant */
 
}
#entete  img {
	float: left;
	margin: -5px 20px 10px 0;
}
 
/* Navigation */
div#navbar2 {
    height: 30px;
 
    border-top: solid #000 1px;
    border-bottom: solid #000 1px;
    background-color:#999;
	overflow:hidden; /* permet à la div d'englober son contenu flottant */
}
 
 
div#navbar2 ul {
    margin: 0px;
    padding-left: 19%;
    font-family: Arial, Helvetica, sans-serif;
    font-size: small;
    color: #FFF;
    line-height: 30px;
    white-space: nowrap;
	float:left;
}
 
	div#navbar2 form {
    float:right;
}
 
 
 
 
div#navbar2 li {
    list-style-type: none;
    display: inline;
	background-color:#009;
	padding-left:0px;
}
div#navbar2 li a {
    text-decoration: none;
    padding: 7px 10px;
    color: #FFF;
}
div#navbar2 li a:link {
    color: #FFF:
}
div#navbar2 li a:visited {
    color: #CCC;
}
div#navbar2 li a:hover {
    font-weight: bold;
    color: #FFF;
    background-color: #3366FF;
}
 
 
</style>
 
<body>
 
<div id="global">
 
	<div id="entete"><img src="../images/logo_LCN_JPEG" alt="" width="305" height="100" /><h1>Le spécialiste de l'emballage</h1>
    <h2>Présent sur toute la france</h2>
	</div>
 
	<!-- #entete -->
 
<div id="navbar2">
<ul>
<li><a href="link1.html">Accueil</a></li>
<li><a href="link2.html ">L'équipe</a></li>
<li><a href="link3.html ">Nous contacter</a></li></ul> 
  <form name="frm_bycountry" id="frm_bycountry" method="post" action="produit.php"  onchange="frm_submit(this.value)">
 
      <select name="tourCountry" id="tourCountry">
       <option value>------ choix du produit ------</option>
 
 <?php
do {  
?>
<option value="<?php echo $row_recpdt['countryName']?>" <?php if ($_POST['tourCountry']==$row_recpdt['countryName']) echo 'selected="selected"'; ?> ><?php echo $row_recpdt['countryName']?></option>
        <?php
              } while ($row_recpdt = mysql_fetch_assoc($recpdt));
  $rows = mysql_num_rows($recpdt);
  if($rows > 0) {
      mysql_data_seek($recpdt, 0);
      $row_recpdt = mysql_fetch_assoc($rs_recpdt);
  }
?>
      </select>
      <input type="submit" name="Submit" value="OK" />
  </form>
 <form action="pages.php" method="post" name="recherche" >
    <div id="search">Chercher&nbsp;
        <input name="motcle" id="motcle" type="text"/>
        <input name="submit" type="submit" class="blue" value="OK" />
    </div>
  </form>
 
</div>
 
</body>
</html>
merci car j ai lu pas mal de tutos mais j avoue que je sèche.

steph