Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Text width to fill LI

Featured Replies

I'm working on a clients website and i have designed the navigation like this

 

Screen_Shot_2014_11_17_at_15_15_21.png

 

Each navigation text link needs to fill the width of the li giving the effect above, i have no idea how to achieve this, i've tried fill text/ bigtext etc but can't seem to get them to work like this.

 

Does anyone have any ideas or code that could help me out?

 

My code for the navigation is below, It will run on wordpress so i don't really want to add classes to the li/a tags.

<div class="nav">
 <ul>
    <li><a href="#">HOME</a></li>
    <li><a href="#">MOVIES</a></li>
    <li><a href="#">PROJECTS</a></li>
    <li><a href="#">CONTACTS</a></li>
 </ul>
</div>	

thanks in advance.

  • Author

I've tried that, doesn't seem to work on li a tags, well at least i can't get it to.

  • Author

@@cibgraphics I've had it working, but instead of setting each font size differently like home 24px, clips 34px and so on for example, it will just set all the li's to say 16px.

 

so each menu item has the same font size...

 

Each menu item needs to be calculated somehow and each would need a different font size.

  • Author

Sorry i forgot to post here, I got it fixed with bigtext, i managed to get that solution to work, thank you for all your help!

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.