You are here:  » css on an existing mod

Support Forum



css on an existing mod

Submitted by Paul1107 on Sat, 2009-11-21 12:35 in

Hi David,

wondered whether you can just help me out on what I hope is a quicky please?

You helped me with a mod on a existing site some time ago whereby I could show rows of featured products from a merchant independently from each other, this was done in the external.php file.

My issue is that when the product name is too long it wraps to a second line and subsequently knocks the rest of the info down, while this is not too much of an issue with firefox, Explorer however displays the lower reaches of the information ie: the call to action, outside the background image I have set to view the information. This looks untidy and unprofessional

I am trying to think of a way to overcome this issue without necessarily reverting to truncated product names or making my background image any bigger than it already is is.

You'll probably get a better idea by viewing {link saved}

Have you any suggestions you an offer please?

Regards

PAul

Submitted by support on Sun, 2009-11-22 13:34

Hi Paul,

I think wrapping the product name in <nobr> should do the trick, or at least force the same behavior in all browsers and then it can be tacked from there. As it's been a while I can't quite remember which file will be generating the content (it's probably called from external.php, may-be something like html/featuredExternal.php), in which you should find (embedded within HTML rather than a line on its own):

print $product["name"];

...try replacing that with:

print "<nobr>".$product["name"]."</nobr>";

If you're not sure of course email me the file and I'll add the mod for you...

Cheers,
David.

Submitted by Paul1107 on Sun, 2009-11-22 15:25

Hi David,

After an initial scare, seems to be work like a treat!

Thanks once again

Paul