• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

DIV CSS not working properly in lower versions of IE

 
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i have a JSP code with label and input fields in a DIV tag and its associated CSS.
The alignment of these fields look good in IE9+ but not in IE7.

left div is little above and right div pretty lower. We have to support the lower IE versions too.

JSP code:

   <form:form...>
   <DIV class="outer-left-bm">Location: </DIV><DIV class="outer-right-bm"><form:select path="location" items="${locationList}" itemValue="code" itemLabel="desc" /></DIV>
   <DIV class="outer-left-bm">Name: </DIV><DIV class="outer-right-bm"><form:input path="Name" maxlength="20" size="20" /></DIV>
   </form:form>

CSS :

   DIV.outer-left-bm {
    width:50%;
    float: left;
    border: 1px;
    text-align: right;
    margin-bottom: 8px;
   }
   DIV.outer-right-bm {
    width: 50%;
    float: right;
    border: 1px;
    text-align: left;
    margin-bottom: 8px;
   }

Tried clear:both in the DIV but doesnt work for all fields.
 

Any help is appreciated.
Capture.JPG
[Thumbnail for Capture.JPG]
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Why are you supporting IE7? Even Microsoft no longer supports IE8 and earlier.

If there is a good* business reason to support browsers that should no longer be supported then you may have to resort to supplying an alternate experience for those customers using legacy browsers and deal with all the pain and aggravation of supporting that.





* Where "good" means "it generates millions of dollars in revenue that will be lost if we don't support it", and not "some pointy-haired boss insisted we support browsers that belong in the dust bin".
 
san krish
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We still support for users who havent moved to latest versions.
 
Bear Bibeault
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Likes 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Are these users bringing in lots and lots of money? If so, would they actually  stop doing so if you didn't support antiquated browsers?

In my experience, when a user is told "please update to the latest browser" they usually just say "ok". The holdouts are usually Luddite IT departments of large organizations -- but even those shouldn't be relying upon a browser version that even Microsoft is not supporting.

That said, if it does make business sense (unlikely) to support IE7, you're going to need to figure out a variation of the code that works in that browser and deliver that to users still using it. Expensive and foolhardy in my opinion.
reply
    Bookmark Topic Watch Topic
  • New Topic