Same Background Using Tables and CSS...

User 53489 Photo


Ambassador
10 posts

A bit frustrated, I cannot seem to figure out how to get the Background I want to be uniform on the page using Tables and CSS

I want one look and the Tables to be Transparent as far as color goes only to pick up the background image I am using in the body statement for CSS

Is this possible?

Thanks in advanced
User 364143 Photo


Guest
5,410 posts

As long as this code is in the style section

body{
background-image: url("yourpic.jpg")
}

and your table lacks a bgcolor attribute, then the picture will be in the background of a transparent table.
CoffeeCup... Yeah, they are the best!
User 53489 Photo


Ambassador
10 posts

Dang do I feel stupid right now

Thanks so much, I guess to much Coffee is a bad thing :)

I can not tell you how long i have been staring at this and thinking why does it work here and not on this one

Thank you so much

I will go back to my hole now, gad I feel dense LOL
User 364143 Photo


Guest
5,410 posts

Not a problem. I learned, through desktop application building, that when I got stuck on something where my program had errors that I should just walk away for a while because tunnel vision will only leave you banging your head against the desk.
CoffeeCup... Yeah, they are the best!
User 53489 Photo


Ambassador
10 posts

LOL
Ya I got two solid bumps on my noggin now :)

Merry Christmas

Thanks again
User 2073490 Photo


Registered User
154 posts

I'm using tables, and I DON'T want them to all have the exact same format. How can I override this?
Basically, all I want to do is have a border on one table per page, and the rest of the tables on the page with no border at all. I don't guess I know how to style tables within the html if that is what I have to do!
User 364143 Photo


Guest
5,410 posts

You can either assign classes to the tables to style them or use inline styles.
CoffeeCup... Yeah, they are the best!
User 2073490 Photo


Registered User
154 posts

AH Ha! Thanks :) I feel silly:rolleyes:
I have never used classes before, but I will give it a whirl!
User 2073490 Photo


Registered User
154 posts

Ok, not silly anymore! I tried adding classes, and nothing moved! Don't know how to do inline styles. Can someone suggest something that might actually work for me. I'm using a book for reference, but everything I try does nothing.
Here is my table:

<table>
<tr>
<td><p><h3>Are you haunted by low back pain? Meet the Psoas!</h3> Before the infomation age, this part of our anatomy was hardly even heard of. Today, you can bet that every massage expert will refer you to information about this muscle. What you learn about it today may have a profound impact on the way you live your life.
<p/>
<p>If you are being treated by a doctor because of knee problems, hip problems, or pain in your low back, be sure to ask your doctor about this. He may even write you a prescription for
<a href="http://www.associatedcontent.com/article/47311/neuromuscular_massage_description_and.html?cat=5"> Neuromuscular Massage Therapy.</a> Better yet, your health insurance might even pay for it!</p><br><br><a href="psoascont.html">Read more</a></p>
</td>
<td><a href="http://en.wikipedia.org/wiki/Psoas_major_muscle"/><img src="images/image2961.gif" width="200" height="250" alt="Picture of the Hip Flexor muscle" title="Take care of your Psoas!" border="0" align="right"
</td>
</tr>
</table>

I just want a nice margin around the text. That's it!
User 184085 Photo


Ambassador
1,707 posts

try adding to your style sheet

table.style1 {background-color:#80FF80; border:double; border-color:#FF8000; }


and start your table with:

<table class="style1">


:)
Volunteering to help :)
http://www.tbaygeek.ca
My HTML play area
http://www.tbaygeek.ca/test/

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.