Onveg Posted October 21, 2007 Report Share Posted October 21, 2007 Дано: список (маркированный. Маркер - картинка). Как можно управлять расстоянием между маркером и текстом рядом стоящим? Quote Link to comment Share on other sites More sharing options...
0 Dimitry Wolotko Posted October 21, 2007 Report Share Posted October 21, 2007 <li><span style="padding:0px 0px 0px 100px;">бла бла бла</span></li> Quote Link to comment Share on other sites More sharing options...
0 rash Posted October 21, 2007 Report Share Posted October 21, 2007 можно, думаю, и просто для li указать padding-left, а то и text-indent'а достаточно будет... Quote Link to comment Share on other sites More sharing options...
0 Dimitry Wolotko Posted October 21, 2007 Report Share Posted October 21, 2007 rash, а вы попробуйте для li указать padding. Quote Link to comment Share on other sites More sharing options...
0 Onveg Posted October 21, 2007 Author Report Share Posted October 21, 2007 Благодарю за помощь. Quote Link to comment Share on other sites More sharing options...
0 rash Posted October 21, 2007 Report Share Posted October 21, 2007 rash, а вы попробуйте для li указать padding.Я обычно text-indent использую, про padding просто предположил, не пробовал.Хотя с чего бы ему не работать? Разве li - это inline-элемент? Quote Link to comment Share on other sites More sharing options...
0 Dimitry Wolotko Posted October 21, 2007 Report Share Posted October 21, 2007 rash, ну вы попробуйте, вопросы отпадут моментально =) Quote Link to comment Share on other sites More sharing options...
0 rash Posted October 21, 2007 Report Share Posted October 21, 2007 Да я верю, что не работает, неясно - отчего. Я почему-то был уверен, что li - это обычный блочный элемент по поведению. Quote Link to comment Share on other sites More sharing options...
0 Dimitry Wolotko Posted October 21, 2007 Report Share Posted October 21, 2007 Видимо inline - что в принципе логично довольно - таки. Quote Link to comment Share on other sites More sharing options...
0 rash Posted October 21, 2007 Report Share Posted October 21, 2007 А фон элемента li занимает всю ширину блока ul или ol, независимо от длины текста, поэтому я и решил, что элемент блочный.Вероятно, он как p - отчасти ведет себя как блочный, а отчасти - как строчный. Quote Link to comment Share on other sites More sharing options...
Question
Onveg
Дано: список (маркированный. Маркер - картинка). Как можно управлять расстоянием между маркером и текстом рядом стоящим?
Link to comment
Share on other sites
9 answers to this question
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.
Note: Your post will require moderator approval before it will be visible.