Solved

Drupal Colorbox - move the text

Posted on 2014-01-05
4
453 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
[X]
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
  • 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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying 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

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
This article discusses how to implement server side field validation and display customized error messages to the client.
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
In this tutorial viewers will learn how to embed custom externally-hosted Google Fonts using the Google Font API in CSS Go to the Google Fonts website at google.com/fonts: Browse or search based on font properties or name to find a suitable font for…

710 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