CSS Footer Menu
3 posts Page 1 of 1
CSS Footer Menu
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.
Re: CSS Footer Menu
Hi,to change the footer settings you will get a good example in below link
https://www.w3schools.com/html/html_layout.asp
--
Farhin Qureshi
.NET Developer
http://www.ifourtechnolab.com
Farhin Qureshi
.NET Developer
http://www.ifourtechnolab.com
Re: CSS Footer Menu
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).
Page 1 of 1