indenting

They have: 37 posts

Joined: Oct 1999

I am trying to indent a list. I currently have:

<UL><UL><LI> .... </LI></UL></UL>

It works fine but when I validate it through my editor I get an error. Is there another way to do this without a stylesheet?

Denmark 3's picture

They have: 881 posts

Joined: Feb 2000

 

that makes a space I think.

------------------
~Parker Trasborg~
Formerly- ParkerT and sixflags111

Denmark 3's picture

They have: 881 posts

Joined: Feb 2000

hey it didnt show up!!!

well here it is again

code:

 
[/code]
I think that makes a space.  Just put a couple of those in.

------------------
~Parker Trasborg~
Formerly- ParkerT and sixflags111 
Denmark 3's picture

They have: 881 posts

Joined: Feb 2000

WHAT THE HECK!!! IT ISNT SHOWING UP!

ok here it is again just take out the spaces see if that works.

& n b s p ;

Just put a couple of those in. It makes a space. Remember take the spaces out of between all those up there.

------------------
~Parker Trasborg~
Formerly- ParkerT and sixflags111

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

&nbsp; is &amp;nbsp; if you want to write it on this board...

You can use block quote <blockquote></blockquote>...

Or a nested table.

Suzanne

------------------
Zero Cattle
Suzanne
Tables DeMystified

They have: 37 posts

Joined: Oct 1999

Sorry guys but it doesn't work. The bullet needs to be indented also. With the nbsp; it only indents the text.

[This message has been edited by jules (edited 28 March 2000).]

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

What doesn't work? The non-breaking space?

Did you try the blockquote? The nested table? They HAVE to work, that's what they do. They indent things.

You can also use a DIV but then you will need to use CSS.

If you use a nested table (try the blockquote first) make sure you set the table to whatever you want the indent to be and then rightalign the table, or if you want both sides indented, center it.

Suzanne

------------------
Zero Cattle
Suzanne
Tables DeMystified

They have: 231 posts

Joined: Feb 2000

I have used the code you first posted many times (list within a list) but I have never validated it before. Maybe if you place a space between the first list and the second you might avoid an error.

I would go with Suzanne's suggestion of a table. It is the mosr reliable method. Try the following:

code:

<table>
  <tr>
    <td width="50">&nbsp;</td>
    <td width="50">

<ul>
<li>item1
<li>item2
</ul>

    </td>
  </tr>
</table>
[/code]

[This message has been edited by Lloyd Hassell (edited 30 March 2000).] 

:: Lloyd Hassell :: http://www14.brinkster.com/lloydh ::

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.