Hi Patrick,
As Mark said overflow should hide the content as long as there is a width for it to work on.
e.g.
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<style>
p{
width:100px;
background:red;
overflow:hidden;
}
</style>
</head>
<body>
<p><a href="#">thisisalonglinkthatwillbreakoutoftheparentcontainer</a></p>
</body>
</html>
For IE browsers you could use word-wrap instead and force it to wrap at the containers edge.
e.g.
Code:
p{
width:100px;
background:red;
overflow:hidden;
word-wrap:break-word;/* proprietary IE code (css3 proposed) */
}
It won;t validate (yet) so its probably best hidden in conditional comments.
If the problem is something else then we will need to see some code
Bookmarks