# How to alter line-height submenu FW css menu other than main level	items

**URL:** <https://discourse.softpress.com/t/how-to-alter-line-height-submenu-fw-css-menu-other-than-main-level-items/15877>\
**Category:** Freeway\
**Created:** [December 16, 2012, 5:07pm UTC](https://discourse.softpress.com/t/how-to-alter-line-height-submenu-fw-css-menu-other-than-main-level-items/15877 "2012-12-16T17:07:59Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![atelier1](https://discourse.softpress.com/letter_avatar_proxy/v4/letter/a/f6c823/32.png) [@atelier1](https://discourse.softpress.com/u/atelier1)\
**Post date:** [December 16, 2012, 5:07pm UTC](https://discourse.softpress.com/t/how-to-alter-line-height-submenu-fw-css-menu-other-than-main-level-items/15877/1 "2012-12-16T17:07:59Z")

</div>

As here [Test log in – KKV](http://www.kkv-b.se/index.php/ny/test)

I have attached a style to the div ny-menu called #menu2013 with a line-height from 500%. Because the designer wanted the menu items with such a line height.

I want that submenu with line height of let say 200%.  
In the FW css menu action I cannot influence the lineheight of the submenu. Is there a way to do this?

Thanks a lot.

* * *

freewaytalk mailing list  
email@hidden  
Update your subscriptions at:  
[http://freewaytalk.net/person/options](http://freewaytalk.net/person/options)

---

<div class="post-metadata">

**Author:** ![Ernie\_Simpson](https://discourse.softpress.com/letter_avatar_proxy/v4/letter/e/a587f6/32.png) [@Ernie\_Simpson](https://discourse.softpress.com/u/Ernie_Simpson)\
**Post date:** [December 16, 2012, 7:12pm UTC](https://discourse.softpress.com/t/how-to-alter-line-height-submenu-fw-css-menu-other-than-main-level-items/15877/2 "2012-12-16T19:12:14Z")

</div>

do you mean like this?  
[http://cssway.thebigerns.com/workbench/du\_jour/atelier-menu/](http://cssway.thebigerns.com/workbench/du_jour/atelier-menu/)

I think you can do better than applying your style to the enclosing div.  
Essentially, you want to affect the behavior of the unordered menus - the  
primary one and then its children. Replace your current code with these:

```
.menu2013 { text-align: left; }

#ny-menu ul { line-height: 5; }

#ny-menu ul ul { line-height: 2; }

```

The first is your original style, which can keep the text-align property if  
you like. The second style sets up the primary menu items while the third  
style covers the submenus.

–  
Ernie Simpson

On Sun, Dec 16, 2012 at 12:07 PM, atelier [email@hidden](mailto:email@hidden) wrote:

> As here [http://www.kkv-b.se/index.php/ny/test](http://www.kkv-b.se/index.php/ny/test)
> 
> I have attached a style to the div ny-menu called #menu2013 with a  
> line-height from 500%. Because the designer wanted the menu items with such  
> a line height.
> 
> I want that submenu with line height of let say 200%.  
> In the FW css menu action I cannot influence the lineheight of the  
> submenu. Is there a way to do this?
> 
> Thanks a lot.
> 
> * * *
> 
> freewaytalk mailing list  
> email@hidden  
> Update your subscriptions at:  
> [http://freewaytalk.net/person/options](http://freewaytalk.net/person/options)

* * *

freewaytalk mailing list  
email@hidden  
Update your subscriptions at:  
[http://freewaytalk.net/person/options](http://freewaytalk.net/person/options)

---

<div class="post-metadata">

**Author:** ![atelier1](https://discourse.softpress.com/letter_avatar_proxy/v4/letter/a/f6c823/32.png) [@atelier1](https://discourse.softpress.com/u/atelier1)\
**Post date:** [December 16, 2012, 7:27pm UTC](https://discourse.softpress.com/t/how-to-alter-line-height-submenu-fw-css-menu-other-than-main-level-items/15877/3 "2012-12-16T19:27:02Z")

</div>

🙂

I knew I did something wrong threre…

I owe you one, thanks a lot.

* * *

freewaytalk mailing list  
email@hidden  
Update your subscriptions at:  
[http://freewaytalk.net/person/options](http://freewaytalk.net/person/options)

---

<div class="post-metadata">

**Author:** ![atelier1](https://discourse.softpress.com/letter_avatar_proxy/v4/letter/a/f6c823/32.png) [@atelier1](https://discourse.softpress.com/u/atelier1)\
**Post date:** [December 16, 2012, 7:31pm UTC](https://discourse.softpress.com/t/how-to-alter-line-height-submenu-fw-css-menu-other-than-main-level-items/15877/4 "2012-12-16T19:31:41Z")

</div>

Now I can also adress the submenu to lower them, so they line up better with their parents.

* * *

freewaytalk mailing list  
email@hidden  
Update your subscriptions at:  
[http://freewaytalk.net/person/options](http://freewaytalk.net/person/options)

---

<div class="post-metadata">

**Author:** ![Ernie\_Simpson](https://discourse.softpress.com/letter_avatar_proxy/v4/letter/e/a587f6/32.png) [@Ernie\_Simpson](https://discourse.softpress.com/u/Ernie_Simpson)\
**Post date:** [December 16, 2012, 7:39pm UTC](https://discourse.softpress.com/t/how-to-alter-line-height-submenu-fw-css-menu-other-than-main-level-items/15877/5 "2012-12-16T19:39:13Z")

</div>

You didn’t really do anything wrong, so don’t blame yourself. There are  
many ways to do things with css - your first style hits the target broadly,  
now you have a way to narrow your focus 🙂

–  
Ernie Simpson

On Sun, Dec 16, 2012 at 2:27 PM, atelier [email@hidden](mailto:email@hidden) wrote:

> 🙂
> 
> I knew I did something wrong threre…
> 
> I owe you one, thanks a lot.
> 
> * * *
> 
> freewaytalk mailing list  
> email@hidden  
> Update your subscriptions at:  
> [http://freewaytalk.net/person/options](http://freewaytalk.net/person/options)

* * *

freewaytalk mailing list  
email@hidden  
Update your subscriptions at:  
[http://freewaytalk.net/person/options](http://freewaytalk.net/person/options)

---

<div class="post-metadata">

**Author:** ![atelier1](https://discourse.softpress.com/letter_avatar_proxy/v4/letter/a/f6c823/32.png) [@atelier1](https://discourse.softpress.com/u/atelier1)\
**Post date:** [December 16, 2012, 7:57pm UTC](https://discourse.softpress.com/t/how-to-alter-line-height-submenu-fw-css-menu-other-than-main-level-items/15877/6 "2012-12-16T19:57:06Z")

</div>

Thank you, but it was incorrect in the structural way. It is hard to structure the styles in the CSS so they do not fight each other but work together if you know what I mean. Maybe time to study a bit more…

* * *

freewaytalk mailing list  
email@hidden  
Update your subscriptions at:  
[http://freewaytalk.net/person/options](http://freewaytalk.net/person/options)
