Re: [PHP] PHP Site with CSS and Internet Explorer

2010-05-17 Thread Juan Rodriguez Monti
2010/5/15 Jim Lucas :
> Juan Rodriguez Monti wrote:
>>
>> I guys,
>> I'm having some problems with the following.
>>
>> I have a PHP Site working perfectly with HTML and CSS. The CSS runs
>> flawlessly in Firefox and Google Chrome. However, I'm having some
>> problems with Internet Explorer.
>>
>> I'm not able to show it centered ( the .css is to show centered
>> content ) in any version of Internet Explorer. The CSS's Code is
>> available here[0].
>>
>> Might be this is an Off-Topic question, however is closely related to
>> my PHP development.
>>
>> If you know some hack or modification that I should do to make this
>> site compatible with IE, I would appreciate it a lot.
>>
>> Thanks,
>> Juan
>>
>> [0] http://pastebin.com/eLhz2CzM
>>
>
>
> Using your #container { ... } example.  the only change I would make is like
> this
>
> body
> {
>        text-align: center;
> }
>
> #container
> {
>        margin: 0 auto;
>        width: 600px;
>        background:#fff;
>        text-align: left;
> }

Hi Jim,
Thanks. This CSS code solved the IE's problem.

Best,
Juan.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP Site with CSS and Internet Explorer

2010-05-15 Thread Mithun Shitole
On Sat, May 15, 2010 at 7:00 PM, Juan Rodriguez Monti <
j...@rodriguezmonti.com.ar> wrote:

> I guys,
> I'm having some problems with the following.
>
> I have a PHP Site working perfectly with HTML and CSS. The CSS runs
> flawlessly in Firefox and Google Chrome. However, I'm having some
> problems with Internet Explorer.
>
> I'm not able to show it centered ( the .css is to show centered
> content ) in any version of Internet Explorer. The CSS's Code is
> available here[0].
>
> Might be this is an Off-Topic question, however is closely related to
> my PHP development.
>
> If you know some hack or modification that I should do to make this
> site compatible with IE, I would appreciate it a lot.
>
> Thanks,
> Juan
>
> [0] http://pastebin.com/eLhz2CzM
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
Do you use strict dtd?
I faced similar problems, and realized that using strict dtd is way out for
many annoying things that IE does in quirks mode.

-- 
Mithun


Re: [PHP] PHP Site with CSS and Internet Explorer

2010-05-15 Thread Paulo Carvalho

On 15/05/2010 18:19, Jim Lucas wrote:

Juan Rodriguez Monti wrote:

I guys,
I'm having some problems with the following.

I have a PHP Site working perfectly with HTML and CSS. The CSS runs
flawlessly in Firefox and Google Chrome. However, I'm having some
problems with Internet Explorer.

I'm not able to show it centered ( the .css is to show centered
content ) in any version of Internet Explorer. The CSS's Code is
available here[0].

Might be this is an Off-Topic question, however is closely related to
my PHP development.

If you know some hack or modification that I should do to make this
site compatible with IE, I would appreciate it a lot.

Thanks,
Juan

[0] http://pastebin.com/eLhz2CzM




Using your #container { ... } example.  the only change I would make 
is like this


body
{
text-align: center;
}

#container
{
margin: 0 auto;
width: 600px;
background:#fff;
text-align: left;
}

If you use this:

text-align:center; required for ie 5/6
Margin:0 auto;// center the container margin : 0 = top/bottom 
auto=left/right

 you will get a centered layout.
Paulo Carvalho

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP Site with CSS and Internet Explorer

2010-05-15 Thread Jim Lucas

Juan Rodriguez Monti wrote:

I guys,
I'm having some problems with the following.

I have a PHP Site working perfectly with HTML and CSS. The CSS runs
flawlessly in Firefox and Google Chrome. However, I'm having some
problems with Internet Explorer.

I'm not able to show it centered ( the .css is to show centered
content ) in any version of Internet Explorer. The CSS's Code is
available here[0].

Might be this is an Off-Topic question, however is closely related to
my PHP development.

If you know some hack or modification that I should do to make this
site compatible with IE, I would appreciate it a lot.

Thanks,
Juan

[0] http://pastebin.com/eLhz2CzM




Using your #container { ... } example.  the only change I would make is 
like this


body
{
text-align: center;
}

#container
{
margin: 0 auto;
width: 600px;
background:#fff;
text-align: left;
}


--
Jim Lucas

A: Maybe because some people are too annoyed by top-posting.
Q: Why do I not get an answer to my question(s)?
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP Site with CSS and Internet Explorer

2010-05-15 Thread Ashley Sheridan
On Sat, 2010-05-15 at 10:30 -0300, Juan Rodriguez Monti wrote:

> I guys,
> I'm having some problems with the following.
> 
> I have a PHP Site working perfectly with HTML and CSS. The CSS runs
> flawlessly in Firefox and Google Chrome. However, I'm having some
> problems with Internet Explorer.
> 
> I'm not able to show it centered ( the .css is to show centered
> content ) in any version of Internet Explorer. The CSS's Code is
> available here[0].
> 
> Might be this is an Off-Topic question, however is closely related to
> my PHP development.
> 
> If you know some hack or modification that I should do to make this
> site compatible with IE, I would appreciate it a lot.
> 
> Thanks,
> Juan
> 
> [0] http://pastebin.com/eLhz2CzM
> 


Well, you haven't given a link to the site or mentioned what CSS you've
used, so I can only guess.

The traditional way to center an item (horizontally only) is to use
'margin: auto;' and give the element a width. This only works when the
parent element is a block level element with a width that is greater
than that of the object you are trying to center.

This will work in all the major browsers that support CSS.

Thanks,
Ash
http://www.ashleysheridan.co.uk




Re: [PHP] PHP Site with CSS and Internet Explorer

2010-05-15 Thread tedd

At 10:30 AM -0300 5/15/10, Juan Rodriguez Monti wrote:

I guys,
I'm having some problems with the following.

I have a PHP Site working perfectly with HTML and CSS. The CSS runs
flawlessly in Firefox and Google Chrome. However, I'm having some
problems with Internet Explorer.

I'm not able to show it centered ( the .css is to show centered
content ) in any version of Internet Explorer. The CSS's Code is
available here[0].

Might be this is an Off-Topic question, however is closely related to
my PHP development.

If you know some hack or modification that I should do to make this
site compatible with IE, I would appreciate it a lot.

Thanks,
Juan



Juan:

Subscribe to the CSS discus list 
() and post your 
css questions there.


Cheers,

tedd
--
---
http://sperling.com  http://ancientstones.com  http://earthstones.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] PHP Site with CSS and Internet Explorer

2010-05-15 Thread Juan Rodriguez Monti
I guys,
I'm having some problems with the following.

I have a PHP Site working perfectly with HTML and CSS. The CSS runs
flawlessly in Firefox and Google Chrome. However, I'm having some
problems with Internet Explorer.

I'm not able to show it centered ( the .css is to show centered
content ) in any version of Internet Explorer. The CSS's Code is
available here[0].

Might be this is an Off-Topic question, however is closely related to
my PHP development.

If you know some hack or modification that I should do to make this
site compatible with IE, I would appreciate it a lot.

Thanks,
Juan

[0] http://pastebin.com/eLhz2CzM

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php