Posts: 226
Name: Chris
Location: West Yorks , UK
|
Hi i have a list of cocktails- and each cocktail has a different image assigned to it at the right of its container - what would be the most standards freindly and least footprint way to orgainise the following code please
Code:
.rightimg-icedtea { float: right;
background:url(images/iced-teas.png);
height: 65px; width: 50px;
background-repeat:no-repeat;
margin-top: 10px; }
so i could have say classic, mojitos, fizz, specials ect - without repeating the whole block for every one ?
Essentially they are all the same - but the image changes for each one.
i sort of thought of defining .rightimg then say .icedtea, .classic etc - but am a little unsure the best way to go about this.
TIA. 
Last edited by shonkyboy; 12-07-2010 at 09:39 AM..
|