modifying the "blank" css in imagefield to control how imagefields display (help!)

zilla - October 21, 2008 - 22:07
Project:ImageField
Version:6.x-3.x-dev
Component:User interface
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

okay, so i'd like to modify the blank css that ships with imagefield to change how my imagefields are displayed (correct way to do this?)

right now, i have two imagefields: field_mainpic (only one image allowed) and field_pics

fields are displayed in nodes and teasers using imagecache presets (thumbnail, profilepics, storysize)

so for example, right now the 'unlimited image field' "field_pics" is showing 'profilepics' at the bottom of a node - they're basically just a bit larger than thumbnails and conjure up a lightbox gallery

...but they display in a vertical stack with ZERO spacing! i'd like change that, have them stacked horizontally and then scroll to next row for when there are many (using acquia marina theme, so main column is only like 500ish pixels with two sidebars, so if i've got ten pics set to 180px wide, need a couple of rows)

i've foudn this css snippet that i think may do the trick, but i'm not sure what else i'll need to - cut and edit into imagefield's empty css??

/* ----- CSS for imagefields ---------------------------------------------------------------- */

div.field_pics {
  display: inline;
  float: left;
  overflow: hidden;
    margin:10px 10px 10px 10px;
    border:1px none #ffffff;
    width: 180px;
    height: 180px;
}

div.clear_both {
  clear: both;
}
would this work? i'd change width and height - but do i need to? won't the imagecache preset handle that anyways? and should this go in the theme? how do i reference a div like this to make it work (do i need to do something else)? i'm not a big css person, so this is way beyond me!!

any advice is appreciated

#1

ibexy - October 26, 2008 - 16:48

did you solve this problem? I think I want to achieve the same thing.

#2

zilla - October 26, 2008 - 17:13

have not solved it -tried this with css injector and it got dinged - but i'm using acquia marina theme and perhaps it may work with a local.css that is comign out with the theme's next version (soon)

i was able to manipulate with content templates, but it is NOT accepting padding and so it's no good (images inline floating left are touching the text of the teaser, it looks awful! a views table would look prettier ;)

#3

dbeall - November 12, 2008 - 16:21

subscribe

#4

zilla - November 12, 2008 - 16:47

btw, for those looking for just padding around an image to handle that particular issue, imagecache actions module can do this (with a transparency behind the image, set to X pixels on all or any sides)

#5

zilla - November 22, 2008 - 03:24

bummer that nobody has thoughts on this, going to submit a feature request for default styling in blank css!

#6

quicksketch - March 15, 2009 - 02:21
Status:active» closed

The default styling of ImageFields was significantly fixed in #397578: Uncouple ImageField from FileField Custom Hooks. Let's open a new issue for any questions you have about the new styling.

 
 

Drupal is a registered trademark of Dries Buytaert.