I have a note that is implemented using a div. I would like the width of this div to automatically adjust itself to fit the content included in it. I thought the easiest way of doing this might be to use display: inline-block in the css of the note. So the css of the note would be:
Code: Select all
div.note
{
background-repeat: no-repeat;
border-radius: 6px;
padding-right: 12px;
padding-top: 10px;
border-bottom-color: #000000;
border: solid 1px #3979a1;
padding-bottom: 10px;
margin-top: 5px;
margin-bottom: 12px;
background-color: #f5f5f5;
overflow: hidden;
background-image: url('../Images/NoteIcon.png');
background-position: 2px 2px;
padding-left: 40px;
display: inline-block;
}
thanks,
mark