Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6553057
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T12:32:07+00:00 2026-05-25T12:32:07+00:00

I have a problem with ie 7 and nested lists – this looks freaky

  • 0

I have a problem with ie 7 and nested lists – this looks freaky deformed.
This is screenshot

HTML (Django template)

{% for category in category_list %}
       <ul class='cat_post_container'>
         <li class='cat_name' >
             <a href="{{ category.get_absolute_url }}">{{ category }}</a>
         </li>  
         <ul>                              
            {% for post in category.postpages_set.all %}

                <a class='post_name' href="{{ post.get_absolute_url }}">
                    <li class='post_name'>
                        {{ post.title }}
                    </li>
                </a>                    

            {% endfor %} 
            {% for repost in category.redirectpost_set.all %}
                <a class='post_name' href="{{ repost.redirect_url }}">
                    <li class='post_name'>
                        {{ repost.title }}
                    </li>
                </a>  
            {% endfor %}
         </ul>
       </ul>                                                    
    {% endfor %}

CSS

.cat_post_container {
    border-bottom: groove 2px rgba(52, 90, 113, .3);
}

.cat_name {
    line-height: 40px;
    height: 40px;
    margin-top: 15px;
} 

.post_name {
    text-decoration: none;
    width: 100%;
    height: 30px;
    line-height: 30px;
    border-top: groove 2px rgba(52, 90, 113, .3);
    color: #FFED93;
}

.post_name a {
    text-decoration: none;
    color: #FFED93;
    position: relative;
}

What the problem with this? How to make behave it normally?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T12:32:08+00:00Added an answer on May 25, 2026 at 12:32 pm

    move inner ul under the li because now you have not valid HTML

    probably something like this (have no chance to check it):

    {% for category in category_list %}
        <ul class='cat_post_container'>
            <li class='cat_name' >
                <a href="{{ category.get_absolute_url }}">{{ category }}</a>
                <ul>                              
                {% for post in category.postpages_set.all %}
                    <li class='post_name'>
                        <a class='post_name' href="{{ post.get_absolute_url }}">
                            {{ post.title }}
                        </a>
                    </li>
                {% endfor %} 
                {% for repost in category.redirectpost_set.all %}
                    <li class='post_name'>
                        <a class='post_name' href="{{ repost.redirect_url }}">
                            {{ repost.title }}
                        </a>  
                    </li>
                {% endfor %}
                </ul>
            </li>  
        </ul>                                                    
    {% endfor %}
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to tie nested generics/captures together? I often have the problem of
I have a nested function to show/hide paragraphs news-ticker-style. The problem is that when
I have problem compilin this code..can anyone tell whats wrong with the syntax CREATE
So I have some nested lists (only one level deep) and I'm running into
I have a view model that looks like this: public class VenueIndexViewModel : BaseViewModel
I have a question about Nested Lists. I have a class similar to the
I have two sortable lists, one being nested, with a mouse over effect on
I'm a bit confused on how to approach this problem. I have a large
I have a problem with generating html with razor engine. In my case I
I have a problem similar to the one found in this Question I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.