Topic: td background doesn't work Pages that link to <a href="https://ozoneasylum.com/backlink?for=11089" title="Pages that link to Topic: td background doesn&amp;#039;t work" rel="nofollow" >Topic: td background doesn&#039;t work\

 
Author Thread
Hiroki
Paranoid (IV) Inmate

From: NZ
Insane since: Dec 2002

IP logged posted posted 10-29-2003 01:52 Edit Quote

Hi, guys. Could you help me about this, please?

code:
<td bgcolor="#C0C0C0" colspan="2" style={font-size:13px;text-align:center;}><b>Order Form</b></td>



I did like above cuz this belowe didnot work:

code:
<td colspan="2" style={font-size:13px;text-align:center; background-color: #c0c0c0}><b>Order Form</b></td>



Why doesn't it work??? I think it seems to be all right. Any thoughts???

Hiroki Kozai

ozphactor
Maniac (V) Inmate

From: California
Insane since: Jul 2003

IP logged posted posted 10-29-2003 01:57 Edit Quote

When using inline styles, you must follow HTML conventions. That is to say, you quote your style rules, like this:

code:
<td bgcolor="#C0C0C0" colspan="2" style="font-size:13px;text-align:center;"><b>Order Form</b></td>


You only enclose them in curly brackets when you use external or embedded stylesheets.

Hiroki
Paranoid (IV) Inmate

From: NZ
Insane since: Dec 2002

IP logged posted posted 10-29-2003 02:05 Edit Quote

Hi, thanks for your help. That is great.
Now it is working. I changed like belowe:

code:
<td  colspan="2" style="font-size:13px;text-align:center;background-color: #c0c0c0"><b>Order Form</b></td>



Can I make it clear again???
So my html file includes external stylesheet like:

code:
<head><link rel="stylesheet" type="text/css" href="hiroki.css"></head>



or

[code]<head><style>xxxxxxxx</style>[code]

I have to do like:

code:
<td  colspan="2" style={"font-size:13px;text-align:center;background-color: #c0c0c0"}><b>Order Form</b></td>



Hmmmm....this is great help. Thaks a lot.




Hiroki Kozai

CPrompt
Maniac (V) Inmate

From: there...no..there.....
Insane since: May 2001

IP logged posted posted 10-29-2003 02:11 Edit Quote

Not really sure what you are asking on the last part. You want to put your style sheets externally?

Just you the code here that you have :

code:
<head><link rel="stylesheet" type="text/css" href="hiroki.css"></head>



open up a new document and paste all your css stuff and name it hiroki.css and save it in the same folder as your pages. Take out all the style stuff in your html page.

Later,

C:\


~Binary is best~

ozphactor
Maniac (V) Inmate

From: California
Insane since: Jul 2003

IP logged posted posted 10-29-2003 02:14 Edit Quote

[EDIT: Not fast enough.]

Um, not quite sure what you mean. A recap:

External styles:

code:
<head><link rel="stylesheet" type="text/css" href="hiroki.css"></head>

...and then in the stylesheet itself...

td { font-size: 13px; text-align: center; background-color: #c0c0c0 }



Embedded styles:

code:
<head><style>
td { font-size: 13px; text-align: center; background-color: #c0c0c0 }
</style></head>



Inline styles:

code:
<td  colspan="2" style="font-size:13px; text-align:center; background-color: #c0c0c0"><b>Order Form</b></td>





[This message has been edited by ozphactor (edited 10-29-2003).]

Hiroki
Paranoid (IV) Inmate

From: NZ
Insane since: Dec 2002

IP logged posted posted 10-29-2003 04:50 Edit Quote

Hi, thanks for your relies.
Last your posts clears me up.
Thanks a lot.

Hiroki Kozai



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu