Friday 9 April 2010

CSS missing a tag? image-align?

In the middle of making my portfolio I needed to justify a row of images that will make up the gallery.

Three images in a row. The left aligning to the left boundary, the right image aligning to the right and then the middle image to be centered with equal spacing in between.


For text, you simply use text-align: justify in the CSS, however applying this to images obviously doesn't work.

I thought I could try and trick it by placing the imgs in a p tag. Fail again.


With a lack of CSS to make up for the problem, I have had to result to a round about hack, the solution being mentioned here.

@


No comments: