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.

CSS nav bar issue IE

Featured Replies

Hi Guys,

 

For some reason, a site I'm working on is resizing strangely in Internet Explorer & I think it is something to do with the CSS Nav bar. It's fine in Firefox & Safari - just IE.

 

The site is http://www.imaginecapeverde.com & I've attached a screen shot of how it should look...

 

If anyone can see the problem I would really welcome the help!

 

Thanks.

 

51

screen.tiff

You should have a doctype and a modified html tag at the top of your html file from here:-

http://www.w3.org/QA/2002/04/valid-dtd-list.html

I suggest

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<!--<html> delete original html tag-->

 

Display: inline; for the li tag used to be necessary for older versions of IE, but IE6 and above should be alright with float: left which you already have (provided you have a doctype).

 

Adding a doctype may affect some other styles, so check how the page looks.

  • Author

Thanks for the quick response & help guys. Actually what i've notice now, is that the nav bar displays fine in IE but in firefox & safari part of it is cut off?!

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.