How to make the width of my div shown in the code auto based on the content? right now the div border is 100% ...i want the div border to be only around the text
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<div style="color:gray;font-size:11px;border:1px solid lightgray;border-right:1px solid lightgray;border-left:1px solid lightgray;padding:5px;"><h4>fghfgh(12:01:49 PM)</h4>
sdfsdf</div>
</body>
</html>