Login | Register | FAQ
Anonymous

CSS Footer Menu

+ Post a reply

3 posts Page 1 of 1


CSS Footer Menu

by alessandrofoglia » Tue Feb 07, 2017 1:40 pm

Hi there,

I am a HTML / CSS newbie, and I am trying to install some code on my site which will provide me with a simple menu in the footer.

I got some HTML and CSS from a website which seems to work. However at the same time it also affects the structure of the top main menu at the same time.

Can anyone please advise how I can focus the CSS I found to focus on the footer menu HTML only?


Here is the CSS I have been using:

div.footermenu {width:100%;}
ul {width:100%; list-style:none;}
ul li {float:right; width:150px; font-weight:bold;}
ul li ul {padding:0;}
ul li ul li {float:none; padding:5px 0; font-weight:normal;}


Here is the HTML:

<div class="footermenu">
<ul>
<li>Home</li>
<li>About Us</li>
<li>Contact Us</li>
</ul>
</div>


Thanks.
User avatar

alessandrofoglia

  • Posts: 1
  • Joined: Tue Feb 07, 2017 1:22 pm

Re: CSS Footer Menu

by Farhin Qureshi » Tue Feb 21, 2017 12:46 pm

Hi,
to change the footer settings you will get a good example in below link
https://www.w3schools.com/html/html_layout.asp
User avatar

Farhin Qureshi

  • Posts: 45
  • Joined: Tue Jan 03, 2017 11:33 am
--
Farhin Qureshi
.NET Developer
http://www.ifourtechnolab.com

Re: CSS Footer Menu

by sanmison » Sun Jul 16, 2017 11:57 am

You simply need to add class before your ul li something like this,

.footermenu ul {width:100%; list-style:none;}
.footermenu ul li {float:right; width:150px; font-weight:bold;}
.footermenu ul li ul {padding:0;}
.footermenu ul li ul li {float:none; padding:5px 0; font-weight:normal;}

to avoid affecting Head menu,

of course it is not elegant solutions but should work (I don't know how looks your head menu).
User avatar

sanmison

  • Posts: 6
  • Joined: Sun Jul 09, 2017 7:14 pm
  • Location: Poland


+ Post a reply

Page 1 of 1