Bonjour,
Mieux vaut un dessin qu'un long discoure :
Ce qui va pas :
Ce que je veux (Modifier avec paint, si non je serais aux ange) :
Légende :
Jaune: Block general dans le quel il y a tout
Rouge transparent: Titre et pied de block
Bleu transparent: Block scrollable
Vert: Mélange de bleu de jaune par transparence
Orange : Mélange de rouge et de jaune par transparence
Explications :
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 <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Untitled Document</title> <style type='text/css'> #block { position: fixed; width: 100px; top: 300px; bottom: 300px; background: yellow; } #list { overflow: auto; background: rgba(0,255,0,0.2); } </style> </head> <body> <div id="block"> <div style="height:25px; background:rgba(255,0,0,0.2);">dfhdfhd</div> <div id="list"><div>hthth</div><div>hthth</div><div>hthth</div><div>hthth</div><div>hthth</div><div>hthth</div><div>hthth</div><div>hthth</div><div>hthth</div><div>hthth</div><div>hthth</div><div>hthth</div><div>hthth</div></div> <div style="height:25px; background:rgba(255,0,0,0.2);">tjiouhjh</div> </div> </body> </html>
Je veux un block dans lequel il y a :
- Un block titre
- Un block scrollable
- Un pied de block
Le tout ce redimensionne avec la hauteur de la fenêtre (et non la page), grâce aux directive top et bottom.
Donc le truc prend la hauteur de la fenêtre que l'on soit riche (television OLED 16:9 999999px*9999px) ou que l'on soit pauvre (ecran catodique 600px*400px), je veux faire un truc socialiste quoi...
Merci de votre aide.
Partager