Can you help me with a dialog box issue I am facing?
$(document).ready(function() {
$('.ui.modal').modal('show');
});
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<link href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="e88e878589869c818bc59d81a8dac6dfc6de">[email protected]</a>/dist/semantic.min.css" rel="stylesheet"/>
<script src="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="94f2fbf9f5fae0fdf7b9e1fdd4a6baa3baa2">[email protected]</a>/dist/semantic.min.js"></script>
<div class="ui overlay fullscreen modal">
<div class="header">
Dialog box
</div>
<div class="content">
<div class="ui warning message">
<div class="header">
Be careful
</div>
This is a warning message
</div>
<div style="background-color: blueviolet">This is the container.<br />This is the container.</div>
</div>
<div class="actions">
<div class="ui approve button">Save</div>
<div class="ui cancel button">Cancel</div>
</div>
</div>
I am looking to ensure that the purple div (the one with "This is the container" text) has the maximum height possible without causing the page to scroll. Here is an example of what I am aiming for:
https://i.sstatic.net/SEkjP.jpg
I have already attempted using height:100%
, but it has not yielded the desired outcome. Is there a way to achieve the result shown in the image without specifying a pixel value for the height?