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.

Display inline IE7.....again! Sorry!

Featured Replies

Hi guys,

 

I haven't had a problem with displaying my nav bars inline before in IE7, and I have used the same code this time but this time it will not display inline whatever I do! It is just displaying vertically.

 

I 've had a good read about and it seems like people have a lot of problems, and I've tried the applying the suggested 'zoom:1;' to the li and link elements, but still no luck.

 

Here is my CSS for the nav bar.

 

#nav {

width:680px;

height:32px;

float:right;

margin:18px 0px 0px 0px;

}

 

#nav ul {

width:680px;

list-style:none;

display:inline;

}

 

#nav ul li {

float:right;

display:inline;

margin:0px 0px 0px 6px;

}

 

#nav ul li a {

display:block;

height:32px;

float:right;

}

 

Any ideas?

Remove "float:right;" from the li's.

 

Floating an inline element doesn't really work, especially in older browsers. Technically, all floated elements should be a block as floats require a width which inline elements don't have.

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.