who can help me with a CSS font size problem? fix the code that i have, & i'll pick your answer as best answer
i wanted to do a thing where every time i bolded something, it would change color AND size, and same with italics and underlining. the problem is, it's only changing color...can someone fix the code to make it change color and size?
<html><style type="text/css">
B { color: red; } {font-size: 150%}
I, EM { color: blue; }
U { color: 336699; }
</style>
<b>hey</b>
<i>hey</i>
<u>hey</u>
Public Comments
- <html><style type="text/css"> B { color: red; font-size: 150%} I, EM { color: blue; } U { color: 336699; } </style> <b>hey</b> <i>hey</i> <u>hey</u>
- here is a tutorial site you can use ,it has all css answers http://www.w3schools.com/css/default.asp
- <html><style type="text/css"> b{ color: red; font-size: 20pt; } I, EM { color: blue; font-size: pt; } u{ color: 336699; font-family:Chiller; font-weight:bold; font-size:36pt; } </style> <b>hey</b> <i>hey</i> <u>hey</u> </html>
- Hi there Make sure you have a text size set for your <p> text first. My solution for your code would be: <html> <style type="text/css"> p {font-size: 1em;} b, i, em, u {font-size: 150%} b { color: red } i, em { color: blue } u { color: 336699 } </style> <b>hey</b> <i>hey</i> <u>hey</u> Copy this into your sheet and you'll see it works a treat. espritdogs
Powered by Yahoo! Answers