<!DOCTYPE html> <html> <body> <fieldset> <legend style="width: 300px; min-width: 400px; max-width: 50px; height: 300px; min-height: 400px; max-height: 50px; border: 1px solid black;"> <span style="display: inline-block; height:100px; width: 100px"></span> </legend> </fieldset> </body> </html>