@Arindas Please see an attached layout.html file. You get the idea.
Thanks SP On Sun, Feb 10, 2019 at 2:00 PM Arindam Dasgupta <[email protected]> wrote: > Hi Sandeep, > > As always, Thank you so much. > > I still need to know where do I use these classes in the layout file. The > following codes in the layout file is controlling the navigation bar. How > do I use the classes you mentioned above? Once again I am attaching the > layout file. > > I am sorry if the question is too silly!. > > <!-- Navbar ======================================= --> > <nav class="navbar navbar-default navbar-fixed-top " role="navigation"> > <div class="container-fluid"> > <div class="navbar-header"> > <button type="button" class="navbar-toggle" > data-toggle="collapse" data-target=".navbar-collapse"> > <span class="sr-only">Toggle navigation</span> > <span class="icon-bar"></span> > <span class="icon-bar"></span> > <span class="icon-bar"></span> > </button> > {{=response.logo or ''}} > </div> > <div class="collapse navbar-collapse navbar-ex1-collapse"> > <ul class="nav navbar-nav navbar-right"> > {{='auth' in globals() and > auth.navbar('Welcome',mode='dropdown') or ''}} > </ul> > {{if response.menu:}} > {{=MENU(response.menu, _class='nav > navbar-nav',li_class='dropdown',ul_class='dropdown-menu')}} > {{pass}} > </div> > </div> > </nav> > > On Sun, Feb 10, 2019 at 10:23 AM sandeep patel <[email protected]> > wrote: > >> @ Arindam, >> Lionel says that create a new .css and store in static/css folder and add >> that path in the layout.html file. Add that path after bootstrap.css >> Even you can directly put a style tag in the layout.html file. Style tag >> will be inside the end of the head tag. Change the font size according to >> your necessity >> You can do this way. >> >> <head> >> >> <link rel="stylesheet" href="{{=URL('static','css/bootstrap.min.css')}}"/> >> <link rel="stylesheet" >> href="{{=URL('static','css/web2py-bootstrap4.css')}}"/> >> <link rel="stylesheet" >> href="{{=URL('static','css/bootstrap-4-navbar.css')}}"/> >> <link rel="shortcut icon" href="{{=URL('static','images/favicon.ico')}}" >> type="image/x-icon"> >> <link rel="apple-touch-icon" href="{{=URL('static','images/favicon.png')}}"> >> >> <style > >> .nav-item > .nav-link{ >> font-size: 20px; >> >> } </style > >> >> </head> >> >> Thanks >> >> SP >> >> >> On Sun, Feb 10, 2019 at 9:46 AM Arindam Dasgupta <[email protected]> >> wrote: >> >>> Hi Lionel, >>> Thanks for your reply. But I cannot understand how to do that in this >>> case. >>> Can you please give me some more details ? >>> >>> Thanks a lot. >>> >>> >>> Redards, >>> Arindam >>> >>> On Feb 9, 2019 8:02 PM, "Leonel Câmara" <[email protected]> wrote: >>> >>> The simplest way is to add another css file to your project after >>> bootstrap and put the styles there. >>> >>> -- >>> Resources: >>> - http://web2py.com >>> - http://web2py.com/book (Documentation) >>> - http://github.com/web2py/web2py (Source code) >>> - https://code.google.com/p/web2py/issues/list (Report Issues) >>> --- >>> You received this message because you are subscribed to the Google >>> Groups "web2py-users" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> For more options, visit https://groups.google.com/d/optout. >>> >>> >>> -- >>> Resources: >>> - http://web2py.com >>> - http://web2py.com/book (Documentation) >>> - http://github.com/web2py/web2py (Source code) >>> - https://code.google.com/p/web2py/issues/list (Report Issues) >>> --- >>> You received this message because you are subscribed to the Google >>> Groups "web2py-users" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> For more options, visit https://groups.google.com/d/optout. >>> >> -- >> Resources: >> - http://web2py.com >> - http://web2py.com/book (Documentation) >> - http://github.com/web2py/web2py (Source code) >> - https://code.google.com/p/web2py/issues/list (Report Issues) >> --- >> You received this message because you are subscribed to the Google Groups >> "web2py-users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> For more options, visit https://groups.google.com/d/optout. >> > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > - http://github.com/web2py/web2py (Source code) > - https://code.google.com/p/web2py/issues/list (Report Issues) > --- > You received this message because you are subscribed to the Google Groups > "web2py-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.Title: {{=response.title or request.application}}
{{=response.flash or ''}}
{{block header}}
{{end}}
{{if left_sidebar_enabled:}}
{{pass}}
{{block footer}}
{{end}}
{{block page_js}}{{end page_js}}
{{if response.google_analytics_id:}}
{{pass}}
{{block center}}
{{include}}
{{end}}
{{if right_sidebar_enabled:}}
{{block right_sidebar}}
{{pass}}

