No replies
Last seen: 18 years 10 weeks ago
Joined: 2004-11-22
Posts: 1
Points: 0

Hi everyone, I am new to this forum and quite new to CSS.

I have a standard form field (text) with a class. in the class I have used a 1px border. What I am wanting to achieve is have a coloured box with a white border around that, then another border around the white one with no spacing. This is giving the illusion that there is a 1px white space around the coloured box before you see the border. (but really it's a white border).

The only way I can think of doing this is to have a div around the input box but for reasons beyond my control we aren't allowed to do it this way!. I hope you understand what I am going on about!.

I hope someone has a more simple way to acheive this!. Thanks!