Color and other footer's parameters in Liferay

狂风中的少年 提交于 2019-12-02 19:31:11

问题


I need to create footer which will be just like small orange bar, and I need to make it responsive, I mean when I resized my window everything should be ok. How can I do that?

<footer id="footer" role="contentinfo">
    <p class="powered-by">
        #language ("powered-by German") 
    </p>
</footer>

This is my <footer> tag in portal_normal.vm


回答1:


To make your footer responsive, you can use Liferay supported Twitter Bootstrap classes, aided by your own custom styles controlled through media queries in custom.css of theme:

Example:

<div id="footer" class="row-fluid">
    <div class="span12 text-center">
        <p class="powered-by">
            #language ("powered-by German")
        </p>
    </div>
</div>

Liferay Reference




回答2:


In my custom.css I write this:

#footer {
    text-align: center;
    background: #ffa500
}

and get orange centered footer.



来源:https://stackoverflow.com/questions/39634673/color-and-other-footers-parameters-in-liferay

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!