Jump to content

How to change font size in the table at once?


Andrianov

Recommended Posts

<style>font-color: #yourcolor;</style>

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

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

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

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...