I´m new with Vaadin and starts to create my first project with.
I want to create a layout with head and foot line for every page.
The head line is for a logo and so on, the foot line e.g. for the obligatory impressum.
Like this:
head line: logo | title | …
content area
foot line: version | … | impressum
My first attempt was with VerticalLayout and HorizontalLayout for head and foot line.
But it doesnt works.
The second one is to use the CustomLayout. But in both cases, i have the same problems.
a) Is it possible to position the foot line on the bottom of the page
and makes the content area greedy? (without Vaadin I use CSS for body and html tags with height 100% and a table to do this)
b) the logo image is never in the middle of the cell (td tag with valign=“middle” in custom layout)
Thank you for your help (and sorry for the beginner questions).
Now i understand better the functioning of the layouts and the components.
With your example code, i build me a working example.
But the logo is still not in the middle.
Can you show me, what my failure is?
And is it possible to set the “cell” width of the logo to a solid value, to have a margin around?
Here my code.
In the contacts theme (from your example from the book), i used only the toolbar css class for the head line backround.