ajoo Posted October 10, 2016 Share Posted October 10, 2016 (edited) 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> <li class="right"> </li> </ul> </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 October 10, 2016 by ajoo Quote Link to comment Share on other sites More sharing options...
ajoo Posted October 13, 2016 Author Share Posted October 13, 2016 Hi all, I request someone to take a look at this, hopefully not a big, CSS issue that is baffling me for some days now. Thanks all Quote Link to comment Share on other sites More sharing options...
ajoo Posted October 19, 2016 Author Share Posted October 19, 2016 Hi all, Please find a zipped file with code simulating the slider distortion issue described above. I hope someone will be able to figure out what's going wrong and provide a solution for the same. Thanks all ! slider.zip Quote Link to comment Share on other sites More sharing options...
ajoo Posted October 21, 2016 Author Share Posted October 21, 2016 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 !!!! Quote Link to comment Share on other sites More sharing options...
ajoo Posted October 25, 2016 Author Share Posted October 25, 2016 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/ Thanks. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.