Is there a way around this? or is this really a good place to use inline styling
I can't think of any good reasons for inline styling (unless you want to overule a users stylesheet - which is a bad reason anyway
)
If you want each image unique then apply id's and apply the name that makes sense to you.
If you can use the same class for all images then just use a classname e.g. .contentimage {etc..}
You could also define a class of left and right e.g.
Code:
.left {float:left}
.right {float:right}
Then you could use the folowing:
Code:
<img class="contentimage left" src="etc..............
<img class="contentimage right" src="etc..............
But theres really not much difference as you could just have contentimagel and contentimager as separate classes anyway.
Remember the most important part will be the alt content so don't forget about that. This is more important than what you've called the style name.
If you select the image contextually through a parent id then you can just apply a class of left or right to the image and that will makes as much sense as anything.
Paul
Bookmarks