The My Opera forums have been replaced with forums.opera.com. Please head over there to discuss Opera's products and features

See the new Forums

problem with outline and overflow:hidden

Forums » Opera for Windows/Mac/Linux » Opera browser

You need to be logged in to post in the forums. If you do not have an account, please sign up first.

Go to last post

27. September 2011, 17:42:50

ducyo

Posts: 1

problem with outline and overflow:hidden

I get strange lines in following code:
<!DOCTYPE html>
<head>
	
	<title>title</title>
<style>

.boxgrid{
	width: 470px;
	height: 260px;
	outline: 1px solid #111;
	overflow: hidden;
	position: relative;

}

.boxcaption{
	position: absolute;
}
 .slideright .boxcaption {
 	top: 0;
 	left: 471px;
 }


</style>
</head>

<body>
<div>
    <div class="boxgrid slideright">
	<div class="cover boxcaption">
		<h3>Title</h3>
		<p><ul>
        <li>something</li>
        <li>something else</li>
        <li>something more</li>
        <li>i love opera :*</li>
        </ul>
	</div>
	</div>
</div>
</body>
</html>

6. August 2012, 11:36:39

noalvaro

Posts: 2

Same here... Opera 12.01, a year later.
Have you found any workarounds?

7. August 2012, 00:46:48

mjnc95

Posts: 32

Workaround?
Yes, fix the code. smile

the .boxcaption position puts it Outside the container .boxgrid

Change the left: 471px; to something reasonable like 71px OR left: 10%;, and it looks fine.

Also, FYI, there is a missing closing tag for the paragraph.
Windows XP Home SP3, 1.5GB, AMD Sempron 3400+, Opera 12.16

7. August 2012, 12:37:13

noalvaro

Posts: 2

Oh yes, off course. smile

I heard this is a "missing specification" from W3C, although from a personal point of view I think Opera should grade up with the "missing standards", like all other browsers have been doing. As far as I know, this issue with masked outlines only happens with Opera.

I also ended up fixing my code, for it has scrolls and other stuff that could not be simply avoided in a static layout.

Thanks for answering, by the way.

Forums » Opera for Windows/Mac/Linux » Opera browser