Solved

Box broken in IE 6

Posted on 2008-10-14
2
325 Views
Last Modified: 2013-11-19
Hi,

I have this website which works fine but the box on right (second yellow box) is broken in IE 6. Having hard time to understand what is it thats breaking it. Works fine in IE7, FF, Safari and Opera.

http://www.paradex.co.uk/iscnew/index.php?option=com_content&task=view&id=80
Joomla CMS 1.0.15
<!-- MAIN BODY START -->

                <?php if ($option != 'com_frontpage' ) { ?>

                <div id="m-body">

                    <div id="mainbody-top"></div>

                    <div id="m-body-center">

                        <div id="m-body-inner">

                            <?php include_once("mainbody.php"); ?>

                         </div>

                    </div>

                    <div id="m-body-bottom"></div>

                </div>

                <?php } ?>

<!-- MAIN BODY END -->

 

 

----------------------------- CSS -----------------------------

#m-body {width: 591px; margin-left: 0px;}

#m-body-top {width: 592px; background: url(../images/content-bg-top.gif) no-repeat; height: 6px;}

#m-body-center {padding: 0; margin: 0; width: 592px; background: url(../images/content-bg-center.gif) repeat-y;}

#m-body-bottom {width: 591px; background: url(../images/content-bg-bottom.gif) no-repeat; height: 7px; margin-bottom: 10px;}

/*#textbox1 a {padding-left: 14px; margin-left: 6px; color: #545454; background: url(../images/ja-moduletable-a-hover.gif) no-repeat; font: 100% Tahoma, Arial, sans-serif;}*/

#m-body-center div {padding: 5px; margin: 0;}

Open in new window

0
Comment
Question by:khawaib
2 Comments
 
LVL 42

Accepted Solution

by:
David S. earned 500 total points
ID: 22713077
IE4-6/Win won't let an element have a height that is less than its line-height.
To fix this you can decrease the font-size and line-height OR use overflow:hidden.

P.S. Are you aware that your page contains XHTML and CSS errors?
http://validator.w3.org/
http://jigsaw.w3.org/css-validator/
0
 

Author Comment

by:khawaib
ID: 22716950
Hi,

Thanks for reply, that sorted the top broken box problem. Can you please have look at this link and see why the bottom is broken. It aligns to the left side and breaks from its position where it should be. I have tried overflow:hidden but it did not work.
http://www.paradex.co.uk/iscnew/index.php?option=com_content&task=view&id=127&Itemid=105

Also on some pages the right column breaks the layout and drops at bottom of left columns.
http://www.paradex.co.uk/iscnew/index.php?option=com_content&task=view&id=127&Itemid=105

(all observations are in IE6)

Not too much bothered for validations at the moment, may look at that later.

Thanks
Note: Points increased
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL (http://www.experts-exchange.com/articles/201/Handling-Date-and-Time-in-PHP-and-MySQL.html) several years ago, it seemed like now was a good time to updat…
Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
In this tutorial viewers will learn how to style rounded corners for elements in CSS using the border-radius property Begin with a normal styled element such as a div: To style all four corners of the div to be the same degree of roundness, use the …
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now