image alignment

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
bdaltilio
Advanced
Advanced
Posts: 15
Joined: Mon Oct 03, 2005 4:37 pm

image alignment

Post by bdaltilio »

I know you can use the imagealign property for left right and center, but is there one or something similar for aligning it to to top?

Thanks,
Brian
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi,

You wouldn't use imagealign to position it as to top bottom etc. You'd use the property imageposition, which are top middle bottom left center right. And, probably, though it doesn't say it, you can use a combination of them since usually these properties use valid css. I believe you can use things such as top right, top left, middle right and so on, but I'm not sure of the syntax, maybe left;top. Or if that isn't it, left, top, or possible left top with just a space. You'd have to test that.

But, if you're talking about a bgimage that will not work, to set those you need to code the bgimage in a css class and then call the class in the style [or if you have one item you want a bg in you can call it in that item. Then you'd set the position using css shorthand for the bgimage

Code: Select all

url(image.name) top left repeat-x 
for example.

Ruth
Post Reply