Guest Posted January 28, 2017 Share Posted January 28, 2017 Hi Probably a silly question, but is it possible when in sm md lg view,to have the navbar fixed and in xs view have the nabar floating. If so how please. Many thanks Grandpa Link to comment Share on other sites More sharing options...
aurelou Posted January 28, 2017 Share Posted January 28, 2017 Hi @@grandpaj I think you should do this in user.css : @[member=media] (min-width: 768px) { .YourNavbarClass { position: fixed; } } Replace by your navbar class. Link to comment Share on other sites More sharing options...
Guest Posted January 29, 2017 Share Posted January 29, 2017 @@aurelou Thanks for that. Tried it with a few variations but couldn't get it to work. including changing the template file to nav-fixed-top Cheers Grandpa Link to comment Share on other sites More sharing options...
aurelou Posted January 30, 2017 Share Posted January 30, 2017 @@grandpaj I think you should first make your navbar float in the admin, and then put the code I mentioned. Link to comment Share on other sites More sharing options...
Guest Posted January 31, 2017 Share Posted January 31, 2017 @@aurelou Hi Many thanks, I think I have it sorted. changed CSS just a little to this @[member=media] (min-width: 768px) { .navbar { position: fixed;width:100%;z-index:1000; } } And it seems to work. Many thanks Grandp Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.