problem with div pushing an image

2 replies
  • WEB DESIGN
  • |
Hi,
I am new to this Forum. I have been reading around and i am quite happy with how everyone responds and speaks to each other so im posting a small question here maybe someone can solve this easily.

I have a simple problem of one of my divs pushing my main background image around 10px top and left. its the #head container.The image is exactly 150 px by 950px, I set margins and paddings but it doesnt seem to take care of the problem. Also the colors i used have also changed when I preview in chrome.

Thanks,
James
#div #image #problem #pushing
  • Profile picture of the author GetFeeDomainName
    it's hard to grasp what you mean.
    can you provide an url or a minimal example code in a pastebin?
    Signature
    {{ DiscussionBoard.errors[4480519].message }}
  • Profile picture of the author brianman
    We'll need an URL to look at. Usually, if you are getting padding or margin issues that aren't resolve by fixing the styles for that div ID or Class, it's usually a parent div or the body style. Check your body style and make sure your margin is set to 0. Then, check all parent divs and make sure they don't have padding on them.

    As for the color change, that does sound weird. I've never seen that before.

    A good tip for everyone on here. Install Firebug for Firefox. It will help you find these errors with ease.
    {{ DiscussionBoard.errors[4482097].message }}

Trending Topics