Andrianov 0 Posted January 14, 2006 Report 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. Quote Link to post Share on other sites
~Shinta 0 Posted January 14, 2006 Report Share Posted January 14, 2006 <style>font-color: #yourcolor;</style> Quote Link to post Share on other sites
Andrianov 0 Posted January 14, 2006 Author Report 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. Quote Link to post Share on other sites
boen_robot 107 Posted January 14, 2006 Report 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 . Quote Link to post Share on other sites
F-Man 0 Posted January 14, 2006 Report 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%;} Quote Link to post Share on other sites
smiles 7 Posted January 15, 2006 Report Share Posted January 15, 2006 or th { font-size: ?px; } Quote Link to post Share on other sites
Andrianov 0 Posted January 15, 2006 Author Report 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. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.