Skip to content

Footer: Colour & Positioning #266

Closed Answered by falkoschindler
shakamoushie asked this question in Q&A
Discussion options

You must be logged in to vote
  1. For centering the footer you can use the class justify-center.
  2. For the link color you can use !text-white. With "!" you set this style as "important". This is necessary because Quasar set color: #2196f3!important;.

So your code might look as follows:

from nicegui import ui

with ui.footer().classes('justify-center'):
    ui.link('NiceGUI', 'https://nicegui.io/').classes('!text-white')
    ui.label('Version 1.0')

ui.run()

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by shakamoushie
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@falkoschindler
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants