Question:
HTML QUESTION WiTH ORDERED LIST!? PLZ HELP MEEE?
mzmadel
2007-12-04 20:59:26 UTC

<head>My Project List</head>


  1. Grading

    1. CS 127

      1. Section 1

        1. Quiz 1
        2. Program 1

      2. Section 2

        1. Program 1

    2. CS 128

      1. Program 1
      2. Program 2

  2. Lectures

    1. CS 127

      1. Selection Statements

    2. Cs 128

      1. Recursion







        my problem is how come the a's is not lined up but everything else is lined up, i want the a's to line up like the 1st two plz help me i cant figure it out
Five answers:
Fickr
2007-12-04 21:33:32 UTC
You have some syntax errors. must be inside , not the other way round. Here:





My Project List









  1. Grading




    1. CS 127




      1. Section 1




        1. Quiz 1


        2. Program 1




      2. Section 2




        1. Program 1






    2. CS 128




      1. Program 1


      2. Program 2






  2. Lectures




    1. CS 127




      1. Selection Statements




    2. Cs 128




      1. Recursion














And everything is lining up for me.
rob c
2007-12-05 05:20:59 UTC
your question is not clear



1 and 2 Grading and lectures line up

A and B (capitals) line up

You have added i. and ii. section 1 and 2 that line up with the a's and b's down below GRADING/CS128, LECTURES/CS127, and LECTURES/CS128 - if this is what you are talking about - that the a and b under i. Section 1 and the a under ii. Section 2 don't line up with the rest of the lower case a's and b' below them - well look, you have introduced the i. and ii. as list items and they will naturally show up the way they do. You could use the blockquote element to make them line up by doing something like this:









My Project List











  1. Grading



    1. CS 127



      1. Section 1



        1. Quiz 1

        2. Program 1



      2. Section 2



        1. Program 1



    2. CS 128





      1. Program 1

      2. Program 2







  2. Lectures



    1. CS 127





      1. Selection Statements





    2. Cs 128





      1. Recursion















      By the way, you also had your head element in the wrong place - note the change.



      Also, you'll note that the blockquote does cause some line spacing changes vs just using list elements
BigRez
2007-12-05 05:05:44 UTC
Things all line up for me. Which browser are you using? I know some browsers are finicky about not having the closing tags.



When you way they don't line up, are you referring to the a dn b under CS128 lining up with the a under CS127 section 2? If so, that's because they aren't at the same level but they are lined up correctly.
Random Malefactor
2007-12-05 05:31:45 UTC
Would it be because 2 of them are 4 levels deep, and the other 3 are 3 levels deep?



Even though it renders fine in the browser without them, you should always include closing tags in your HTML code -- if for no other reason, because it improves readability.



And I realize that it's impossible to indent anything in a Y!A question (or answer) , but just in case you aren't indenting nested constructs, you should be, again, because it makes the sources infinitely easier to read.
diva42
2007-12-05 05:04:07 UTC
Looks lined up to me


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...