Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to limit div width?

Tags:

html

width

Its still overflowing it looks like this

<table id="hlavni" style=" position:absolute; border:none; position:relative; background-color:#FFC; border:#999 1px solid;" cellpadding="5">
                <tr>
                <td id="yamana" class="trida" valign="top" style="line-height:1.5em;"><div style="background-color:#FFC;" id=load_tweets>44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444</div>
        </td>
        </tr></table><br />
like image 878
René Houmran Griffin Avatar asked Oct 03 '11 22:10

René Houmran Griffin


1 Answers

<html>
<head>
    <style type="text/css">
    #limit {
        max-width: 500px;
    }
    </style>
</head>
<body>
    <div id="limit">Your content goes here</div>
</body>
</html>
like image 153
esqew Avatar answered Oct 07 '22 06:10

esqew