Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Drupal Colorbox - move the text

Posted on 2014-01-05
4
440 Views
Last Modified: 2014-01-20
In this colorbox "slideshow", when you click on the image and get the colorbox, the text description is overlaying part of the image, which on a few of the images hides the important part of the image.
http://spirituality.server302.com/pre-post-images
If I try to just move the text, it doesn't show at all because it goes outside the pop up window. Is there some way for me to show the text to the right of the image in a separate pop-up window that changes with the image, or maybe at the bottom of the pop up window? Hopefully there is a way to do this with just CSS, or does it need some javascript?
0
Comment
Question by:nanharbison
  • 2
  • 2
4 Comments
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 39765788
The z-index on the opaque overlay that dims the page is set at 9999 (excessively high).  If you give the text a higher z-index than the opaque overlay, then you should be able to display the text outside of the colorbox.

Cd&
0
 
LVL 17

Author Comment

by:nanharbison
ID: 39766620
I changed the z index of the colorbox to 700, enough to make it be the top and then I set the title to be 800, and I set overflow to be visible. This isn't exactly working though.
#colorbox, #cboxOverlay, #cboxWrapper{
	position:absolute; 
	top:0; 
	left:0; 
	z-index:700;
	overflow:visible;
	}
div#cboxTitle {
	position:absolute;
	overflow:visible;
	top:0px;
	left:0px;
	z-index:800;
	margin-left:300px;
	background-color:#FFF;
	color:#333;
	width:300px;
	height:150px;
}

Open in new window

Also, I am not sure how to make sure this effect happens only on this page. There are several other colorboxes.
0
 
LVL 53

Accepted Solution

by:
COBOLdinosaur earned 500 total points
ID: 39768570
The title is inside cboxcontent.  You need to remove the overflow attribute from both cboxcontent and cboxloadedcontent to let the overflow default, and that should let the title display.

As for what happens on other pages; I have no idea. When you use common templates there are frequently unintended consequences, and it is even more of an issue when you are locked in to third party code.  So you may have to do some tweaking of the styleshees to get everything working correctly.  I suggest you move the inline styling into stylesheets to make changes easier to manage.

Cd&
0
 
LVL 17

Author Closing Comment

by:nanharbison
ID: 39793965
I gave up  on this, I couldn't get it to work.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
push Book Today button to right 10 37
How to check if a session is disconnected in php 9 32
Head to not include on scroll 4 23
Change box shadow 1 29
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
In this tutorial viewers will learn how add a full-size background image to a webpage using CSS3. Create a new HTML document with an internal stylesheet.: In CSS, define the html element to have a background image. Use a high resolution image.: In t…
In this tutorial viewers will learn how to customize the background color and font color of highlighted text using the ::selection element in CSS Begin by defining the selected text as an element in CSS by typing "::selection": Style the ::selection…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question