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 - span height width unable to change -


trying make 1 horizontal box.. inside update limits. if u see below sample code, u can understand how set limits. limit classes height, unable decrease. please tel me reason.. want make using div , span only

<!doctype html public "-//w3c//dtd xhtml 1.0 strict//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en" dir="ltr">     <head>     <style>         .limitblock         {             border-left: 1px solid black;         }         .limitrblack         {             border-right: 1px solid black;         }         .horbox         {             background-color:#ffffff;            height:4px;            width:400px;            margin-left:5px;            border: 1px solid #aaaaaa;         }     </style>     </head>     <body>         <div class="horbox">             <div style="margin-top:-3px">                 <span style="margin-top: -4px;height: 9px;">                     <span id="limit1" class="limitblock" style="margin-left:-1px;"></span>                     <span id="limit2" class="limitblock" style="margin-left:100px;"></span>                     <span id="limit3" class="limitblock" style="margin-left:100px;"></span>                     <span id="limit4" class="limitblock" style="margin-left:100px;"></span>                 </span>                 <span id="limit5"class="limitrblack" style="margin-left:96px;"></span>             </div>         </div>     </body> </html> 

your class named limitblock, span not block , not respond setting height way block does. choose floating div in situation.

also, set overflow:hidden prevent elements scaled full height of content (line height of text).


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 -