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.

internet explorer - CSS: margin/padding on IE cause floats to be placed incorrectly -


i'm having trouble getting ie7 float elements correctly (ff , chrome work expected). i'd have "delete" buttons (here span class "sbutton") floated way right. on ie sbutton no first line floats way right expected, subsequent lines float left of sbutton above them:

something other text ----------------------------------[delete] else other text ---------------------[delete]-------- 

this related paddings , margins on sbutton:

.sbutton {     background-color: #2e3239; color: white; border: 1px solid gray;     font-family: "trebuchet ms"; font-size: 90%; padding: 1px 3px; margin: 2px;     -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; } 

if remove padding , margin float expected.

here's hmtl:

<li>      <span class="left"><b>something</b> (#1102) other text</span>       <span class="right"><a href="#" class="sbutton">delete</a></span>  </li>  <li>      <span class="left"><b>something else</b> (#1103) other text</span>       <span class="right"><a href="#" class="sbutton">delete</a></span>  </li>  

i similar behavior on ff , chrome if remove outer span (the 1 class "right").

why happening, , what's right way this?

you need clear floats. here's 1 way of doing it:

.clear {     clear:both;     font-size:0; }  <li>      <span class="left"><b>something</b> (#1102) other text</span>       <span class="right"><a href="#" class="sbutton">delete</a></span>       <span class='clear'></span> </li> 

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 -