Template talk:Thumb

--Jamie  04:42, 26 June 2006 (CDT)

Need help with logic
I know there is an if else template, but I don't know how to use it -_-;; essentially if someone could just apply it to switch left to right or right to left in the margin variable, hence if float: left then margin-right: 2em or if float: right then margin-left: 2em --Jamie  05:04, 26 June 2006 (CDT)


 * You don't need the if-else template for it. If margin isn't working, it'd be because you aren't doing the rest of the code correctly. -User:PanSola (talk to the [[Image:follower of Lyssa.png]]) 05:46, 26 June 2006 (CDT)
 * nevermind I misread what you wanted. -User:PanSola (talk to the [[Image:follower of Lyssa.png]]) 05:49, 26 June 2006 (CDT)

this:

--Jamie  05:48, 26 June 2006 (CDT)


 * What wuld the default margin be. Ie the side that isn't being floated to? -User:PanSola (talk to the [[Image:follower of Lyssa.png]]) 05:50, 26 June 2006 (CDT)

All that's needed is if it's floating left to give a margin on the right, that way stuff like bullet points don't float on the image. and similarly for right there being a margin on the left. but I'm not sure how to do that. I'd imagine it would be default to margin-right as the image with no float seems to stick to the right --Jamie  05:52, 26 June 2006 (CDT)


 * Well I prefer to avoid using the If templates if I have another way around it. Lemme try something. -User:PanSola (talk to the [[Image:follower of Lyssa.png]]) 06:08, 26 June 2006 (CDT)
 * Ok, here's how I solved it w/o IF. Set both sides to margin of 2, and then set the side you are floating to to 0.  The latter specification will override the earlier one. -User:PanSola (talk to the [[Image:follower of Lyssa.png]]) 06:09, 26 June 2006 (CDT)


 * ty --Jamie [[Image:Jamie.jpg|24px|(Talk Page)]] 06:15, 26 June 2006 (CDT)