Forums / Templates, Stylesheets, Page Layout / Boxes displaying differently in IE and FF

Boxes displaying differently in IE and FF

Locked

Views: 909

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
28 Feb 2008, 10:01 AM
#1
brian_flanagan avatar

brian_flanagan

New Zenner

Join Date:
Dec 2007
Posts:
48
Plugin Contributions:
0

Boxes displaying differently in IE and FF

Hi all,

I am having problems with the layout of my page. I have added a new sidebox, but it seems to align differently in IE and FF. The box in question is on the right and at the moment is talking about the next market day. If you view this in IE, it views fine with the border of the box not going beyond the edge, but if you view it in FF, the box appears to be over the edge.

I have tried changing many different settings within Admin and within my CSS files, but I can't seem to get a combination that works.

The current settings in Admin are:

Column Width - Left Boxes: 165px
Column Width - Right Boxes: 165px
Column Width - Left: 165px
Column Width - Right: 165px

The current settings within my CSS file are:

#marketssidebox {
color: #000000;
margin-left: 0px;
margin-right: 0px;
background-color: #eaffca;
text-align: center;
font-family: Arial;
font-size: 11px;
padding-top: 5px;
padding-bottom: 5px;
padding-left: 5px;
padding-right: 5px;
border-top-width: 0px;
border-right-width: 0px;
border-bottom-width: 0px;
border-left-width: 0px;
border-top-style: none;
border-right-style: none;
border-bottom-style: none;
border-left-style: none;
border-top-color: #FFFFFF;
border-right-color: #FFFFFF;
border-bottom-color: #FFFFFF;
border-left-color: #FFFFFF;
}
#navColumnTwo {
padding-top: 10px;
padding-bottom: 10px;
padding-left: 0px;
padding-right: 0px;
background-color: #FFFFFF
}

Any thoughts on how this can be fixed???

28 Feb 2008, 10:15 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Boxes displaying differently in IE and FF

While code is fine a link to where this can be viewed will improve your responses to this issue

Zen-Venom Get Bitten

28 Feb 2008, 11:48 AM
#3
brian_flanagan avatar

brian_flanagan

New Zenner

Join Date:
Dec 2007
Posts:
48
Plugin Contributions:
0

Re: Boxes displaying differently in IE and FF

I'd lose my head if it wasn't screwed on! Sorry about that. Here it is...

https://www.imaginart.com.au

28 Feb 2008, 12:03 PM
#4
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Boxes displaying differently in IE and FF

Change your 'tpl_blank_sidebox.php' to include the following.

<!-- EDIT BELOW THIS LINE --> <div style="width:160px; margin:0 auto; padding:0; text-align:center"> <br /> Your code/input here. <br /> </div> <!-- EDIT ABOVE THIS LINE -->

You can then remove any duplicate declarations within your '#marketssidebox' styling.

Also note, whatever duplicate declarations there are for

  • class="sideBoxContent"
    will over write your ones in
  • id="marketssidebox"
    but not the ones in your 'tpl_blank_sidebox.php' because that's way CSS works. :smile:

The learning is in the doing.

Potent Products

29 Feb 2008, 9:42 AM
#5
brian_flanagan avatar

brian_flanagan

New Zenner

Join Date:
Dec 2007
Posts:
48
Plugin Contributions:
0

Re: Boxes displaying differently in IE and FF

I tried doing what you said, but it didn't help. In fact, the box vanished completely!

Is there way of not having 'sideBoxContent' over write 'marketssidebox'.

Any other thoughts on why this is happening? Seems strange that IE is fine, but FF is not...or if I change things I can have it the other way around.

29 Feb 2008, 11:04 AM
#6
brian_flanagan avatar

brian_flanagan

New Zenner

Join Date:
Dec 2007
Posts:
48
Plugin Contributions:
0

Re: Boxes displaying differently in IE and FF

All,

Problem is fixed! I removed the lines in #marketssidebox that were duplicated in .sideBoxContent and the problem was fixed! I don't fully understand why...but hey, it works!

Thanks :smile: