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 6686257
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T05:09:04+00:00 2026-05-26T05:09:04+00:00

Probably its my first question in ASP.Net. I am new to Web-Programming and trying

  • 0

Probably its my first question in ASP.Net. I am new to Web-Programming and trying to learn it and reading book Wrox ASP.Net 4.0 for Beginners.

I was learning to create Menu Items by using Sitemap as datasource. I made menus and applied the datasource and it is working fine. My problem is, the book result has the menu items displayed with perfect distance. But my Menu items are like placed just beside each other means they don’t cover the length of the page. Below images may help to understand.

My Image:My output

Book Output: Book Output

for datasource:

Here is my code for menu:

<asp:Menu ID="Menu1" runat="server" CssClass="MainMenu" 
    DataSourceID="SiteMapDataSource1" Orientation="Horizontal" 
    StaticEnableDefaultPopOutImage="False" StaticSubMenuIndent="16px">
</asp:Menu?

Css Class

.MainMenu
    {
        border: 1px solid white;
        width: 814px;
        height: 19px;
        background-color : #cccccc;
        text-align : justify;
    }

So ultimately I want to increase the menu items distance like that of book. In my CssClass I even tried text-align : justify but its not working.

Thanks in advance.

  • 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-26T05:09:05+00:00Added an answer on May 26, 2026 at 5:09 am

    Adding this helped and solved my problem.

    .MainMenu ul li
        {
            width: 200px;
        }
    

    Thanks and sorry for bothering everyone.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

First of all, this is probably a stupid question, but I'm new and still
I know this is probably a first year question, but I'm having some problems
This is my first question, probably very silly indeed :) I have a selection
Ok, so this question will probably get closed, but hell, its 4:30 in the
Im new at process creation etc..so probably a basic question. Im creating a fixed
Probably a bit off topic question, but it's something I'm really interested in getting
Okay this is probably a really dumb question, however it's really starting to hurt.
This is probably a simple question for you php whizzes out there but I
This is probably a super simple question, but I'm struggling to come up with
First of all, sorry for the too long question. I know that there are

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.