Here's my code >> Click Here
And here's an image showing the problem! >> Click Here

Rest is self explainatory. I used the same code in IE and the problem didn't occur. I haven't tried Firefox. The problem is most people seem to use Chrome these days and thats why I need a fix!

Member Avatar for Zagga

Hi,

The orange border may be a default style that is applied by Chrome. Are you using a CSS reset style sheet?

No I wasn't using one. But I added it now and it still gives the same problem. Thanks for the info though!

Ah got it! I was using an asterisk to do a universal reset on the borders and margins. So that was the problem!! I solved it by adding the comprehensive version shown here

Thanks a lot Zagga! Thanks to you I digged about CSS Reset and solved it!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.