Closed (fixed)
Project:
Image
Version:
4.6.x-1.x-dev
Component:
image.module
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
12 Oct 2005 at 02:30 UTC
Updated:
14 Nov 2005 at 17:20 UTC
How can I align thumbnails and images?
I can see that their style classes are image thumbnail, image preview and image _original but I can't find where their definitions anywhere.
I also tried to create one of those styles in styles.css file, but with no effect.
Can U help?
Comments
Comment #1
nevets commentedCan you provide a URL to a page you are having problems with and a note of what you want to achieve.
Comment #2
LGomez commentedThe test site that I'm using is at www.ovar.net/conteudo.
What I want is the thumbnail floating left and the linked image to appear centered.
tanx
Comment #3
Bèr Kessels commentedYou should do this in a theme with CSS.
Comment #4
LGomez commentedThanks a lot. It works as I wished for thumbnails.
Those classes were not defined, that's why I couldn't find them anywhere.
I still don't get why class is called "image something", but maybe I'm missing some things about CSS.
Now, of course, for class "image preview" I must define the style
.node. preview.I want images to be
text-align: center;but it doesn't work. If I try to put them floating left or right everything seems to work fine, but not when I try to center align it.What am I missing here?
Comment #5
Robrecht Jacques commentedThe
<img>tag is an inline element. There is no point intext-aligning them. You could do:or alternatively assign a
text-align: center;to the containing block.Comment #6
Zuperfly commentedI positioned the thumbnail image like this:
.node .image {
float:left;
margin-right: 1em;
}
But I don't now how to position the large image as it is defined as "image preview" in the css. My actual source code looks like this:
(div class="node")
(span class="submitted") ... (/span)
(div class="content")
(span class="image preview") (img ... ) (/span)
(p)Description(/p)
(/div)
(/div)
Why is there a blank in "image preview"? Shouldn't it be something like class="preview" or "imagepreview"? I'm not sure, but I think blanks are not allowed in CSS declarations.
Comment #7
Bèr Kessels commentedThey are called subclasses.
is an example usage of such a subclass.
Comment #8
cornernote commentedAny tips on how to get the image to have a 1px border AND be center alligned.
I can only get it to do that like this:
The problem is that the border goes all the way to the edge of the node window and leaves a lot of white space around the image.
Comment #9
Robrecht Jacques commentedProbably
But this is not the place nor time for this.
Comment #10
(not verified) commented