Ask your own question, for FREE!
Computer Science 10 Online
OpenStudy (anonymous):

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?

OpenStudy (anonymous):

. 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

OpenStudy (anonymous):

@jim_thompson5910

jimthompson5910 (jim_thompson5910):

When I searched around, I found every example having 100% and not 100 pct the difference being how they wrote percent

jimthompson5910 (jim_thompson5910):

so I'm not sure if pct is even allowed in css

OpenStudy (anonymous):

its E pct stands for nothing in html

jimthompson5910 (jim_thompson5910):

so HTML ignores pct? and just thinks it's 100 px? Or 100 pt?

OpenStudy (anonymous):

yea but it says css so idk

jimthompson5910 (jim_thompson5910):

CSS is a subset of HTML

jimthompson5910 (jim_thompson5910):

you use CSS to define font sizes, spacing, position, alignment, etc in an HTML document

OpenStudy (anonymous):

absolute units (cm, mm, in, pt and pc) mean the same in CSS as everywhere else i see no pct

jimthompson5910 (jim_thompson5910):

yeah so I think the proper fix is to turn "100pct" into "100%"

OpenStudy (anonymous):

what letter is that ?

jimthompson5910 (jim_thompson5910):

cm = centimeter mm = millimeter pt = point pc = pica

jimthompson5910 (jim_thompson5910):

give it a shot and tell me what you think

OpenStudy (anonymous):

pct could equal percent

jimthompson5910 (jim_thompson5910):

pct doesn't work when I try it, so it's not defined in CSS

jimthompson5910 (jim_thompson5910):

try it through here http://www.w3schools.com/cssref/tryit.asp?filename=trycss_font-size

OpenStudy (anonymous):

so i was right the answer is E

jimthompson5910 (jim_thompson5910):

no

jimthompson5910 (jim_thompson5910):

like I said, pct is NOT defined

jimthompson5910 (jim_thompson5910):

the browser doesn't know how to render it

OpenStudy (anonymous):

sooo C

jimthompson5910 (jim_thompson5910):

why C?

OpenStudy (anonymous):

wait wait D its d

jimthompson5910 (jim_thompson5910):

why?

OpenStudy (anonymous):

cause u have to find the font size dimension and manually put it in

jimthompson5910 (jim_thompson5910):

yeah go to line 9, change to 100% or something like 14px or 12pt

OpenStudy (anonymous):

so it is D!!!

jimthompson5910 (jim_thompson5910):

yep

OpenStudy (anonymous):

bam ur awesome

jimthompson5910 (jim_thompson5910):

thanks lol

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!