Un body en overflow:hidden avec un contenu en overflow:auto (ou l'inverse)
Bonjour à tous,
J'ai une div fullscreen avec un z-index qui permet de masquer les autres div.
Le "fullsscreen" devient hidden lors d'un clic sur la barre des menus.
Y'a t'il moyen de donner un overflow:hidden uniquement à la div "fullscreen" ?
De mon côté, j'ai eu beau chercher niveau CSS, ma page reste toujours scrollable... ou pas du tout :(
Beaucoup de recherches sur internet, et pas de réponse à mon problème excepté ce vieux code :
Code:
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
| <body scroll="no" style="margin:0">
<table height="100%" width="100%" cellpadding="0" cellspacing="0">
<tr>
<td height="40" style="background-color:silver">
This is the non-scrolling region<br>
This part won't scroll
</td>
</tr>
<tr>
<td>
<div style="height:100%;width:100%;overflow:auto;">
This is the scrolling region<br>
This is the scrolling region<br>
This is the scrolling region<br>
This is the scrolling region<br>
This is the scrolling region<br>
This is the scrolling region<br>
This is the scrolling region<br>
This is the scrolling region<br>
This is the scrolling region<br>
This is the scrolling region<br>
This is the scrolling region<br>
This is the scrolling region<br>
This is the scrolling region<br>
This is the scrolling region<br>
This is the scrolling region<br>
This is the scrolling region<br>
This is the scrolling region<br>
This is the scrolling region<br>
</div>
</td>
</tr>
</table>
</body> |
Existe-t'il un moyen plus "moderne" pour réaliser ce que je désire faire ?
Bonne fin de week-end,
dh