Jump to:
| Project: | Header image |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (won't fix) |
Issue Summary
I spent a little time checking out your module, I think its a very useful mod! There is one thing that Im thinking would be nice to add; the ability to output the image as css background of a div. The reason being is my style of header image is around 1400px wide which I want centered cleanly no matter the width of the window. There is no good way to do this nice with an img tag. Being set as the background allows any other cck fields to float on top of that background, which makes adding a set amount of styled text perhaps with signwriter module easy.
I tried to override the teaser and body theme to include these fields in markup but it didn't work, lol. Hopefully when I get some time to find out why and come up with a solution I will put it up here. Unless anyone else has done something similar?
Comments
#1
The solution would be build a node with CCK a textfield. The textfield should contain the CSS class (or ID) you want to add to a div. Override the header image theming in such a way that the block contains an empty div with the class (or ID) you entered in the CCK field.