Module:NavboxMobile: Difference between revisions
EnWikiAdmin (talk | contribs) No edit summary |
EnWikiAdmin (talk | contribs) No edit summary |
||
Line 228: | Line 228: | ||
:cssText(args.titlestyle) | :cssText(args.titlestyle) | ||
-- Add the title | -- Add the navbar (VTE) and title | ||
titleCell | titleCell:tag('div') | ||
:css('position', 'relative') -- Make positioning independent | |||
:wikitext( | |||
navbar{ | |||
args.name, | |||
mini = 1, | |||
fontstyle = 'position:absolute; left:0; top:0; background:none; border:none;' | |||
} | |||
) | |||
:tag('div') | :tag('div') | ||
:css('text-align', 'center') -- Ensure title remains centered | |||
:wikitext(addNewline(args.title)) | |||
end | end | ||