Go Back   WarriorForum - Internet Marketing Forums > Warrior Support Forums > Website Design
Register Blogs FAQ Social Groups CalendarHelp Desk

Reply
 
LinkBack Thread Tools
Old 11-19-2009, 11:03 AM   #1
HyperActive Warrior
War Room Member
 
robs132's Avatar
 
Join Date: Nov 2008
Posts: 387
Thanks: 54
Thanked 232 Times in 50 Posts
Social Networking View Member's FaceBook Profile  View Member's Twitter Profile 
Default Margin not appearing in ie7?

Hi,

I'm having problems with the layout of a page appearing differently in ie7 compared to ie8.

In ie8, the page looks fine. However in ie7 the top margin of the div seems to be recognised, but not the bottom margin... so the divs appear all squashed up together

The problem lies with the gaps between the divs with 'change email', 'password' and '****' in

This is the html section I'm looking at:

<div class="buttons" style="height: 20px;">
<div class="right2">
<asp:linkbutton id="buttonChangeEmail" runat="server">
Change email</asp:linkbutton>
</div>
</div>
<div class="myacc_formwrapper">
<div class="fl2">
Password:</div>
<div class="fr3">
***** </div>
<div class="fr2">
</div>
</div>


The CSS for this section is:

.buttons .right2{ float:left; background:url(/images/button-right.png) 100% 0 no-repeat; padding:3px 24px 3px 0; margin: 5px 0 15px 0; }
.buttons .right2{ float:left; background:url(/images/button-right.png) 100% 0 no-repeat; padding:3px 24px 3px 0; margin: 5px 0 15px 0; }.buttons .right2{ float:left; background:url(/images/button-right.png) 100% 0 no-repeat; padding:3px 24px 3px 0; margin: 5px 0 15px 0; }.buttons .right2{ float:left; background:url(/images/button-right.png) 100% 0 no-repeat; padding:3px 24px 3px 0; margin: 5px 0 15px 0; }.buttons .right2{ float:left; background:url(/images/button-right.png) 100% 0 no-repeat; padding:3px 24px 3px 0; margin: 5px 0 15px 0; }.buttons .right2{ float:left; background:url(/images/button-right.png) 100% 0 no-repeat; padding:3px 24px 3px 0; margin: 5px 0 15px 0; }.buttons { list-style:none; font-weight:bold; }
.buttons .right { float:right; background:url(/images/button-right.png) 100% 0 no-repeat; padding:3px 24px 3px 0; }
.buttons .right2 { float:left; background:url(/images/button-right.png) 100% 0 no-repeat; padding:3px 24px 3px 0; margin: 5px 0 15px 0; }
.myacc_formwrapper {width: 100%; overflow: hidden; xpadding-bottom: 7px; line-height: 22px;}
.myacc_formwrapper .fl {float: left; width: 90px;}
.myacc_formwrapper .fr {float: left; width: 230px; color: #333;}
.myacc_formwrapper .fr1 {float: left; width: 140px; color: #333;}
.myacc_formwrapper .fr2 {float: right; width: 90px; color: #333; text-align: right;}
.myacc_formwrapper .fl2 {float: left; width: 90px; margin-top: 20px; }
.myacc_formwrapper .fr3 {float: left; width: 230px; color: #333; margin-top: 20px; }


Any help would be amazing. Thanks,

Robs
robs132 is offline   Reply With Quote
Old 11-19-2009, 11:51 AM   #2
Advanced Warrior
War Room Member
 
Join Date: Feb 2008
Location: Escondido, CA. Becase San Marcos just wasn't hot enough.
Posts: 510
Thanks: 35
Thanked 56 Times in 55 Posts
Default Re: Margin not appearing in ie7?

Robs,
You're only specifying a margin in one instance; .fl2. Have you tried specifying top & bottom margins for all of the classes?
Aronya is offline   Reply With Quote
Old 11-19-2009, 01:32 PM   #3
I cant think of anything.
 
Join Date: Nov 2009
Location: Earth > UK > Wales > Sir Benfro > Cippyn > Field > Farmyard > House > Top Landing > Chair
Posts: 57
Thanks: 4
Thanked 4 Times in 4 Posts
Default Re: Margin not appearing in ie7?

Try deleting the character returns between the lines so:-

<div class="myacc_formwrapper">
<div class="fl2">Password:</div>
<div class="fr3">***** </div>
<div class="fr2"></div>
</div>


Ta

Baz
bazzais is offline   Reply With Quote
Reply

  WarriorForum - Internet Marketing Forums > Warrior Support Forums > Website Design

Tags
appearing, ie7, margin

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -6. The time now is 02:15 AM.