April 5, 201214 yr *Title should be NOT scrolling, oops.* Hi there, I've been working on a website where I've used a simple lightbox for text to display more than will fit on the page, unfortunately for some reason the scrollbar isn't working and doesn't appear so you can't see all the text on the page below, click on "read more" and you'll see what I mean. http://www.amtesting.co.uk/bshep/how-can-we-help.html This is the CSS code I've used for it, can someone help me please?? .grayBox{ position: fixed; top: 0%; left: 0%; width: 100%; height: 100%; background-color: black; z-index:1; -moz-opacity: 0.8; opacity:.80; filter: alpha(opacity=80); } .box_content { position: fixed; top: 5%; left: 30%; right: 30%; width: 40%; padding: 12px; z-index:2; overflow:auto; color: #000; } Many thanks in advance. Dan Edited April 5, 201214 yr by Dan Lacey
April 10, 201214 yr Author *Title should be NOT scrolling, oops.* Hi there, I've been working on a website where I've used a simple lightbox for text to display more than will fit on the page, unfortunately for some reason the scrollbar isn't working and doesn't appear so you can't see all the text on the page below, click on "read more" and you'll see what I mean. http://www.amtesting.co.uk/bshep/how-can-we-help.html This is the CSS code I've used for it, can someone help me please?? .grayBox{ position: fixed; top: 0%; left: 0%; width: 100%; height: 100%; background-color: black; z-index:1; -moz-opacity: 0.8; opacity:.80; filter: alpha(opacity=80); } .box_content { position: fixed; top: 5%; left: 30%; right: 30%; width: 40%; padding: 12px; z-index:2; overflow:auto; color: #000; } Many thanks in advance. Dan Can nobody help me with this?
April 11, 201214 yr Hi Dan, The following CSS should work: .grayBox{ position: fixed; top: 0%; left: 0%; width: 100%; height: 100%; background-color: black; z-index:1; -moz-opacity: 0.8; opacity:.80; filter: alpha(opacity=80); } .box_content { position: absolute; top: 5%; left: 30%; right: 30%; width: 40%; padding: 12px; z-index:2; overflow:auto; color: #000; } it is a simple change for the positioning of the content (position: absolute;) Hope that helps! Iain
April 12, 201214 yr Author Hi Dan, The following CSS should work: .grayBox{ position: fixed; top: 0%; left: 0%; width: 100%; height: 100%; background-color: black; z-index:1; -moz-opacity: 0.8; opacity:.80; filter: alpha(opacity=80); } .box_content { position: absolute; top: 5%; left: 30%; right: 30%; width: 40%; padding: 12px; z-index:2; overflow:auto; color: #000; } it is a simple change for the positioning of the content (position: absolute;) Hope that helps! Iain Yeah that worked a treat thanks!
Create an account or sign in to comment