Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Style not able to apply in the table row


ashras99

Recommended Posts

I added the following code in the includes > modules > product_listing.php

 

if ($listing_split->number_of_rows > 0) {

$rows = 0;

$column = 0;

echo '

 

<table cellspacing=0 cellpadding=0>

<tr><td><img src=images/m29.gif width=490 height=43></td></tr>

<tr><td height=10></td></tr>

<tr><td height=10 class=sc1><img src=images/m27.gif width=4 height=7>   '.$breadcrumb->trail(' » ').'</td></tr>

<tr><td height=10></td></tr>

<tr><td class=bg1>

<table cellspacing=0 cellpadding=0>

<tr>

 

';

 

 

This is working absolutely fine but the problem is style class is not able to apply on the '.$breadcrumb->trail(' » ').' , so on white background, text is also coming white.

 

I tried just giving text color to this table row. But that also not works. Please suggest, how can i fix this within this file.

Edited by ashras99
Link to comment
Share on other sites

I wouldn't consider myself an expert on HTML styles, but you already have a class applied to the text:

 

<td height=10 class=sc1>

Are you certain the problem doesn't lie with that class definition?

:unsure:

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

There is no problem with the class because using this class at other places without any problem and when i removed the '.$breadcrumb->trail(' » ').' from the below line and add a simple text then that is working.

 

<tr><td height=10 class=sc1><img src=images/m27.gif width=4 height=7>   '.$breadcrumb->trail(' » ').'</td></tr>

Link to comment
Share on other sites

You've got other problems.

 

I put that exact code on my osC site (in a test area) and it applies whatever style I choose to put in there.

 

And I tried several different styles just to be sure it was no accident...

:huh:

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

I used several classes, all of them from the "standard" osC stylesheet, like class="pageHeading"

 

If you put your PHP code back in there, and PM me the link to the page it's used on I can probably tell you what the major malfunction is.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...