Jump to content
  • 0

Скролл и максимальная высота !


darewangog
 Share

Question

Скролл и максимальная высота ! ! !

Так проблема или скорей всего просто незнания , но суть в том что есть Блок которому нада задать максимальную высоту и так чтоб текст потом от туду невылазил а если текста много чтоб появился скроол ! Но чета некак неполучаеться ! Может кто кодик подсказать !

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0

Получилось но только если внутри создаеш диви !

			  <table cellpadding="0" class="windowheadertable">
<tr>
<td class="windowtdheaderleft"></td>
<td class="windowtdheadercenter">Блог</td>
<td class="windowtdheaderright"></td>
</tr>
</table>

<table cellpadding="0" class="windowbodytable"><tr>
<td class="windowbodyleft"></td>
<td class="windowbodycenter"><div class="layer"> [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body] [body]</div></td>
<td class="windowbodyright"></td>
</tr></table>

<table cellpadding="0" class="windowfootertable"><tr>
<td class="windowfooterleft"> </td>
<td class="windowfootercenter"></td>
<td class="windowfooterright"> </td>
</tr></table>

.windowheadertable {width: 458px;border-collapse: collapse;}
.windowtdheaderleft {width: 24px; height: 37px; background: url(UpLeft.png) no-repeat left top;}
.windowtdheadercenter {width: 410px; background: url(UpCent.png) repeat-x left top;color: white;font-weight: bold;}
.windowtdheaderright {width: 24px; height: 37px; background: url(UpRight.png) no-repeat left top;}

.windowbodytable {width: 458px;height: 320px;max-height: 320px;min-height: 320px;border-collapse: collapse; overflow: auto;}
.windowbodyleft {width: 20px; background: url(MidLeft.png) repeat-y left top;}
.windowbodycenter {width: 418px;height: 320px; background: url(MidCent.png) repeat left top;vertical-align: top; overflow: auto;}
.windowbodyright {width: 20px; background: url(MidRight.png) repeat-y left top;}

.windowfootertable {width: 458px;border-collapse: collapse;}
.windowfooterleft {width: 24px; height: 23px; background: url(DownLeft.png) no-repeat left top;}
.windowfootercenter {width: 410px; background: url(DownCent.png) repeat-x left top;}
.windowfooterright {width: 24px; height: 23px; background: url(DownRight.png) no-repeat left top;}

.menutd {vertical-align: middle; width: 64px; text-align: left; letter-spacing: 0pt; word-spacing: 0pt;}
.layer {
height: 320px; /* Высота блока */
overflow: auto /* Добавляем полосы прокрутки */

Link to comment
Share on other sites

  • 0
Есть еще вопросик ! Как скроллу поменять ! Вид понил что с помощью скрипта , вот только с помощью какого ?!

Слуший, памагу тибэ я :) вот ссилку видишь, да? http://www.kelvinluck.com/assets/jquery/jS...ScrollPane.html

Так там очинь нэплохо расписанн что дэлить. :)

Edited by mishka2
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy