Hi,
i would like to show the images of every node horizontally over the body.
Is there any solution?
Thanks,

CommentFileSizeAuthor
Schermata 2011-03-04 a 12.07.35.png813.29 KBkastorino

Comments

Anonymous’s picture

Status: Active » Closed (works as designed)

Yes, use css to do this. There's many options- wrap the images in a DIV that is only the width of one of them. Or give each one a float and a clear
{ float:left; clear:both; }

Views might help you out by giving you a wrapper or letting you name the wrappers, but otherwise this isn't a views issue.

kastorino’s picture

Status: Closed (works as designed) » Active

I am sorry to ask, but, which css file should i work on?
Many thanks!

Anonymous’s picture

You should read some of this http://drupal.org/node/341246

The basics are that you can work on any css file in your theme. BUT you should also customize your theme so it won't be overwritten by updating it. And just to keep things organized, what I do is create a new css file in my theme (call it what you want, such as custom.css) and then adding it to the .info file so the theme knows it's there.

dawehner’s picture

Status: Active » Closed (works as designed)

Update status.

In views 3.0-dev you don't have the additional div elements around the field content. This might even help a bit.

kastorino’s picture

Status: Closed (works as designed) » Active

Now I'm theming the view through a new file called views-view-fields--Fotoritocco.tpl.php and saved in my theme folder.
I did it by reading this article http://www.crimsonlizard.com/blog/theming-simple-field-type-views-drupal

Now, can anyone explain me what should i write in it?
Thanks a lot!

bojanz’s picture

Status: Active » Fixed

That's a template file. CSS doesn't go there. CSS goes in your site's CSS file, whatever that is.

In any case, update Views to 7x-3.x-dev and then maybe you can do this by default (without theming changes), just by toggling the "Use field template" setting.

kastorino’s picture

Thanks, the new release works! :)

Status: Fixed » Closed (fixed)
Issue tags: -views cck images horizontal

Automatically closed -- issue fixed for 2 weeks with no activity.