Gavin121 Posted March 21, 2006 Share Posted March 21, 2006 Hi people,I've got the following task:Write a CSS Rule that makes all the text 1.5 times larger than the base font of the system and colours it to red.I dont really know how.A example would be great, thanks! Link to comment Share on other sites More sharing options...
real_illusions Posted March 21, 2006 Share Posted March 21, 2006 we cant do your homework for you:)if you make an effort, or show some code that shows you've tried, then we can put you in the right direction.have a look to here to begin with - http://www.w3schools.com/css/default.asp Link to comment Share on other sites More sharing options...
Gavin121 Posted March 21, 2006 Author Share Posted March 21, 2006 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 More sharing options...
vchris Posted March 21, 2006 Share Posted March 21, 2006 You got it! Link to comment Share on other sites More sharing options...
Gavin121 Posted March 21, 2006 Author Share Posted March 21, 2006 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 More sharing options...
vchris Posted March 21, 2006 Share Posted March 21, 2006 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 More sharing options...
Gavin121 Posted March 21, 2006 Author Share Posted March 21, 2006 Ive had a look but I cant find much I can add. Any ideas? Link to comment Share on other sites More sharing options...
vchris Posted March 21, 2006 Share Posted March 21, 2006 font-family: arial, verdana, 'trebuchet ms';font-weight: bold;font-style: italic;border-bottom: 1px solid black;... Link to comment Share on other sites More sharing options...
scott100 Posted March 21, 2006 Share Posted March 21, 2006 Write a CSS rule, make all text 1.5 times bigger and set to red. This is a 10 mark question!<{POST_SNAPBACK}> Your answerp {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 More sharing options...
Gavin121 Posted March 21, 2006 Author Share Posted March 21, 2006 Thanks, I'm going to work on it. Ill post what I get, any tips/suggestions would be good.Thanks! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now