When I add the photoframe class to node.tpl it changes the size of the node. How can I add the class without it changing the size of the node?

Comments

chrisshattuck’s picture

There are some tips in the README that explain how to set the width of a photoframe. Because it wraps a table around the content once the page is loaded, it has the same properties as a table cell. You can use CSS to set the width of the table. Here's an excerpt from the latest README:

My content is squished, what do I do?!
-------------------------
Be default, Photoframe assumes that you want to wrap around
fixed-width content. This means that it will wrap nicely around an
image, but will squish your text into an ugly one-word-per-line column.
You can fix this one of two ways:

1) Add something of a fixed width to the content. This can be a

with a fixed width, or a spacer image.
2) Add one of the following styles to the styles.css file in your
template directory:

.photoframe-table { width:100%; }
This will cause all frames to be wide and expanding.

.photoframe-quote-table { width:100%}
Replace the 'photoframe-quote' with the style you want to cause to expand.
This will limit just that style to expand, while the others are fixed.

If you need to make one of a certain style wide, and another of the same
style fixed, then you need to do something like:

Content

And then add the following in your style.css file:

.surrounding-div .photoframe-quote-table { width:100%; }

Hopefully that should head you in the right direction. :)

chrisshattuck’s picture

Status: Active » Closed (works as designed)