html - How to control how a div displays regardless of its contents? -


i have div displays html comes database. unfortunately, html database can potentially screw layout of entire page.

is iframe full proof option making sure outer container appears in proper place , without affecting other items on page? or there strategies making sure outer div appear in proper place in proper size regardless of contents?

you add following style misbehaving div:

div{   max-width: 500px; // adjust liking   overflow: hidden; // prevents strings seeping out div } 

you can same max-height, that's less necessary in cases.


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -