By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,527 Members | 919 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,527 IT Pros & Developers. It's quick & easy.

Indirectly Changing Background Colors in Cells

P: 4
I'm sort of locked into a template from this software my company bought, and it's very restrictive. All color schemes and layouts are site wide only, which creates a bit of a hassle for some pages.

The one think I'm looking for is how to change a single page's background color. It appears that the site's layout is a table, so I guess the question is how do I change the background color of a cell within a table indirectly. I only have access to the head and body of each page, not the entire source, so I have to find work-arounds for some changes.

Here's a link to what I'm describing. I would only like to modify the background of the dark grey body of the page. I've tried it with some CSS but it ended up changing the entire background of the body and main background color since it's evidently one table.
And yes, I am a beginner at this coding stuff.
Any advice is much appreciated.
Oct 27 '06 #1
Share this Question
Share on Google+
4 Replies

P: 7
Apply the css to the table cell only

<td ".css"></td>

or change the color directly

<td fontcolor=" ">
Oct 27 '06 #2

Expert 5K+
P: 7,435
That is so bizarre. I can't get the source code to appear.

One way is to assign an id to the table. <table id="mytable">
Then in css put #mytable{background-color:red)
Oct 27 '06 #3

P: 4
Is there any way I can change the cell's background color through an external style sheet (since I don't have access to edit the table's properties directly in the code, otherwise I could add the id)? I can't find any indentifiers used in that particular cell that I can reference in css to change it.
Oct 27 '06 #4

Expert 5K+
P: 7,435
You could do this but it would affect all tables:
Oct 27 '06 #5

Post your reply

Sign in to post your reply or Sign up for a free account.