holmedwa04 Posted August 29, 2006 Share Posted August 29, 2006 Hi,Does anyone know how I can set the basefont, colour and face of all text in a stylesheet? Link to comment Share on other sites More sharing options...
Cronthenoob Posted August 29, 2006 Share Posted August 29, 2006 body {font-family:family;color:color;}I think that works. Link to comment Share on other sites More sharing options...
holmedwa04 Posted August 29, 2006 Author Share Posted August 29, 2006 so how would I make it size 3, color balck and face arial? Link to comment Share on other sites More sharing options...
aquatsr Posted August 29, 2006 Share Posted August 29, 2006 so how would I make it size 3, color balck and face arial? body {font-size: 12px;color: #000000;font-family: arial;} You need to specify the font-size in pixels. 12px should be about font 3, but you might have to mess with it. Link to comment Share on other sites More sharing options...
Cronthenoob Posted August 29, 2006 Share Posted August 29, 2006 so how would I make it size 3, color balck and face arial? body {font-family:arial;color:black;font-size:3px;} by 3 you mean 3 px? Thats really small. I guess you could put in whatever unit you wanted. Link to comment Share on other sites More sharing options...
holmedwa04 Posted August 29, 2006 Author Share Posted August 29, 2006 body {font-family:arial;color:black;font-size:3px;} by 3 you mean 3 px? Thats really small. I guess you could put in whatever unit you wanted. No I just mean, as in the set sizes, 1,2,3,4,5,6,7 thats all.Thanks it works now, I just need to know how to set the size for text in tables? Link to comment Share on other sites More sharing options...
Cronthenoob Posted August 29, 2006 Share Posted August 29, 2006 if you use td {font-size:12px;}It should overwrite the body font size. Link to comment Share on other sites More sharing options...
Jack McKalling Posted August 29, 2006 Share Posted August 29, 2006 You can read up the (X)html tutorial or the CSS2 reference for that. Link to comment Share on other sites More sharing options...
holmedwa04 Posted August 29, 2006 Author Share Posted August 29, 2006 Thanks, it is all working now. Link to comment Share on other sites More sharing options...
justsomeguy Posted August 29, 2006 Share Posted August 29, 2006 You need to specify the font-size in pixels. 12px should be about font 3, but you might have to mess with it.You can use more than just pixels. You can specify things like points, inches, centimeters, or em (not sure what em stands for). The difference between those types of units and pixels is that on different resolutions, say 800x600 or 1600x1200, text that is 12 pixels will always take up 12 pixels on the screen, but the other units are relative to display size. 1 inch text will always be an inch tall, regardless of resolution. Points are fractions of an inch, so 12pt text will always be the same size across resolutions. 1 inch contains 72 points. Link to comment Share on other sites More sharing options...
holmedwa04 Posted August 29, 2006 Author Share Posted August 29, 2006 You can use more than just pixels. You can specify things like points, inches, centimeters, or em (not sure what em stands for). The difference between those types of units and pixels is that on different resolutions, say 800x600 or 1600x1200, text that is 12 pixels will always take up 12 pixels on the screen, but the other units are relative to display size. 1 inch text will always be an inch tall, regardless of resolution. Points are fractions of an inch, so 12pt text will always be the same size across resolutions. 1 inch contains 72 points.Oh right, so can you specify points also with just the normal <font size=" "> tab? Link to comment Share on other sites More sharing options...
Jack McKalling Posted August 29, 2006 Share Posted August 29, 2006 No, unless that attributes recognises points, but I think it only recognises predefined sizes 1-7. The <font> element is deprecated though, you should use styles instead.http://dhost.info/profmemberone/Pages/deprecated.htm(the server is temporarily down at the moment ) 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