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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T21:12:50+00:00 2026-05-15T21:12:50+00:00

The Ajax control toolkit tab panel automatically inserts a space by all four corners

  • 0

The Ajax control toolkit tab panel automatically inserts a space by all four corners of the body. For example, go to http://www.asp.net/ajax/ajaxcontroltoolkit/Samples/Tabs/Tabs.aspx and look at the TabPanel on the page. The is a space before “Signature:” and “Bio:” labels. How can I set the space-width to 0px; in the tabPanel body?

  • 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-15T21:12:51+00:00Added an answer on May 15, 2026 at 9:12 pm

    I was having a very similar problem with the whitespace between the tab headers. The tab headers are <span> tags, so most browsers render the whitespace as a text node in the DOM. To remove the ignorable whitespace nodes, call a JavaScript function when the page loads, like this:

    function fixTabContainer() {
        var tabContainerHeader = $get('<%#TabContainer1.ClientID%>' + '_header');
        var children = tabContainerHeader.childNodes;
        for (var i = 0; i < children.length; i++) {
            if (is_all_ws(children[i])) {
                tabContainerHeader.removeChild(children[i]);
                i--;
            }
        }
    }
    
    /**
     * Determine whether a node's text content is entirely whitespace.
     * (From https://developer.mozilla.org/en/whitespace_in_the_dom)
     * @param nod  A node implementing the |CharacterData| interface (i.e.,
     *             a |Text|, |Comment|, or |CDATASection| node
     * @return     True if all of the text content of |nod| is whitespace,
     *             otherwise false.
     */
     function is_all_ws(nod) {
         // Use ECMA-262 Edition 3 String and RegExp features
         return !(/[^\t\n\r ]/.test(nod.data));
     }
    

    The script finds the <div> that holds the tab headers and loops through those header <span> elements. It removes all nodes that contain only ignorable whitespace (which it determines with the second function).

    Note: The IE8 DOM unfortunately doesn’t include text nodes (it’s a known bug).

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

Sidebar

Ask A Question

Stats

  • Questions 489k
  • Answers 489k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer #nav a:hover { background: url('Images/Nav_Hover.png') no-repeat 10px 20px; } Where… May 16, 2026 at 9:06 am
  • Editorial Team
    Editorial Team added an answer You need to do two things: Set background view (color)… May 16, 2026 at 9:06 am
  • Editorial Team
    Editorial Team added an answer People don't use a Dependency Injection Framework to generate the… May 16, 2026 at 9:06 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

In the Ajax toolkit you can use a Tab Container and add TabPanels to
I'm using the TabContainer/TabPanel components of the Ajax Control Toolkit. I'd like to hide
I have installed the AJAX Control Toolkit following the included instructions and I'm trying
I'm attempting to write an AJAX control extender that can modify an AJAX Control
I created new web project using VS 2008 with enabled Ajax template with C#
I have an interesting problem when using partial page update in asp.net with scriptmanager
I've got an ASPX page set up that loads and displays dynamic data from
I've a webpage which contains a TabContainer <%@ Register Assembly=AjaxControlToolkit Namespace=AjaxControlToolkit TagPrefix=cc1 %> ...
So I have a file called WebParts.aspx which looks like this - <%@ Page

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.