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

Stop speedbar tabs from wrapping

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-17-2007, 07:17 AM
 
canuck canuck is offline
 

Advanced Member
  
Join Date: Oct 2007
Location: Ontario, Canada
Posts: 65
 

Default Stop speedbar tabs from wrapping

XCart Newbie here...

I added a wide image as my logo which filles 2/3 of my header and now I'm trying to figure out how to stop my speedbar tabs from wrapping to 2-3 columns high when the page size is narrowed in my browser. I'm sure there's an easy way through CSS or modifying a template but haven't figured it out. I tried using whitespace: nowrap but either put it in the wrong place or that's the wrong idea.

Thanks in advance for any suggestions...
__________________
X-Cart Gold 4.1.10
AARtech Canada
Reply With Quote
  #2  
Old 11-17-2007, 03:45 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Stop speedbar tabs from wrapping

Well, is the logo too big to fit the speedbar? If so, you should consider making the logo the background for the header so the speedbar is too long it won't wrap.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 11-17-2007, 04:56 PM
 
canuck canuck is offline
 

Advanced Member
  
Join Date: Oct 2007
Location: Ontario, Canada
Posts: 65
 

Default Re: Stop speedbar tabs from wrapping

Quote:
Originally Posted by balinor
Well, is the logo too big to fit the speedbar? If so, you should consider making the logo the background for the header so the speedbar is too long it won't wrap.

I replaced the x-cart logo with my header image which is fine. It isn't in the speedbar at all. However if the browser is too narrow, the speedbar tabs will wrap around.

So I want to know if I can set the speedbar itself to not wrap or if there's some other way to prevent that from happening.
__________________
X-Cart Gold 4.1.10
AARtech Canada
Reply With Quote
  #4  
Old 11-18-2007, 04:13 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Stop speedbar tabs from wrapping

You'd need to recode the header so that the speedbar isn't forced into a table cell.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 11-19-2007, 05:04 AM
 
canuck canuck is offline
 

Advanced Member
  
Join Date: Oct 2007
Location: Ontario, Canada
Posts: 65
 

Default Re: Stop speedbar tabs from wrapping

Quote:
Originally Posted by balinor
You'd need to recode the header so that the speedbar isn't forced into a table cell.

Thanks... I was hoping for something a little more step-by-step...

Or maybe an easy way to have the store resize to a min of X pixels after which the horizontal scrollbar appears... I can try to monkey with it but if it's not too complicated and someone can help with coding the advice is appreciated.
__________________
X-Cart Gold 4.1.10
AARtech Canada
Reply With Quote
  #6  
Old 11-19-2007, 05:08 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Stop speedbar tabs from wrapping

Ok, I really can't give you a step by step as I don't use the Speedbar. Essentially the header is made up of table cells. The speedbar is build with graphics, so you can't resize it, you need to make the table cell that contains the speedbar large enough to contain it. So in the header, the easiest solution is to make the logo a background image and let the speedbar span the whole header cell.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #7  
Old 11-19-2007, 05:11 AM
 
canuck canuck is offline
 

Advanced Member
  
Join Date: Oct 2007
Location: Ontario, Canada
Posts: 65
 

Default Re: Stop speedbar tabs from wrapping

OK, thanks for your help. Based on that I think the problem is that since I replaced the logo with a wide header graphic it's bumping the speedbar cell size to be too small when the window is resized. That makes sense.
__________________
X-Cart Gold 4.1.10
AARtech Canada
Reply With Quote
  #8  
Old 11-19-2007, 05:12 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Stop speedbar tabs from wrapping

Correct.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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 03:50 AM.

   

 
X-Cart forums © 2001-2020