Zaloguj | Zarejestruj | FAQ
Anonymous

CSS Footer Menu

+ Odpowiedz

Posty: 3 Strona 1 z 1


CSS Footer Menu

przez alessandrofoglia » Wt lut 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.
Avatar użytkownika

alessandrofoglia

  • Posty: 1
  • Dołączył(a): Wt lut 07, 2017 1:22 pm

Re: CSS Footer Menu

przez Farhin Qureshi » Wt lut 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
Avatar użytkownika

Farhin Qureshi

  • Posty: 45
  • Dołączył(a): Wt sty 03, 2017 11:33 am
--
Farhin Qureshi
.NET Developer
http://www.ifourtechnolab.com

Re: CSS Footer Menu

przez sanmison » N lip 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).
Avatar użytkownika

sanmison

  • Posty: 6
  • Dołączył(a): N lip 09, 2017 7:14 pm
  • Lokalizacja: Poland


+ Odpowiedz

Strona 1 z 1