Forum Moderators: not2easy

Message Too Old, No Replies

CSS & List not indenting w/ sidebar

         

draggar

6:46 am on Feb 28, 2007 (gmt 0)

10+ Year Member



OK, this is a litle specific.

I have a CSS site up (wow, really?), it has a sidebar to the left of links (for other pages in the site).

Now, one of the pages is legal mumbo-jumbo BS that lawyers force us to do.

As we all know, these bylaws need to have indentations etc..

So, I used a basic list,
<ul>
<li>Blah</li>
<ul>
<li>Something about Blah</li>
<li>Something more about Blah</li>
</ul>
<li>Another blah

And so on.

My issue is that while the list is next to the side bar, it does not indent, but when it is beyond that, the text moves back over to the left and it does properly indent.

Could it be that since it's already indented (from the sidebar) that it won't indent again? How can I get around this?

Thank you!

alias

8:01 am on Feb 28, 2007 (gmt 0)

10+ Year Member



you've got it wrong.
it should be:

<ul>
<li>Blah
<ul>
<li>Something about Blah</li>
<li>Something more about Blah</li>
</ul>
</li>
</ul>

as you can see, the nested <ul> should be IN the <li>.

draggar

1:42 pm on Feb 28, 2007 (gmt 0)

10+ Year Member



Hmm, I'll check that out, but still a little confusing at why it only happens when it's next to a sidebar.. :S

Edit:
Just did one section of the page and it did not help.

OK, so what happened to the days of simple lists, you know,

<ul>
<li>Blah
<ol>
<li>Something about blah

and so on, no closing, etc.. :S

draggar

3:05 pm on Feb 28, 2007 (gmt 0)

10+ Year Member



OK, I just realized that another legal page has some indents (on the same site), but only the nested-in-nested-in-nested-in-nested-in levels (4-5 levels in).

So, it does seem that the browser is perceiving the indent, from the sidebar, as a list indent, also, therefore not indenting the first 3 lists.

Time to do some playing...

(Edit:)
YESS!

I just put in a <table> at the beginning and a </table> at the end and it works perfectly now! Woohoo!