CSS help, please? (resolved. )

Apoidea's picture
Is there anyone out there who could help me out?

I'd like to have a box with an invisible scroll bar placed where the yellow square is in this picture... but I am unsure as to how to do it.



Please?

Here's the original picture for you to use...

I think I can help you a

I think I can help you a little.
But I don't know how to place box on the right, hehe
Unplugged's picture

.bb-code-block{white-space:pr



<div style="background:url('http://i1214.photobucket.com/albums/cc496/PandaXiongMao/Moss_zpsbbdb769f.jpg');width:1024px;height:407px;overflow:auto;position:relative">

<div style="width:320px;height:320px;overflow:hidden;border:1px solid #000;position:absolute;top:50px;right:50px;"><div style="width:300px;height:280px;padding:20px;overflow:auto;background:rgba(0,0,0,0.8)">Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.

Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.


</div>
</div>


</div>


Parts to change:
<div style="width:320px;height:320px;overflow:hidden;border:1px solid #000;position:absolute;top:50px;right:50px;"><div style="width:300px;height:280px;padding:20px;overflow:auto;background:rgba(0,0,0,0.8)">
To change the width, change the following parts:
width:320px;height:320px and width:300px;height:280px;. Make sure to keep the first div bigger than the second div.

To change the background color:
background:rgba(0,0,0,0.8). I used rgba values here so that I can have transparency (0.8 is the transparency here). You can use regular hex codes too.
Apoidea's picture

Many thanks, HB for the

Many thanks, HB for the thought and Unplugged for the coding.

*hugs*

E. It's beautiful, Unplugged. THANK YOU AGAIN!