By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,341 Members | 1,619 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,341 IT Pros & Developers. It's quick & easy.

An outline is a line around an element. It is displayed around the margin of the elem

P: 64
hi

i quote this statement from w3shools site .

"An outline is a line around an element. It is displayed around the margin of the elem"
I use firefox 4.0.1 but in my browser i saw that outline is a line that is drawn around the border of the element , is firefox is inconsistent with outline property because invert value for outline-color property does'nt work too?

thanks alot for your help.
Jun 10 '11 #1

✓ answered by drhowarddrfine

That description is not correct. It's best to look at what the W3C actually says about this:
The outline created with the outline properties is drawn "over" a box, i.e., the outline is always on top, and does not influence the position or size of the box, or of any other boxes. Therefore, displaying or suppressing outlines does not cause reflow or overflow.

The outline may be drawn starting just outside the border edge.
If you did not know, W3Schools is in no way affiliated with the W3C.

Share this Question
Share on Google+
1 Reply


drhowarddrfine
Expert 5K+
P: 7,435
That description is not correct. It's best to look at what the W3C actually says about this:
The outline created with the outline properties is drawn "over" a box, i.e., the outline is always on top, and does not influence the position or size of the box, or of any other boxes. Therefore, displaying or suppressing outlines does not cause reflow or overflow.

The outline may be drawn starting just outside the border edge.
If you did not know, W3Schools is in no way affiliated with the W3C.
Jun 10 '11 #2

Post your reply

Sign in to post your reply or Sign up for a free account.