Closed (fixed)
Project:
Views (for Drupal 7)
Version:
7.x-3.0-alpha1
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Issue tags:
Reporter:
Created:
4 Mar 2011 at 11:11 UTC
Updated:
3 Jan 2014 at 02:58 UTC
Jump to comment: Most recent
Comments
Comment #1
Anonymous (not verified) commentedYes, 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.
Comment #2
kastorino commentedI am sorry to ask, but, which css file should i work on?
Many thanks!
Comment #3
Anonymous (not verified) commentedYou 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.
Comment #4
dawehnerUpdate status.
In views 3.0-dev you don't have the additional div elements around the field content. This might even help a bit.
Comment #5
kastorino commentedNow 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!
Comment #6
bojanz commentedThat'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.
Comment #7
kastorino commentedThanks, the new release works! :)