X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Long login name breaks layout (https://forum.x-cart.com/showthread.php?t=12576)

wayfarer 03-03-2005 09:34 PM

Long login name breaks layout
 
Hi everyone,

I've searched the forums but haven't come across anything that might resolve this. I have noticed that when a user has a particularly long login name, it breaks my layout and pushes the login box out really wide. I have been trying to get the css overflow attribute to work somehow to either clip the long username or to add the '...' three dots as in the text-overflow: ellipsis attribute.

Where should I put the css attribute to resolve this problem in the authentication box, showing the username when someone is logged in?

Any help would be much appreciated...

Jon 03-03-2005 10:01 PM

You could instead truncate the username by using something similar to this in your template:

{$login|truncate:30}

wayfarer 03-03-2005 10:55 PM

:D That is stunningly good! Thankyou SOO much! Just perfect.


All times are GMT -8. The time now is 10:31 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.