Jump to content

a slider close distortion.


Recommended Posts

Hi all, 


I have this slider in a project which was working great till I removed a small bit of inline css and tried to put it in an external file. That produced a distortion in the slider as it moves up n down.


Earlier the slider tab moved uniformly ( it's size remained the same as it opened or closed). But now the slider becomes smaller as it opens. and comes back to the original size and place as it closes. Further the x in a circle is slightly eaten when the slide tab is in the open state.



The HTML that worked great :- 

   <!-- The tab on top -->
        <div class="tab">
                <ul class="login">
                    <li class="left"> </li>
					<li>Hello <?php echo isset($user)? $user : 'Guest';?>!</li>
                        <li class="sep">|</li>
                        <li id="toggle">
                                <a id="open" class="open" href="#"><?php echo isset($id)?'Open Panel':'Log In | Register';?></a>
                                <a id="close" style="display:none"; class="close" href="#">Close Panel</a>
                    <li class="right"> </li>
        </div> <!-- / top -->

The accomanying CSS:

.tab a.open,.tab a.close {
        height: 20px;
        line-height: 20px !important;
        padding-left: 30px !important;
        cursor: pointer;
        display: block;
        width: 100px;
        position: relative;
        top: 11px;

.tab a.open {background: url(../images/bt_open.png) no-repeat left 0;}
.tab a.close {background: url(../images/bt_close.png) no-repeat left 0;}
.tab a:hover.open {background: url(../images/bt_open.png) no-repeat left -19px;}
.tab a:hover.close {background: url(../images/bt_close.png) no-repeat left -19px;}

Once I removed the in line CSS  style = " ..." , show in red in the code, and added the following  bit of code in the external css file:

.tab a.close {
        display: none;

the distortion that I have described above, crept in. I am not sure how I can make the slider work perfect as before. Please someone help me overcome this. 


Thanks all !

Edited by ajoo
Link to comment
Share on other sites

Hmm Hi Guys, experts, Gurus !!


More than a 100 views and no response !? Surely this coudn't be that tough a problem to crack !! Or have i done something wrong - like not defined the problem correct or not given the right inputs? Looking forward to some response.


Please advise. 


Thanks !!!!

Link to comment
Share on other sites

Hi all !


I have created a fiddle of the issue that I am facing. It has been partially resolved. i.e. the slider now moves uniformally. However in the close position, the slider tab displays the text for the open and close positions simultaneously. 


I request anyone to try and have a look and suggest a resolve. 


fiddle: https://jsfiddle.net/ajoo/totym83v/3/



Link to comment
Share on other sites

This thread is more than a year old. Are you sure you have something important to add to it?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.