Jump to content

CSS Rule


Gavin121

Recommended Posts

I've got this so far:<html><head><style type="text/css">p {font-size: 150%}p {color:red}</style></head><body><p>This is the first paragraph</p><p>This is the second paragraph</p></body></html>How about that? Anygood? Anything more I need?

Link to comment
Share on other sites

The only thing I was concerned about was that the question:Write a CSS rule, make all text 1.5 times bigger and set to red. This is a 10 mark question!Seems a bit simplistic!Anything more I can stick in it? Something more advanced?

Link to comment
Share on other sites

make it a 1 liner.

p { font-size: 150%; color: red; }

Look through the css tutorial and you'll find more properties to modify.

Link to comment
Share on other sites

font-family: arial, verdana, 'trebuchet ms';font-weight: bold;font-style: italic;border-bottom: 1px solid black;...

Link to comment
Share on other sites

Write a CSS rule, make all text 1.5 times bigger and set to red. This is a 10 mark question!

Your answer
p {font-size: 150%}p {color:red}
Is this making all text bigger and red ? nope, it's only making <p> text bigger and redto catch all tags use this: body {font-size: 150%;color:red}
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...