Skip to content

BigText does not care about div height to set font-size #111

@cafiah

Description

@cafiah

Please try this demo:

<!doctype html>
<html lang="en">
    <head>
        <meta charset="utf-8"/>
        <title>BigText does not care about div height</title>
        <style>
            #test {
                width: 1000px;
                height: 100px;
                font-weight: bold;
                overflow: hidden;
            }
        </style>
    </head>
    <body>
        <div id="test">
            <div>Text is too big!</div>
        </div>
        <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
        <script src="bigtext.js"></script>
        <script>
        $('#test').bigtext();;
        </script>
    </body>
</html>

as you see, the font is way to big, and the text can't be displayed fully in the div.
Would be nice that BigText add an option to consider div height

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions