.art-content-layout .art-sidebar2 being applied twice?

A place for discussion about skinning and design. Before posting questions here you should review the documentation about creating skins.

This thread is closed to new posts. You must sign in to post in the forums.
4/27/2011 4:09:57 PM
Gravatar
Total Posts 73

.art-content-layout .art-sidebar2 being applied twice?

First of all, I have to say that there have been a lot of great improvements in the layout support recently, such as the Artisteer 3 support, the updated page layout pane (top and bottom alternate panes) and especially the custom body css class.  Together these features solve just about all of the issues over which I've been doing minor backflips to make my desired layout work.  Kudos.

If you can't tell, I've just upgraded to 2.3.6.5 from a couple revisions earlier.  I'm rearranging my page modules to take advantage of the new layouts and in doing so, I've moved some elements that were formerly outside the right content-pane into that pane.  To my surprise, everything in the module got squished left by a 161px margin-right that I couldn't for the life of me track down in my css.  For the record, I'm using a custom design based on the artisteer 2.6 templates from a couple versions ago, using Artisteer 2.6 with it.

I think I've tracked the culprit down to a dynamically generated class that's created within the panelwrapper of my html-content module, the class "art-sidebar2".  That class is appearing both on the right content-pane div (where it should be, I believe), as well as in the panelwrapper of the module itself.  The rule for that class is generated by Artisteer by setting the right column width.  It's coming straight from Artisteer, I'm not modifying it in any way.

When I remove that class dynamically with Chrome developer tools, the margin fixes itself and everything is happy.  I don't know why the class is being generated, and I'm not sure what role it is supposed to play, but looking at the way it's being applied I don't see how it could possibly work.  It's applying a width of 25% to the right content-pane div, which is what you want, but then within that width it's applying a 25% width again to the panelwrapper of my html-content module in that content pane.

On the other hand, I don't see how I'm the first one to encounter such an issue, so I'm still allowing that it may be a problem with my custom layout.

As a counterpoint, I also am using the rss feed module in my right sidebar and it's panel wrapper does *not* have the art-sidebar2 class.

Thanks for any help,

Ted

4/27/2011 4:15:36 PM
Gravatar
Total Posts 73

Re: .art-content-layout .art-sidebar2 being applied twice?

Never mind, operator error.  I had set the custom class myself a long time ago and forgotten about it.  My bad.

You must sign in to post in the forums. This thread is closed to new posts.