detach or take offline

I need to move the log ldf to a new partition, and I dont recall whether I detach or take offline the impressario db in SQL, before it will allow me to relocate the ldf. 

suggestions would be helpful.

thanks