Next. Set the size of the wrapper (parent) -or- the image/logo inside (Not both) - you get overflow and broken layout (Set logo to 500px width and the parent to 300px = overflow).
See this answer:
Anyway its hard to understand your problem (Add screenshot).