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.

IE7 Broke My Site

Featured Replies

Hi There,

 

I've recently been learning XHTML/CSS (hand coding) and I thought I'd start to put a simple site together - Not a genuine site, but just an exercise. I used one of the free hosts to get it online.

 

Here is the URL:

 

My link

 

The problem is, it works just fine on Chrome, Firefox and Safari (both on Win and Mac), but a few things break when it's viewed on IE7 (and one or two on IE8)

 

Dose anyone please have any ideas how I can fix these?

 

It should look like this:

 

chromebu.jpg

By nomos66 at 2011-06-09

 

But it looks like this:

 

iebe.jpg

By nomos66 at 2011-06-09

Each browser is different in how they look at CSS, the standards and rules they support and the way they read them, Firefox, Chrome and Safari are fairly similar to each other (in the ways stated above) but Internet Explorer doesn't share the same levels of similarity, however IE 8 was a step in the right direction and IE 9 support for CSS has bought it a lot closer towards the amount of shared/common support that the other browsers offer, anything below IE 8 however is going to cause you a little hassle from time to time due to it's fairly significant differences, the best way to get round it is simply add a conditional comment and then define specific CSS (or stylesheets if there's a lot to change) for the various versions of IE.

Bare in mind that IE 7 doesn't support CSS3 at all (the reason for the problem with the border-radius in your image above) and IE 8 only supports some features of CSS3.

Personally I don't design/build anything to support IE 6 or below, IE 7 is annoying enough as it is without having to fix problems in IE 6 as well, although I don't think there are that many people using IE 7 any more and even less using version 6.

Edited by Alex Seymour

  • Author

Cheers for the reply, but I'm not using any CSS3, rounded boxes were made using two small images on each corner, each in a separate div.

I really can' see why this dosen't work in IE7, it's all just XHTML and CSS2.

 

If anyone can tell me how to add EI specific code I'd be eternally grateful.

 

si

You are not using CSS in the way it's intended. You've pretty much replicated a tabled-based layout with divs.

 

If you coded this thing correctly I think it would handle being cross-browser compatible quite well.

 

I'd go read up on basic CSS layout. Switch to using a list for your buttons and cut down on the massive amount of divs (all with IDs or classes, none the less) and your results in IE should be much more consistent.

It's not a case of 'IE7 broke my website' more of 'my website broke IE7'

 

:rofl:

 

The design is gorgeous... but the code still has a bit to go.

 

A lot better then my learning sites pal. So don't worry about it.

  • Author

Thanks guys, I guess it's back to the drawing board then.

Although bare in mind that it is my first ever effort.

si

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.