multiple table cellpadding with CSS

| No Comments

Let's say you have nested tables on one page, or more simply explained you have one large table with several small tables inside the large one.

You have text and/or a pic in one of the tables and you've used the info from our previous post to accomplish your requirements. Now, you have a need for the text and/or pic in another table to float differently. What can you do?

It's really quite simple. In your CSS write another script like the following:

.table_cellpadding_two {
padding-top: 10px;
padding-bottom: 0px;
padding-left: 0px;
padding-right: 30px;
}

Notice it's named _two to differentiate it from the other script. You could name it most anything you want, but this is just for an example.

You'll also notice we've chosen different padding from the first script and again you can tweak it to suit your requirements.





goto & tag , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

Leave a comment

If you have an apple and I have an apple and we exchange apples then you and I will still each have one apple. But if you have an idea and I have an idea and we exchange these ideas, then each of us will have two ideas.
–George Bernard Shaw

April 2010

Sun Mon Tue Wed Thu Fri Sat
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30  
Creative Commons License
Powered by Movable Type 4.25


pearweed pearweed

pearweed

pearweed

pearweed

pearweed

pearweed

pearweed

pearweed

pearweed

About this Entry

This page contains a single entry by pearweed published on September 16, 2009 8:32 AM.

table cellpadding with CSS was the previous entry in this blog.

applying the CSS with code/html is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.