Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

CSS Question


Guest

Recommended Posts

Posted

Well I was trying to edit the look of the catalog and was wondering the difference between

tr. and td.

 

for exampl:

tr.headerNavigation

td.headerNavigation

 

and so on...why are there two options? Does td relate to the look of the catalog itself and tr is for the administration?

 

Anyone knows the answer?

Posted

Do a google search for "html table tutorial" and you'll find a wealth of information about dealing with tables. The basics:

 

<table> creates a table - much like a table in Word if that's what you're used to.

<tr> creates a row in the table you just created.

<td> creates a cell in that row.

</td> ends the cell

</tr> ends the row

</table> ends the table.

 

All of those tags can have modifiers - you can set the height and width, assign it a class, lots of good stuff. You can also have tables within tables (aka nested tables).

Chris Dunning

osCommerce, Contributions Moderator Team

 

Please do not send me PM! I do not read or answer these often. Use the email button instead!

 

I do NOT support contributions other than my own. Emails asking for support on other people's contributions will be ignored. Ask in the forum or contact the contribution author directly.

Posted

wow...

 

what a quick response.

 

thank you sooo much for the answer.

 

adieu,

macie

Posted

One last thing...

 

In the stylesheet.css file of oscommerce...does the TR.headerNavigation and TD.headerNaviagtion refer to what you two are talking about?

 

Forgive me for not knowing the answer to what might be a silly mundane question.

 

Thanks again,

Macie

Posted

Say Rankin, Do you have any suggestions for my recent posts? Removing the "New Products" table is driving me CRAZY.

 

CSM

Posted
Say Rankin, Do you have any suggestions for my recent posts? Removing the "New Products" table is driving me CRAZY.

 

CSM

<?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?>

 

Search for that line (around 300) in the index.php file and comment/delete it out

 

<!--?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?-->

Posted

Hi,

 

I don't think your question _really_ got answered. I'm no CSS expert, but the entries you are referring to are classes and used like this:

 

<tr class="headerNavigation">
   <td class="headerNavigation">

 

and refer to thes entries in the stylesheet

 

TR.headerNavigation {
 background: #bbc3d3;
}

TD.headerNavigation {
 font-family: Verdana, Arial, sans-serif;
 font-size: 10px;
 background: #bbc3d3;
 color: #ffffff;
 font-weight : bold;
}

 

Hope that helps,

 

Peter

Posted
Search for that line (around 300) in the index.php file and comment/delete it out
<[color=red]!--[/color]?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?[color=red]--[/color]>

It would be better just to comment out the include:
<?php //include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?>

The HTML comment still outputs into the HTML.

 

Hth,

Matt

Always back up before making changes.

Archived

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

×
×
  • Create New...