Andrianov Posted January 14, 2006 Share Posted January 14, 2006 I have a 2-column table. There are 20 raws in it. Accordingly, 40 words in the table. I want to change the font size of the words. How can I do it at a time? Give me an example of the script please. Link to comment Share on other sites More sharing options...
~Shinta Posted January 14, 2006 Share Posted January 14, 2006 <style>font-color: #yourcolor;</style> Link to comment Share on other sites More sharing options...
Andrianov Posted January 14, 2006 Author Share Posted January 14, 2006 <style>font-color: #yourcolor;</style><{POST_SNAPBACK}> Sorry, I was asking not about colr, but about font size in the table. Say, I would create a style:<style type="text/css">p {font-size: 80%}</style>That means I should add <p>my word</p> to every word in the table to change the font size of all the words. Thps is rather tiresome. That's why I was asking about some script that allows to change the font size of all the words in thetable at once. Link to comment Share on other sites More sharing options...
boen_robot Posted January 14, 2006 Share Posted January 14, 2006 It's still a CSS question if you know what I mean .This is easy. It just requres a bit more complex selector: <style type="text/css">td p {font-size: 80%}</style> Notice the "td" before the "p". It will change the font of all paragraphs but only when they are inside a table data. It'a good this to give ID's to your tables, so if you want to change the look inly of a specific table you'll say: table#the-table's-id p {font-size: 80%} There are also many other possible combination with selectors . Link to comment Share on other sites More sharing options...
F-Man Posted January 14, 2006 Share Posted January 14, 2006 I don't think he wants to insert paragraph inside his cells (in fact that'd be stupid). td { font-size: 80%;} Link to comment Share on other sites More sharing options...
smiles Posted January 15, 2006 Share Posted January 15, 2006 or th { font-size: ?px; } Link to comment Share on other sites More sharing options...
Andrianov Posted January 15, 2006 Author Share Posted January 15, 2006 Thanks everybody! I solved the problem by creating a new CSS style in Macromedia Dreamweaver_8. Then I applied it to all the columns in the table. I doubt wether it's the best way to do, but it worked. I'll try the method of boen_robot, F-Man and smiles and see how it affects the look of the tet too. 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