PDA

View Full Version : photobox floating left and right


spazzer
11-05-2009, 11:23 AM
Hi,
I would like to insert a photos onto my site and would like to create a style for the box i.e. Padding,Border .
I would then like to float the photobox left or right as needed, I realise I could just create a style for each like .photoLeft or .photoRight but was wondering if there is way to just style the box once without having to duplicate the style of the box and then float it left or right with the neccesary margins for each !

Many Thanks,
Nick Carter ;-)

spazzer
11-05-2009, 12:06 PM
Sorry Guys,
I think I may have sorted it and answered my own question here !
If I create a style for the img tag and then a class for leftImg and rightImg that should do the trick I think !!!

Cheers,
Nick C ;-)