Consider the following CSS validation error: Line 9, body: Value Error: font-size Unknown dimension 100pct body { font-family: Arial, Helvetica, sans-serif; font-size: 100pct; } Based on this information, what should you do to fix the problem?
. Ignore this warning; if it looks good in your browser, then it should look good in anyone's browser. Save and retest. b. Go to Line 9 in your source code to inspect the problem manually. c. Find a font-size dimension that is standards compliant. Save and retest. d. Both go to Line 9 in your source code to inspect the problem manually and find a font-size dimension that is standards compliant. Save and retest. e. None of these
@jim_thompson5910
When I searched around, I found every example having 100% and not 100 pct the difference being how they wrote percent
so I'm not sure if pct is even allowed in css
its E pct stands for nothing in html
so HTML ignores pct? and just thinks it's 100 px? Or 100 pt?
yea but it says css so idk
CSS is a subset of HTML
you use CSS to define font sizes, spacing, position, alignment, etc in an HTML document
absolute units (cm, mm, in, pt and pc) mean the same in CSS as everywhere else i see no pct
yeah so I think the proper fix is to turn "100pct" into "100%"
what letter is that ?
cm = centimeter mm = millimeter pt = point pc = pica
give it a shot and tell me what you think
pct could equal percent
pct doesn't work when I try it, so it's not defined in CSS
try it through here http://www.w3schools.com/cssref/tryit.asp?filename=trycss_font-size
so i was right the answer is E
no
like I said, pct is NOT defined
the browser doesn't know how to render it
sooo C
why C?
wait wait D its d
why?
cause u have to find the font size dimension and manually put it in
yeah go to line 9, change to 100% or something like 14px or 12pt
so it is D!!!
yep
bam ur awesome
thanks lol
Join our real-time social learning platform and learn together with your friends!