My doctype is:
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.1//EN” “
If I put a div on a page like this:
[CODE]<div style=”width:400px;”>
<p>Some content here that may go on for quite a bit, in fact it may be a very long sentence, one that makes no sense really etc.</p>
</div>
If I view that in IE 8.0 – the div width is ignored – and the text in the <p> tag does not wrap. If the text is long enough it forces the div way off the screen to the right.
What is it with IE – can’t they get ANYTHING right? Does anyone know the fix for this? (Look at it in compatability mode and the div is the right width).
Thanks for any help.