- Posts: 377
- Thank you received: 7
Bootsrap - forcing single column on desktop
11 years 7 months ago #192252
by Dibben
Bootsrap - forcing single column on desktop was created by Dibben
-- url of the page with the problem -- :
80.244.187.39/~houseoflightsco/index.php/lighting
-- HikaShop version -- : 2.3.5
-- Joomla version -- : 3.4.0
-- PHP version -- : 5.4
-- Browser(s) name and version -- : firefox
Hi
I enabled bootstrap for mobile devices and the display looks great on phones but now it has changed all the columns to single 1 column for all views even on desktop, do you know why this would be?
Kind regards
Alex
-- HikaShop version -- : 2.3.5
-- Joomla version -- : 3.4.0
-- PHP version -- : 5.4
-- Browser(s) name and version -- : firefox
Hi
I enabled bootstrap for mobile devices and the display looks great on phones but now it has changed all the columns to single 1 column for all views even on desktop, do you know why this would be?
Kind regards
Alex
Please Log in or Create an account to join the conversation.
11 years 7 months ago #192287
by lousyfool
Need help with customisations of layouts, style or other site development? PM me!
(Don't forget to turn on "E-mail notification of new messages" )
Replied by lousyfool on topic Bootsrap - forcing single column on desktop
Hi,
You're using a Gavick template, which isn't built on Bootstrap. So, you probably want to turn Bootstrap off again in HikaShop, and you should get your columns back then.
You're using a Gavick template, which isn't built on Bootstrap. So, you probably want to turn Bootstrap off again in HikaShop, and you should get your columns back then.
Need help with customisations of layouts, style or other site development? PM me!
(Don't forget to turn on "E-mail notification of new messages" )
The following user(s) said Thank You: Dibben
Please Log in or Create an account to join the conversation.
11 years 7 months ago #192345
by Dibben
Replied by Dibben on topic Bootsrap - forcing single column on desktop
Thanks I think it will be harder to get the non-bootstrap layout to work on mobile then vise versa so by just putting this in template.css:
.hikashop_subcategories ul li{
width:220px;
float:left;
}
.hikashop_products_listing ul li{
width:300px;
float:left;
}
Seems to have fixed the columns on desktop while keeping the mobile friendly single column on mobiles.
.hikashop_subcategories ul li{
width:220px;
float:left;
}
.hikashop_products_listing ul li{
width:300px;
float:left;
}
Seems to have fixed the columns on desktop while keeping the mobile friendly single column on mobiles.
Please Log in or Create an account to join the conversation.
11 years 7 months ago #192351
by lousyfool
Need help with customisations of layouts, style or other site development? PM me!
(Don't forget to turn on "E-mail notification of new messages" )
Replied by lousyfool on topic Bootsrap - forcing single column on desktop
With fixed pixel values it's not as pretty at certain browser widths.
Hint: use % instead.
E.g.
Hint: use % instead.
E.g.
Code:
.hikashop_subcategories ul li{
width:25%;
float:left;
}
.hikashop_products_listing ul li{
width:33.3%;
float:left;
}
Need help with customisations of layouts, style or other site development? PM me!
(Don't forget to turn on "E-mail notification of new messages" )
Please Log in or Create an account to join the conversation.
11 years 7 months ago #192380
by Dibben
Replied by Dibben on topic Bootsrap - forcing single column on desktop
Good idea thanks!
Please Log in or Create an account to join the conversation.
Time to create page: 0.280 seconds