EN` Posted September 25, 2009 Report Share Posted September 25, 2009 Pirmo reizi sanāca ļoti piedomāt pie <ul> centrēšanas. Problēma tāda, ka <ul> width nav statisks, so margin:0 auto; nestrādā, margin-left nav jēgas taisīt, jo objekts nebūs vienmēr nocentrēts. Tā arī neizdomāju kā var viņu nocentrēt.. Ir kādas idejas? Izskatās apmēram šādi: <ul><li>1</li></ul> li daudzums palielinās vai samazinās <ul><li>1</li><li>2</li></ul> Quote Link to comment Share on other sites More sharing options...
mefisto Posted September 25, 2009 Report Share Posted September 25, 2009 Paspēlējies ar šito testcase: http://innonesen.se/test/l-25/ Quote Link to comment Share on other sites More sharing options...
Evi Posted September 25, 2009 Report Share Posted September 25, 2009 (edited) text-align: center; tikai pie nosaciijuma, ka li tev buus display:inline vai display:inline-block; Edited September 25, 2009 by Evi Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.