Welcome, Visitor!

Hello, we are really happy that you have reached us. However, since you are viewing the forum as a visitor, you cannot benefit from many features of the forum. How about taking advantage of all the features exclusive to our members by registering? You can register right now, taking just 2 minutes of your time. We would love to see you among us.

Max-height Özellik CSS

R

Rooster

only business
Thread Starter
Super Moderator
Joined
Aug 10, 2019
Messages
3,209
Reaction score
3,144
Points
113
Location
Milano
max-height özelliği, bir elemanın maksimum içerik yüksekliğini belirlemenizi sağlar. Elemanımızın içi çok dolu olsada maximum yüksekliği geçmeyecektir. Bu maksimum yükseklik padding sınırları ya da kenar boşluklarını içermez.

Not: max-height daha büyük değer verilen yükseklik(height) özelliğinin değerini geçersiz yapar.

CSS;

Code:
div{
     height: 200px;
     max-height: 100px;
     background: #33cc00;
    }
 p{
    max-height: 100px;
    background: #F0E68C;
   }

HTML;

Code:
<div>Bu div öğesinin maksimum yüksekliği 100px
 ayarlanır, bu nedenle daha uzun olamaz</div>

<p>Bu bir deneme yazısıdır.</p>

ÇIKTI;
1576071389736.png
 
SPAM IS FORBIDDEN!
  • SPAMMERS ARE BANNED FROM THE FORUM AND CANNOT USE ANY OF THE CHEATS
  • For example: thanks, thx, very good, asdqwe, working, ty and so on!
  • For example: Writing the same message over and over. thanks, thx and so on!
  • Copying and copying someone else's message is prohibited.
  • It is forbidden to send messages to increase the number of comments on threads that you have no knowledge of.
  • Write your own opinion when commenting!
  • If you see spam message, please let us know with the REPORT button!

Theme editor

Top Bottom