Re: [css-d] just center

2009-03-22 Thread MEM
MEM wrote: Ok. I have comment this two lines: Now it seems to work in FF. /*height: 20em; */ /*width: 30em; */ If this is OK, I will try to understand the IE part now. Height isn't needed but you'll need the width on #centered. Otherwise you just get a container as wide as the viewport

Re: [css-d] just center

2009-03-22 Thread Gunlaug Sørtun
MEM wrote: I'm confused, what's going on on this code? Simple logic, coded in jscript and expanded/explained here... http://www.gunlaug.no/contents/wd_additions_20.html#item3 ...and there's a link to Microsoft's information on the subject in my page...

Re: [css-d] just center

2009-03-22 Thread MEM
Simple logic, coded in jscript and expanded/explained here... http://www.gunlaug.no/contents/wd_additions_20.html#item3 ...and there's a link to Microsoft's information on the subject in my page... http://msdn.microsoft.com/en-us/library/ms533024.aspx Beyond that I don't want to reiterate stuff

Re: [css-d] just center

2009-03-22 Thread Gunlaug Sørtun
MEM wrote: Thanks for the IE8 info. I didn't know about that. IE8 still supports IE-expressions in its two backwards compatibility modes - emulating IE7 standard mode and IE5.5/6 quirks mode. No need to hide them from IE8 in super-standard mode though, since it simply ignores them then. Most of

Re: [css-d] just center

2009-03-22 Thread MEM
In practice I'm dividing dimensions of body (equal to viewport) and the centered element by 2, and subtract half of one from half of the other to get the offset needed to get the vertical mid-point of the element positioned in the vertical mid-point of viewport yup, clear... *if* (and only if)

Re: [css-d] just center

2009-03-22 Thread david
MEM wrote: I want something really simple, like a little lettering on the center, saying under construction with a logo, or hang on, for example, just to have something there before a site get's done. But well... now that I look at it, I actually don't need the centered div.:S Only the

[css-d] just center

2009-03-21 Thread MEM
Hello to all, I'm trying to learn how to center something vertically and horizontally. I've search and google a lot, but the most of the examples don't work well, so, I cannot learn from there. Either they have browser issues, either issues with certain doctypes there is always something, and

Re: [css-d] just center

2009-03-21 Thread Gunlaug Sørtun
MEM wrote: The hard part on this is that, when I look the source code on this last link, I get a lot of code that I don't get. Ignore it, and use your own visual styling. Is this the reason why this link http://nuvemk.com/index4.html doesn't show thinks centered on firefox? Yes, since

Re: [css-d] just center

2009-03-21 Thread Peter Hyde-Smith
- Original Message - From: MEM tal...@gmail.com To: css-d@lists.css-discuss.org Sent: Saturday, March 21, 2009 12:34 PM Subject: [css-d] just center Is this the reason why this link http://nuvemk.com/index4.html doesn't show thinks centered on firefox? Márcio Marcio: The div id

Re: [css-d] just center

2009-03-21 Thread MEM
-Original Message- Hello to all, I'm trying to learn how to center something vertically and horizontally. I've search and google a lot, but the most of the examples don't work well, so, I cannot learn from there. Either they have browser issues, either issues with certain doctypes there

Re: [css-d] just center

2009-03-21 Thread Gunlaug Sørtun
MEM wrote: Ok. I have comment this two lines: Now it seems to work in FF. /*height: 20em; */ /*width: 30em; */ If this is OK, I will try to understand the IE part now. Height isn't needed but you'll need the width on #centered. Otherwise you just get a container as wide as the viewport