Nu är det så att jag undrar hur jag ska gör för att kunna centrera flera lager med div taggar antingen genom att göra ett div lager som alla andra är i eller på något annat sät
men hur gör man för att centrera div lager i all olika upplösningar?
håller på att koda sida i enkel php/html
Centrerat i PHP m DIV
Code: Select all
<div style="text-align: center;">Centrerade objekt</div>
The three most dangerous things in the world are a programmer with a soldering iron, a hardware type with a program patch and a user with an idea.
In theory, there is no difference between theory and practice. But, in practice, there is.
In theory, there is no difference between theory and practice. But, in practice, there is.
- Jonas Lundh
- Hedersbit
- Posts: 2513
- Joined: 2002-03-07 22:43:22
- Contact:
Det fungerar bara i IE. I Opera och Phoenix blir bara texten centrerad inom objektet och objektet är fortfarande vänsterjusterat.
Jag har också letat efter en sån funktion men det ser inte ut att finnas någon bra lösning på det.
Jag har också letat efter en sån funktion men det ser inte ut att finnas någon bra lösning på det.
"One does not simply walk into the Signals and Systems exam. Its black gates are guarded by more than just exam guards. There is evil there that does not sleep."
Provat
eller
?
Code: Select all
<center></center>
Code: Select all
<div align="center">nånting</div>
The three most dangerous things in the world are a programmer with a soldering iron, a hardware type with a program patch and a user with an idea.
In theory, there is no difference between theory and practice. But, in practice, there is.
In theory, there is no difference between theory and practice. But, in practice, there is.
Orka, det är alldelles för mycket jobb. Kolla på www.phpportalen.net dem kan hjälpa dig.haghala wrote:och vilka är dessa fulhack då? ge mig ett exempel