Win a copy of Getting started with Java programming language this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

DIV CSS not working properly in lower versions of IE  RSS feed

 
san krish
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • 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]
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65765
130
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
We still support for users who havent moved to latest versions.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65765
130
IntelliJ IDE Java jQuery Mac Mac OS X
  • Likes 2
  • Mark post as helpful
  • send pies
  • 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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!