Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Long login name breaks layout
 
Reply
   X-Cart forums > X-Cart 4 > Changing design
 
Thread Tools Search this Thread
  #1  
Old 03-03-2005, 09:34 PM
 
wayfarer wayfarer is offline
 

Advanced Member
  
Join Date: Apr 2003
Posts: 56
 

Default 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...
Reply With Quote
  #2  
Old 03-03-2005, 10:01 PM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,175
 

Default

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

{$login|truncate:30}
__________________
|
Our clients strive to be the best in their industry.
We position you for success with our strategically integrated approach to software, search engine optimization and social media.

E-COMMERCE FUTURE
https://www.stackdigital.com

LINKEDIN
https://www.linkedin.com/in/smackdigital
Reply With Quote
  #3  
Old 03-03-2005, 10:55 PM
 
wayfarer wayfarer is offline
 

Advanced Member
  
Join Date: Apr 2003
Posts: 56
 

Default

That is stunningly good! Thankyou SOO much! Just perfect.
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 09:35 PM.

   

 
X-Cart forums © 2001-2020