MagicToolBox forum
May 17, 2012, 01:48:21 am *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome to the Magic Toolbox forum!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Am I doing this right?  (Read 886 times)
Rumbanana
Newbie
*
Posts: 2


View Profile
« on: July 21, 2010, 11:54:37 am »

I'm having a hard time applying the caption-width setting, my captions are still showing in the defailt 259px width. Here is how I'm doing it...

class="MagicThumb"  rel="caption-position: right; caption-width: 450"

Do I need to edit the caption-width within the javascript file?

Any help would be great, thanks...
« Last Edit: July 21, 2010, 11:55:15 am by Rumbanana » Logged
Alex
MagicToolBox Team
Hero Member
*****
Posts: 633



View Profile WWW
« Reply #1 on: July 21, 2010, 02:41:33 pm »

Hi Rumbanana,

The caption-width parameter just defines the maximum width of the caption. The actual width is determined automatically based on its content.

You can try to set the exact width with the CSS rules of .MagicThumb-caption class in the magicthumb.css file, e.g.

Code:
    /* Style of the caption for the expanded image */
    .MagicThumb-caption {
    color: #333;
    font: normal 10pt Verdana, Helvetica;
    background: #ccc;
    text-align: left;
    padding: 8px;
    border: 0 !important;
    outline: 0 !important;
    width: 450px;
    }

Hope this helps.

Alex
Logged
Rumbanana
Newbie
*
Posts: 2


View Profile
« Reply #2 on: July 21, 2010, 03:58:55 pm »

No, unfortunately this did not correct the issue. I've tried to add the width: 450px to both style sheets to no avail. I've used firebug to edit the styles in real time and this works, but when I actually apply the width property the page shows the 260px default. I need to achieve a "no scroll effect" if there is an alternate way to do this, it would be great. Thanks!
Logged
Alex
MagicToolBox Team
Hero Member
*****
Posts: 633



View Profile WWW
« Reply #3 on: July 21, 2010, 05:08:01 pm »

Hi Rumbanana,

Please try to define the width in CSS like this:

Code:
    width: 450px !important;

Alex
Logged
Pages: [1]
  Print  
 
Jump to:  

MagicZoom™ | Magic Zoom Plus™ | Magic Scroll™ | Magic 360™ | Magic Slideshow™ | Magic Touch™ | Magic Thumb™ | Magic Magnify Plus™
Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC