Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Table Font Size.


20113hz

Recommended Posts

Hey, I'm very confused by a piece of coding.

 

This is my table.

 

<table border="1" bordercolor="#FFFFFF" style="background-color:#FFFFFF" width="400" cellpadding="0" cellspacing="0">

<font face="Arial" size="2" color="#000000">

<tr>

<td>E-mail:</td>

<td></td>

</tr>

<tr>

<td>Registered</td>

<td></td>

</tr>

<tr>

<td>Address:</td>

<td></td>

</tr>

<tr>

<td></td>

<td></td>

</tr>

<tr>

<td></td>

<td></td>

</tr>

<tr>

<td>Telephone:</td>

<td></td>

</tr>

</table>

 

Could someone please please re write it so that the font and size are the same as os commerce default?

 

Thank you very much!

Link to comment
Share on other sites

Hey, I'm very confused by a piece of coding.

 

 

 

Could someone please please re write it so that the font and size are the same as os commerce default?

 

Thank you very much!

 

This code is from index.php

<td class="main"><?php echo tep_customer_greeting(); ?></td>

where the class = main, you can substitute any of the existing classes in your stylesheet, or create a new one.

So you would insert a class="something here" in your tables. I have no idea which class you are calling the default. There is a web page in the knowledge base that tells what each class in the stylesheet controls.

 

Tim

Link to comment
Share on other sites

I don't understand that :(

 

I'm a real novice at this.

 

Is there no code I can add to that table to make it the right size/font?

 

This is my website with the page in question.

 

http://coding-filters-direct.com/about_us.php

 

Also if anyone knows how to get rid of that dead link safely could you let me know please as when I try to delete it I manage to delete everything apart from the side bar.

Link to comment
Share on other sites

Hi,

 

He means like this,

 

<table border="0" bordercolor="#FFFFFF" style="background-color:#FFFFFF" width="400" cellpadding="0" cellspacing="0">
<font face="Arial" size="2" color="#000000">
<tr>
<td class="main">E-mail:</td>
<td></td>
</tr>
<tr>
<td class="main">Registered</td>
<td></td>
</tr>
<tr>
<td class="main">Address:</td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
<tr>
<td class="main">Telephone:</td>
<td></td>
</tr>
</table>

 

Are you using GoDady?

 

Thank you

Link to comment
Share on other sites

Is this code from the osC product or did you write it? I'm not sure that all browsers will be happy with a <font> tag stuck between the <table> tag and the first <tr> tag. It's in kind of a "no man's land" there. Try moving your <font> tag to before the <table> tag, and be sure you have a </font> right after </table>. That is, your entire table will be within a font tag.

 

Or, you can get rid of the <font> tag and use CSS (with a class="mytable" in the <table> tag, and .mytable {font: 10pt Arial black;} in your CSS file). This assumes that no other CSS font settings are being applied to "td" and overriding what you set for the overall table.

Link to comment
Share on other sites

Thanks people!

 

That's sorted it!

 

NoID - I'm not using GoDaddy as a host just for the ssl certificate which I'm told isn't working or something. Again novice so no idea.

 

Thanks!

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...