Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Sahou Kanaan Almelhem
Courses Plus Student 15,547 PointsProperty background-size doesn't exist in CSS level 2.1 by W3C CSS Validator what can i do to solve this Problem
input[type="text"]{ width:100%; height:30px; background:url(./img/bg_input.jpg) no-repeat top center; background-size:100% 33px; -moz-background-size: 100% 33px; -wbkit-background-size: 100% 33px; }
3 Answers
Steven Parker
243,318 PointsChange the "Profile" setting to CSS Level 3
The "background-size" property was first introduced in CSS3.
I pasted that code directly into the The W3C CSS Validation Service and got: "Congratulations! No Error Found."
Sahou Kanaan Almelhem
Courses Plus Student 15,547 Pointsthank you very much "Martin " and "Steven" now every thing is ok
Sahou Kanaan Almelhem
Courses Plus Student 15,547 Pointsthank you all very much
martinjones1
Front End Web Development Techdegree Graduate 44,824 Pointsmartinjones1
Front End Web Development Techdegree Graduate 44,824 PointsWhen testing it essentially says that it is a CSS3 property, to test this go to More Options > Profile > CSS Level 3 and then run again.
Property background-size doesn't exist in CSS level 2.1 but exists in [css3] : 100% 33px