bonjour,
j'ai perdu beaucoup de temps pour adapter un template a mon site web, mais le probleme c'est que le scrollbar s'affiche toujours meme si le contenu de la page est vide (et donc pour voir le footer de la page il faut deplacer le scrollbar)
voila le html :
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
<html>
    <head>
{# ... #}
{% block stylesheets %}
            <link href="{{ asset('bundles/gestionconferenceapplication/css/style.css') }}" type="text/css" rel="stylesheet" />
{% endblock %}
        </head>
        <body>
 
            <div id="body_wrapper">
                <div id="container">
 
                    <!-- Start of Page Header -->
 
                    <div id="page_header">
                        <h1><span>Photos Site</span></h1>
                    </div>
 
                    <!-- End of Page Header -->
 
                    <!-- Start of Navigational Menu -->
 
                    <div id="nav_menu">
 
                        <ul>
                            <li id="menu1"><a href="{{ path('_acceuil', {'name': 'khalil comme toujours'}) }}" ><span>Acceuil</span></a></li>
                            <li id="menu2"><a href="#"><span>About Me</span></a></li>
                            <li id="menu3"><a href="{{ path('_creerConference') }}" ><span>Nouvelle Conference</span></a></li>
                            <li id="menu4"><a href="#"><span>Portfolio</span></a></li>
                            <li id="menu5"><a href="#"><span>Contacts</span></a></li>
                            <li id="menu6"><a href="#"><span>Links</span></a></li>
                        </ul>
 
                        <div class="clearthis">&nbsp;</div>
                    </div>
 
                    <!-- End of Mavigational Menu -->
 
                    <div class="clearthis">&nbsp;</div>
 
                    <!-- Start of Welcome to my Site -->
 
                    <div id="welcome">
 
                        <div class="content_header">
                            <h2><span>Welcome to my Site</span></h2>
                        </div>
 
                        <div class="content">
			{% block content %}
 
                        {% endblock %}	
 
                            </div>
 
                            <div class="clearthis">&nbsp;</div>
                        </div>
 
                        <!-- End of Welcome to my Site -->
 
                    </div>
                </div>
 
 
                <!-- Start of Page Footer -->
 
                <div id="page_footer">
                    Web design by <a href="#">Free Website Templates</a>
                </div>
 
                <!-- End of Page Footer -->
 
            </body>
        </html>
et voila le 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
* {
	margin: 0px;
	padding: 0px;
}
 
body {
	padding: 80px 0px 0px;
	background: url('../images/background_top.gif') #c4b8a1 repeat-x;
	color: #695d47;
	font-family: verdana, arial, sans-serif;
	font-size: 12px;
	text-align: center;
}
 
a {
	color: #695d47;
	background-color: inherit;
	text-decoration: underline;
}
 
a:hover {
	color: #ab9c7e;
	background-color: inherit;
}
span {
	display: none;
}
 
img {
	border: none;
}
 
ul {
	list-style-type: none;
}
 
li {
	list-style-type: none;
}
 
p {
	margin: 0px 0px 15px;
	text-align: justify;
	line-height: 15px;
}
 
.clearthis {
	margin : 0px;
	height : 1px;
	clear : both;
	float : none;
	font-size : 1px;
	line-height : 0px;
	overflow : hidden;
	visibility: hidden;
}
 
 
#body_wrapper {
	padding: 5px 0px 10px;
	width: 100%;
	background-color: #fff;
	color: inherit;
	position : relative;
	min-height: 100%;
}
 
#container {
	margin: 0px auto;
	width: 758px;
	text-align: right;
	padding-bottom: 20px;
	position : relative;
	min-height: 100%;
}
 
#container .content_header {
	margin: 20px 0px 0px auto;
	width: 730px;
	height: 40px;
	background: url('../images/content_header_bg.gif') repeat-x 0% 0%;
}
 
#container .content {
	margin: 3px 150px 0px 28px;
	width: 580px;
	text-align: left;
 
}
 
 
/* Page Header */
 
#page_header {
	background: url('../images/header_leftborder.gif') #fff repeat-y 0% 0%;
	color: #6a604e;
	float: left;
}
 
#page_header h1 {
	width: 280px;
	height: 125px;
	overflow: hidden;
	background: url('../images/website_title.gif') no-repeat 50% 50%;
}
 
 
/* Navigational Menu */
 
#nav_menu {
	margin-left: 9px;
	padding-left: 19px;
	float: right;
	background: url('../images/header_leftborder.gif') #fff repeat-y 0% 0%;
	color: #b3a386;
	text-align: center;
	font-family: tahoma, arial, sans-serif;
}
 
#nav_menu a {
	color: #b3a386;
	background: inherit;
}
 
#mav_menu a:hover {
	color: #857860;
	background: inherit;
}
 
#nav_menu ul {
	width: 450px;
	height: 125px;
	overflow: hidden;
}
 
#nav_menu li {
	float: left;
	border-width: 0px 1px 1px 0px;
	border-color: #c1b7a5;
	border-style: solid;
	font-size: 20px;
}
 
#nav_menu li#menu3, #nav_menu li#menu6 {
	border-right: none;
}
 
#nav_menu li a {
	display: block;
	width: 149px;
	height: 62px;
	text-decoration: none;
}
 
#nav_menu li a:hover {
	color: #857860;
	background-color: #f4eee2
}
 
#nav_menu li a span {
	padding-top: 17px;
	display: block;
}
 
 
/* Welcome to my Site */
 
#welcome .content_header h2 {
	height: 28px;
	background: url('../images/welcome_header.gif') no-repeat 0% 0%;
}
 
#welcome p {
	width: 420px;
	float: right;
}
 
 
/* Page Footer */
 
#page_footer {
	padding: 9px 10px 6px;
	font-weight: bold;
	float: none;
	clear: both;
	height:40px;
 
 
 
}
 
#page_footer a:hover {
	background-color: inherit;
	color: #4f4635;
}
j'ai testé plusieurs styles telle que :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
poistion absolute;position:relative
mais je tombe sur d'autres problemes

quelqu'un saurait il comment resoudre ce probleme

merci bien