skip to main
|
skip to sidebar
Svami Pilorama IT blog
Wednesday, October 31, 2007
Nice way to center HTML element
Just set it's margin css property to "0px auto". Setting "auto" for margin-left and margin-rigth automatically centers elements in all modern browsers except IE5.
Here is workaround for IE5
.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
About Me
Konstantin Galileyev
Aka Svami Pilorama, reflecting his IT experience in this blog
View my complete profile
Blog Archive
►
2010
(1)
►
November
(1)
►
2009
(2)
►
August
(1)
►
February
(1)
►
2008
(6)
►
October
(2)
►
August
(1)
►
April
(1)
►
March
(2)
▼
2007
(9)
▼
October
(2)
Nice way to center HTML element
Cute method for logging exceptions
►
September
(5)
►
August
(2)
Labels
java
linux
.net
audio
exception handling
html
multimedia
right programming style
ubuntu
xubuntu
C/C++
CHM
Visual Studio
WinAPI
Windows
browser
c#
centering
cookie
css
extract
fragment
frame
hardware
help
http
iframe
jdbc
jsf
ms sql
network
oop
openSUSE
os
reqular expression
resource
spring
sql
tcp/ip
time calculation
video
No comments:
Post a Comment