Side Bar/Nav Issue
2 posters
Page 1 of 1
Side Bar/Nav Issue
Hello!
So my problem is that whenever I load the page, the contents located inside the sidebar appear for a few seconds upon loading. How do I prevent that?
Forum: www.virtuous-realms.board-directory.net
CSS
HTML
Javascript
So my problem is that whenever I load the page, the contents located inside the sidebar appear for a few seconds upon loading. How do I prevent that?
Forum: www.virtuous-realms.board-directory.net
CSS
- Code:
#nav{width:200px;height:200px;position:fixed;top:0;left:0;z-index:100;background:#a4a4a4;color:#fff;overflow:hidden;}
#nav ul{margin:25;padding:25;width:200px;margin:25px;list-style:none;}
#nav a span{margin:0 25px 0 0;}
#nav a{color:#fff;font-size:14px;text-decoration:none;}
HTML
- Code:
<div id="nav">
<ul>
<li><a href="http://virtuous-realms.board-directory.net/t285-general-rules-of-the-pack"><span> </span>Forum Rules</a></li>
<li><a href=""><span></span> SubPage 1</a></li>
<li><a href=""><span></span> SubPage 2</a></li>
<li><a href=""><span></span> SubPage 3</a></li>
<li><a href="http://virtuous-realms.board-directory.net/t69-pack-copyrights"><span> </span>Copyrights</a></li>
</ul>
</div>
Javascript
- Code:
$(function(){
$('#nav').hover(function(){
$(this).animate({width:'200px'},500);
},function(){
$(this).animate({width:'35px'},500);
}).trigger('mouseleave');
});
Last edited by ShadesOfJay on December 22nd 2014, 2:46 am; edited 1 time in total
Re: Side Bar/Nav Issue
Hello @ShadesOfJay,
Remove the JavaScript, and replace your CSS by this :
Remove the JavaScript, and replace your CSS by this :
- Code:
#nav{width:35px;height:200px;position:fixed;top:0;left:0;z-index:100;background:#a4a4a4;color:#fff;overflow:hidden;transition:500ms;}
#nav:hover { width:200px }
#nav ul{margin:25;padding:25;width:200px;margin:25px;list-style:none;}
#nav a span{margin:0 25px 0 0;}
#nav a{color:#fff;font-size:14px;text-decoration:none;}
Similar topics
» Snow Script for Forums/Decoration Issue/Coding Issue
» Issue with Forum Tabs and other areas Color Issue
» Forum Design Issue (Hyperlink Issue)
» Forum Design Issue (Hyperlink Issue)
» Issue when posting...(message box issue)
» Issue with Forum Tabs and other areas Color Issue
» Forum Design Issue (Hyperlink Issue)
» Forum Design Issue (Hyperlink Issue)
» Issue when posting...(message box issue)
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum