← HTML + CSS

[HTML] Problema CSS + Internet Explorer

Lida 3477 vezes

Offline

socarroca 
Membro
Mensagens 3 Gostos 0
Troféus totais: 17
Trófeus: (Ver todos)
Super Combination Combination Topic Starter Level 3 Level 2 Level 1 First Post Karma Nineth year Anniversary Eighth year Anniversary

Ola pessoal, tenho um problema de compatibilidades que me está a deixar louco!
Tenho um template em HTML + CSS...e deparo.me com o seguinte problema, no Firefox, o template aparece corectamente, centrado, etc... e Quando abro com o internet explorer, aparece tudo igual, mas ao invés de o template estar centrado, aparece alinhado á esquerda....


O que posso fazer?

Cumprimentos
Offline

Diogo Oliveira 
Membro
Mensagens 1111 Gostos 3
Feedback +5

Troféus totais: 29
Trófeus: (Ver todos)
Windows User Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Poll Starter Level 5 Level 4 Level 3

O Internet Explorer é sempre a mesma coisa. Pena que tantas pessoas ainda o usem.

Tenta centrar o site no ficheiro HTML:

Código: [Seleccione]
<div align="center">
Conteúdo do body.
</div>

Costuma funcionar.

Mas já agora, como fizeste para centrar o site?
Offline

socarroca 
Membro
Mensagens 3 Gostos 0
Troféus totais: 17
Trófeus: (Ver todos)
Super Combination Combination Topic Starter Level 3 Level 2 Level 1 First Post Karma Nineth year Anniversary Eighth year Anniversary

hh
Offline

bfms 
Equipa
Mensagens 1769 Gostos 40
Feedback +1

Troféus totais: 35
Trófeus: (Ver todos)
Search Level 6 Apple User Super Combination Combination Topic Starter 50 Poll Votes 10 Poll Votes Poll Voter Poll Starter

A div container deverá ter
margin: auto;
width: (largura total do site em pixeis);
Offline

socarroca 
Membro
Mensagens 3 Gostos 0
Troféus totais: 17
Trófeus: (Ver todos)
Super Combination Combination Topic Starter Level 3 Level 2 Level 1 First Post Karma Nineth year Anniversary Eighth year Anniversary

Obrigadao aos dois! Ja resolvi o problema =D
Offline

bfms 
Equipa
Mensagens 1769 Gostos 40
Feedback +1

Troféus totais: 35
Trófeus: (Ver todos)
Search Level 6 Apple User Super Combination Combination Topic Starter 50 Poll Votes 10 Poll Votes Poll Voter Poll Starter

Obrigadao aos dois! Ja resolvi o problema =D

Qual foi a solução então?
Cumps