Sigma Php Ajax framework, Ajax Components, GUI Builder
May 24, 2012, 10:35:07 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Incorrect formating of <LI> and <P> html in simple components (eg. div)  (Read 612 times)
unger
Jr. Member
**
Posts: 14


View Profile
« on: February 07, 2010, 02:27:41 PM »

I am tying to put an ordered number list (using <ol>) or unordered bulleted list (using <ul>) in the html of a div or group element via   this.div21.setHtml("<ul><li>one</li><li>two</li></ul>"). The text appears but I never get any bullets or numbers on the line. Also when is use <p> tags in html I don't seem to get proper formatting either.  Do I need to apply a CSS class? or do something to wrap this html?
Logged
linb
Administrator
Hero Member
*****
Posts: 435


View Profile
« Reply #1 on: February 07, 2010, 05:44:28 PM »

Yes, you need extra CSS.
Logged
unger
Jr. Member
**
Posts: 14


View Profile
« Reply #2 on: February 08, 2010, 01:13:04 PM »

Thanx for a prompt reply... however I am still having a little trouble understanding !

I assume I will have to create a CSS class using something like:

   linb.CSS.addStyleSheet('.normallist{list-style: circle;}','normallist')

The question is then how do I apply this style with the linb component (dialog, group etc.) that the html is inserted in ?
Do I specify a class on the <ul class=normallist> or do I specify it on the code that creates the component ? Or use a custom class on the component ?  A brief example would really be very helpful.

Logged
linb
Administrator
Hero Member
*****
Posts: 435


View Profile
« Reply #3 on: February 08, 2010, 04:52:40 PM »



« Last Edit: February 08, 2010, 04:54:54 PM by linb » Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!