![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 1 568 Pomógł: 192 Dołączył: 7.03.2005 Skąd: Warszawa Ostrzeżenie: (0%) ![]() ![]() |
Witam. W jaki sposób wyśrodkować ul.
Margin auto dla ul nie działa, chyba że ustawię w css szerokość ul. Jednak tak nie może być. Ten post edytował potreb 7.10.2009, 08:37:35 |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 209 Pomógł: 37 Dołączył: 27.02.2008 Skąd: Kwidzyn Ostrzeżenie: (0%) ![]() ![]() |
Margin auto dla ul nie działa, chyba że ustawię w css szerokość ul. Jednak tak nie może być. w ramach potwierdzenia tego, co zostało napisane wcześniej: "The W3C says, ?If both margin-left and margin-right are auto, their used values are equal. This horizontally centers the element with respect to the edges of the containing block.? Horizontal alignment can be achieved, then, by setting the left and right margins to auto. This is an ideal method of horizontally aligning non-text-based elements; for example, layouts and images. But when center-aligning a layout or element without a specified width, you must specify a width in order for this to work." źródło: http://www.smashingmagazine.com/2009/10/05...etting-started/ może jeszcze to Ci pomoże: http://24ways.org/2005/centered-tabs-with-css efekt końcowy jest taki: http://24ways.org/examples/centered-tabs-with-css/final.html Ten post edytował nitek 7.10.2009, 12:16:11 |
|
|
![]() ![]() |
![]() |
Aktualny czas: 13.10.2025 - 22:21 |