• 0

HTML Table inside a .PHP Site Error


Question

Hi People!

I was hoping you could help me with a problem I have.

i've created an html table, 2 columns, 2 rows to store 4 images in. This however, is in a PHP file that calls everything including the text.

The problem is that the table has an annoying black border and even if i set the border-color"#666666" to blend in with the background is doesn't work.

When I view source, the table itsself looks a bit dodgy -

<table width="100%" border="0" border-color="#666666"> 
  <tr> 

I was wondering if anyone could tell me the correct format in order to make the table border a certain background.

I dont know if its anything in the CSS File but the code before the table is this:

<div id='contentBlack'> 
				<div id='text'> 
					<a name='contentSkip'></a> 

Many thanks for your help.

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

I think border-color has to be bordercolor (all one word).

I'm not sure though, I tend to use external style sheets to style everything.

Link to comment
Share on other sites

  • 0

Have you looked at the stylesheet to ensure that there isn't table {} element doesn't have a defined border width, style and color already applied to it.

I think border-color has to be bordercolor (all one word).

I'm not sure though, I tend to use external style sheets to style everything.

You could have always looked up to double check ;). It is bordercolor if you are doing HTML styling on the table.

Link to comment
Share on other sites

  • 0

As others said, border-color should be bordercolor for HTML use. If you are using CSS, then it uses border: 1px #fff; in styling sheet.

There are HTML and CSS tutorials all over the web. You can learn more on how to create your pages.

Link to comment
Share on other sites

  • 0

You could have always looked up to double check ;). It is bordercolor if you are doing HTML styling on the table.

I could have yes, but so could have the OP :p

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.