zalman Posted January 29, 2008 Share Posted January 29, 2008 Hi guys, I have a .tpl file, using PHP, i've emdded some HTML as soo <ul type="square"> <li/> xxxxx <li/> yyyy </ul> The prob im having is I cant see any of the bullet points..? why is this...? Thanks Z Quote Link to comment https://forums.phpfreaks.com/topic/88419-bullet-points/ Share on other sites More sharing options...
valtido Posted January 29, 2008 Share Posted January 29, 2008 Hi guys, I have a .tpl file, using PHP, i've emdded some HTML as soo <ul type="square"> <li/> xxxxx <li/> yyyy </ul> The prob im having is I cant see any of the bullet points..? why is this...? Thanks Z <ul type="square"> <li> xxxxx</li> <li> yyyy</li> </ul> Quote Link to comment https://forums.phpfreaks.com/topic/88419-bullet-points/#findComment-452518 Share on other sites More sharing options...
zalman Posted January 29, 2008 Author Share Posted January 29, 2008 thank you for your speedy response, tried. <ul type="square"> <li>xxxx</li> <li>xxxx</li> <li>xxx</li> </ul> Still same prob. Do you think I should write a sepearate CSS snippet for this? Quote Link to comment https://forums.phpfreaks.com/topic/88419-bullet-points/#findComment-452531 Share on other sites More sharing options...
valtido Posted January 29, 2008 Share Posted January 29, 2008 check on your css if you have list-style: none; or something like that and change none to square lool Quote Link to comment https://forums.phpfreaks.com/topic/88419-bullet-points/#findComment-452535 Share on other sites More sharing options...
zalman Posted January 29, 2008 Author Share Posted January 29, 2008 thank you again, I will check. Quote Link to comment https://forums.phpfreaks.com/topic/88419-bullet-points/#findComment-452543 Share on other sites More sharing options...
PokeTech Posted January 31, 2008 Share Posted January 31, 2008 Well you can just do this: <li>Text</li> <li>Text here</li> <li>Etc...</li> Like that I don't think you really even need the <ul> Unless your giving them a name. Quote Link to comment https://forums.phpfreaks.com/topic/88419-bullet-points/#findComment-454703 Share on other sites More sharing options...
ToonMariner Posted February 1, 2008 Share Posted February 1, 2008 You do need <ul> because li is a LIST item and as such belongs to a LIST (UNORDERED or ORDERED).. The original poster shoudl check to see if there is any css being applied to the page - look for list-style-type: none (or image) and padding/margin on the list items. Quote Link to comment https://forums.phpfreaks.com/topic/88419-bullet-points/#findComment-455366 Share on other sites More sharing options...
rhodesa Posted February 1, 2008 Share Posted February 1, 2008 This should override anything that is in your CSS: <ul style="list-style:square;"> <li>xxxx</li> <li>xxxx</li> <li>xxx</li> </ul> Quote Link to comment https://forums.phpfreaks.com/topic/88419-bullet-points/#findComment-455369 Share on other sites More sharing options...
SuperBlue Posted February 1, 2008 Share Posted February 1, 2008 for lists to have same margin cross-browser, use margin: 0;, on the ol/ul if you then cant see the bullets you would do add a padding of 1em to the left, (padding: 0 0 0 1em; should be enough.) The above padding is equivalent to padding-left: 1em; Example: <ul style="list-style-type: disc;margin: 0;padding: 0 0 0 1em;"> <li>Test</li> <li>Test</li> <li>Test</li> <li>Test</li> </ul> Quote Link to comment https://forums.phpfreaks.com/topic/88419-bullet-points/#findComment-455395 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.