Well since you have the 8400, a new card will fit, unless it's a crazy long one and your case is puny.
You just have to worry about your power supply. How many watts is it, and what new graphics card? 1gb GDDR5 doesn't really narrow it down by much, or even come close to telling us the card and its power requirements.
Don't worry about gddr5 compatibility. It doesn't matter what ram you use in your computer.