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.

Web Design breaks in IE8

Featured Replies

Hi guys,

 

Was wondering if anyone could help me...

 

I'm trying to do a quick mock-up of a site using Wordpress (Thesis theme).

 

Bascially, everything is ok except for a contact form I have inserted into the footer.

 

The design is here: http://www.invisibleinkwebdesigns.com/ilccomms

 

There are a couple of problems...

 

Firstly, the layout is all weird in IE8 (but fine in Firefox and Safari, etc.). It's like a load of margin/padding has been inserted into the form so the field boxes are too spaced apart.

 

Secondly, the little "(required)" and "(valid email required)" pieces of text shouldn't be displaying between the boxes. They're contained in a span class, which I have set display: none; to in the css. I'm confused about why they're still displaying, despite me doing that.

 

Basically, the code looks like this:

 

<div id="contactform">
   <h3 id="quickcontactform">Quick Contact</h3>
   <div id="usermessagea" class="cf_info "></div>
   <form enctype="multipart/form-data" action="/ilccomms/#usermessagea" method="post" class="cform" id="cformsform">
       <fieldset class="cf-fs1">
           <legend>Quick Contact</legend>
           <ol class="cf-ol">
               <li id="li--2" class="">
                   <label for="cf_field_2">
                       <span>Your Name (required)</span>
                   </label>
                   <input type="text" name="cf_field_2" id="cf_field_2" class="single fldrequired" value="Your Name (required)" onfocus="clearField(this)" onblur="setField(this)"/>
                   <span class="reqtxt">(required)</span>
               </li>
	<li...... etc. etc.

 

As you can see, the "(required)" piece of text is in a span class, which I have styled using:

 

#cformsform legend, #cformsform label, span.emailreqtxt, span.reqtxt {
   display: none;
}

 

But IE seems to still display it!

 

ANY help would be greatly appreciated!!

 

Firstly, the layout is all weird in IE8 (but fine in Firefox and Safari, etc.). It's like a load of margin/padding has been inserted into the form so the field boxes are too spaced apart.

 

Check out:

 

Markup errors

 

Your code is causing IE8 to display in IE7 standards mode, and the errors cascade to your contact form.

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.