Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

W3c CSS warrning

Featured Replies

Hello Members,

 

Under giving is my css.

 

---------------------------------------------------------------------------------------------------------

 

.redtitle {float : left;text-align : left;font : bold 12px/30px Verdana, Arial, Helvetica, sans-serif;color: #ff0000;}

 

---------------------------------------------------------------------------------------------------------

 

.leftmenu {font : normal 12px Verdana, Arial, Helvetica, sans-serif;color : #000;text-align : left;display : block;}

 

When I do the validation in W3C its give me a warning like "You have no background-color set (or background-color is set to transparent) but you have set a color. Make sure that cascading of colors keeps the text reasonably legible."

 

Can any one help me to solve this warning?

 

Thanks in advance,

 

Shirish

 

http://www.ominfosoft.com

It's basically just saying that although you've set a colour for the text, you haven't got any background colour set. This could lead to the text being illegible, so it's advising that you set a background colour so that you have control over what colour the text is displayed against.

 

Easiest fix would be to add this to the body style:

 

body {
background: #fff;
}

 

That'll set the background to white.

  • Author

Thank you for replying me, and give effective tips.

 

Thanks,

Shirish

http://www.ominfosoft.com

 

It's basically just saying that although you've set a colour for the text, you haven't got any background colour set. This could lead to the text being illegible, so it's advising that you set a background colour so that you have control over what colour the text is displayed against.

 

Easiest fix would be to add this to the body style:

 

body {
  background: #fff;
  }

 

That'll set the background to white.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.