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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T00:43:27+00:00 2026-05-26T00:43:27+00:00

the client want something like this. I can manage the styling (corners and all)

  • 0

the client want something like this. I can manage the styling (corners and all) but i can’t get the “dropdown” to drop under the text in the cell to the left. My html follows. Thanks in advance

enter image description here

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <script type="text/javascript" src="Scripts/jquery-1.4.1.js"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            $('div.outside').hide();

            $('div.selector').click(function () {
                var hidden = $(this).parents('td').find('div.outside :hidden').length > 0;
                $('div.outside').hide();
                if (hidden) {
                    $(this).parents('td').find('div.outside').show().animate('slow');
                } else {
                    $(this).parents('td').find('div.outside').hide().animate('slow');
                }
            });

        });

    </script>
    <style type="text/css">
        ul.action
        {
            list-style-type: none;
            list-style-position: outside;
            padding: 0px;
            text-align: left;
            margin: 0px;
        }
        ul li
        {
            margin: 1px 0px 1px 0px;
        }
        div.content
        {
            border-style: solid;
            border-width: 1px;
            padding: 1px;
            white-space: nowrap;
            overflow: auto;
        }

        div.outside
        {
            width: 200px;
            position: absolute;
            z-index: 100;
        }

        div.top
        {
            width: 200px;
        }
        div.selector
        {
            cursor: pointer;
            padding: 1px 1px 0px 1px;
            float: right;
            border-style: solid;
            border-width: 1px;
            border-bottom-style: solid;
            top: 2px;
            position: relative;
        }
        .popup-dropdown
        {
            background-color: #FFFFE1;
        }
        thead td
        {
            font-weight: bold;
            width: 100px;
        }
    </style>
    <title></title>
</head>
<body>
    <table>
        <thead>
            <tr>
                <td>
                    Name
                </td>
                <td>
                    Rank
                </td>
                <td colspan="2" style="width: 20px;">
                    Style
                </td>
            </tr>
        </thead>
        <tr>
            <td>
                Jimmi Hendrix
            </td>
            <td>
                1
            </td>
            <td>
                Blues-Rock
            </td>
            <td style="width: 20px;">
                <div class='top'>
                    <div class='selector popup-dropdown'>
                        X</div>
                </div>
                <div style='clear: both;'>
                </div>
                <div class='outside'>
                    <div class='content popup-dropdown'>
                        <ul class='action'>
                            <li>Make God Status</li>
                            <li>Elevate</li>
                            <li>Respect</li>
                        </ul>
                    </div>
                </div>
            </td>
        </tr>
        <tr>
            <td>
                Carlos Santana
            </td>
            <td>
                2
            </td>
            <td>
                Blues-Rock
            </td>
            <td style="width: 20px;">
                <div class='top'>
                    <div class='selector popup-dropdown'>
                        X</div>
                </div>
                <div style='clear: both;'>
                </div>
                <div class='outside'>
                    <div class='content popup-dropdown'>
                        <ul class='action'>
                            <li>Make God Status</li>
                            <li>Elevate</li>
                            <li>Respect</li>
                        </ul>
                    </div>
                </div>
            </td>
        </tr>
    </table>
    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent vulputate pulvinar
    nisi vel tincidunt. Mauris eget pulvinar enim. Suspendisse vitae turpis id orci
    porttitor auctor nec ut nisi. Nunc euismod. </div>
</body>
</html>
  • 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-26T00:43:28+00:00Added an answer on May 26, 2026 at 12:43 am

    Alright. Correct me if I misunderstood, but I think you wanted to just basically get rid of that gap next to the ‘X’ and have the right edge of the popup aligned with the right edge of the ‘X’ box. You can accomplish this with absolute positioning. I’ve made changes to the fiddle here: http://jsfiddle.net/F5bn4/2

    I changed the inline style on the tds and I changed 200px to 20px on div.top

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

Sidebar

Related Questions

I'm using mysql module in nodejs. I want to do something like this, but
My client want to use Installing apps wirelessly feature. Using this he can download
I know I can use something like MessageBox.Show(some error) but I'm talking about an
As per client requirement i want to send crash Report when App get crash.
im using the Facebook PHP Client library and want to get the Events of
I have something like this: MathServiceLibrary (WCF Service Library) [ServiceContract] public interface IMathService {
client.html how can I write this json data retrieval in client end in order
Some existing web services I consume have methods that look something like this: List<Employee>
Hoping I can get some architectural advice on this. I have been given the
i'm currently trying to set up something like this: a server side windows wcf

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.