Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

html - CSS: How do I stop hover effects from pushing my text? -


i hope understood question, can see example here:

http://jsfiddle.net/nfbjy/

when scroll on of links move :(

any advice on how solve issue?

html:

<div class="links"> <ul> <li><a href="home.html">home</a></li> <li><a href="pricing.html">pricing</a></li> <li><a href="faq.html">faq</a></li> <li><a href="about.html">about</a></li> <li><a href="contact.html">contact</a></li> </ul> </div> 

css:

div.links {float: left; padding-top:15px;} ul {list-style:none;} li {float: left; margin: 0 .15em; padding: 3px 10px 3px 10px; border: 1px solid #ccc;          border-radius: 5px; -moz-border-radius: 5px;} a:hover { border: 1px solid blue; border-radius: 5px; -moz-border-radius: 5px; padding: 3px 10px 3px 10px; background-color:yellow;} 

most of styling resides on li, try moving them <a> tag instead

li  {     float: left;      margin: 0 .15em;  }  a, a:active, a:visited {      border: 1px solid #ccc;      border-radius: 5px;      -moz-border-radius: 5px;      padding: 3px 10px 3px 10px; }  a:hover  {      border: 1px solid blue;      background-color:yellow; } 

Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -