On 22/07/2011 2:34 PM, Ghodmode wrote:
On Fri, Jul 22, 2011 at 4:02 AM, "G.Sørtun"<[email protected]>  wrote:
On 21.07.2011 20:30, John wrote:

Well, I am getting closer to tackling this issue, yet my playing with
values in the below body:after code didn't fix the issue which can be seen
in the screengrab here:

http://www.coffeeonmars.com/afterResults.jpg

Have more or less lost track of what you're trying to achieve...

I'm getting confused too, but I think I understand what we want to achieve.

So, I applied my original recommendation...  I just copied my body:after
block into the stylesheet and this is what I came up with:

     http://www.ghodmode.com/testing/coffeeonmars/

It works just like I said it would in Firefox, Chrome, Opera, and
IE9... not so much in earlier versions of IE.


I saw a lot of mistakes in the code like opening tags without closing
tags and stuff that just didn't make sense.  I couldn't leave well enough
alone, so I modified it:

     http://www.ghodmode.com/testing/coffeeonmars/fixed/


Delete the whole declaration block of _body:after_ and amend these two style blocks.


.livebar {
  width: 770px;
  min-height: 100%;
  overflow: auto;
  margin: 0px auto;
  background-color: #626862;
}
* html .livebar {
  height: 1%; /* For IE6 since overflow: auto does not trigger hasLayout */
}

#menu {
  float: left;
  clear: left;
  margin: 1em 0 0 0;
  background-color: #808580;    
  width: 130px;
  border:solid #424842;
  border-width: 1px 0;
}


The layout should work in all browsers consistently. BTW, the below comment is not quite true.

  /* Margins are handled inconsistently on different
   * browsers.  Since this object is absolutely positioned
   * anyway, use the position properties to position it
   * instead of the margin.
   margin: 10em 0 0 0;
   */


Please view these two test in IE7 comp. mode and you may understand what is happening with IE7.

http://css-class.com/test/bugs/ie/haslayout-margins.htm

http://css-class.com/test/bugs/ie/floatsandblockelements.htm

And this article.

http://www.satzansatz.de/cssd/onhavinglayout.html



--
Alan Gresley
http://css-3d.org/
http://css-class.com/
______________________________________________________________________
css-discuss [[email protected]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to