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

Newbie needs to modify CSS...

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 07-19-2016, 06:45 AM
 
kontrabass_forum kontrabass_forum is offline
 

Advanced Member
  
Join Date: Mar 2016
Posts: 41
 

Default Newbie needs to modify CSS...

Hi!

So, I'm using the ToolStore template from xcart, and when the window is a certain size, the navbar ends up getting pushed down below the logo, so that there ends up being a ton of whitespace at the top (see first screenshot). The width of the navbar is "100%".

In the second screen, I unchecked "width: 100%" in chrome's css elements, and it displays correctly as shown in second screenshot.

So my question is, where do I edit, to make this CSS change?

thanks!!!
Attached Thumbnails
Click image for larger version

Name:	Screenshot at Jul 19 09-41-07.png
Views:	144
Size:	291.3 KB
ID:	4621  Click image for larger version

Name:	Screenshot at Jul 19 09-44-10.png
Views:	139
Size:	353.5 KB
ID:	4622  
__________________
x-cart 5.3.x
Reply With Quote
  #2  
Old 07-19-2016, 11:52 AM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: Newbie needs to modify CSS...

So the code you want to add is:
Code:
@media (max-width: 1199px) and (min-width: 992px) { .navbar-inverse ul#top-main-menu { width: auto; } }

You can add it in a couple places, the best one being in your own custom module. If you are comfortable building a custom module that is whaere you should do it. If you are looking for an easier way, you can add this snippet under Look and Feel-> Custom CSS. If you are already using custom CSS (the use custom CSS box is checked) then just add it to the bottom of the file and save. If not, check the box, empty the code that is there if any, and then add your snippet and save.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote

The following 2 users thank totaltec for this useful post:
kontrabass_forum (07-19-2016), qualiteam (07-21-2016)
  #3  
Old 07-19-2016, 12:06 PM
 
kontrabass_forum kontrabass_forum is offline
 

Advanced Member
  
Join Date: Mar 2016
Posts: 41
 

Default Re: Newbie needs to modify CSS...

Awesome, thanks! I added it to custom CSS, works great.
__________________
x-cart 5.3.x
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may 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:27 AM.

   

 
X-Cart forums © 2001-2020