[SOLVED] Border General Message

For general web development questions that are not specifically related to CSS HTML Validator. This includes (but is not limited to) general HTML, CSS, Accessibility, JavaScript, and SEO questions.
Post Reply
paulp575
Rank IV - Intermediate
Posts: 170
Joined: Tue Aug 09, 2005 1:20 pm
Location: Spokane WA
Contact:

[SOLVED] Border General Message

Post by paulp575 »

Document is HTML 5.

Here's the style:

Code: Select all

*.CONTENT
{
  PADDING: 0px 18px;
  MAX-HEIGHT: 0px;
  OVERFLOW: hidden;
  TRANSITION: max-height 0.2s ease-out;
  BACKGROUND-COLOR: #ffffff;
  BORDER: 1px;
HTML Validator is giving me the following "General" comment on the BORDER line above:
The <border-style> value for the "border" property was omitted. This will result in no border being applied because the default of <border-style> is "none".
Is it necessary to include "border-style" if I only want a solid border 1 px in size? Seems rather redundant - unless the default border is NOT soiid.
Last edited by paulp575 on Sat Jun 19, 2021 12:11 am, edited 1 time in total.
paulp575
User avatar
Albert Wiersch
Site Admin
Posts: 3783
Joined: Sat Dec 11, 2004 9:23 am
Location: Near Dallas, TX
Contact:

Re: Border General Message

Post by Albert Wiersch »

Hi Paul,

You should be getting this message:
The <border-style> value for the "border" property was omitted. This will result in no border being applied because the default of <border-style> is "none".

Which means there won't be a border if you just use this:

Code: Select all

border: 1px;
So you probably want to include a <border-style> in there like this:

Code: Select all

border: 1px solid;
I hope this helps. Please let me know if not.
Albert Wiersch, CSS HTML Validator Developer • Download CSS HTML Validator FREE Trial
Post Reply