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.

css - Vertically Scrolling a <DIV> -


i have few nested , want allow deepest scroll vertically.

in css have tried adding:

overflow-x: hidden; /* horizontal */ overflow-y: auto;  /* vertical */ 

to class assigning not seem it. changing overflow-y: yes; not work either.

how 1 accomplish this. want scroll because gets populated mysql data other div's present selectable criteria create query , run it.

thoughts appreciated.

example:

<div id="content">     <div id="slidingdivkeynotepresentations">         <!-- content here -->     </div> </div> 

my css:

#content {     position: absolute;     top: 0;     left: 21%;     margin: 26% 31% 1% 21%; /* cater mac ie5 */     /*\*/ margin: 0; /* put rest */     /*\*/ overflow: auto; /* no need mac ie5 see */     overflow-x: hidden; /* horizontal */     overflow-y: yes;  /* vertical */ }  #slidingdivkeynotepresentations {     display: none;     height: 600px;     width: 600px;     background-image: url('images/transwhite.png');     border: 1px solid #3f4933;     position: fixed;     top: 100px;      left: 290px; /*set left value widthofframediv*/     padding: 12px;     overflow-x: hidden; /* horizontal */     overflow-y: auto;  /* vertical */  } 

here a fiddle working: replace position: fixed position: relative; in inner div. took away of overflow-x , -y, , put overflow: auto on containing div. , moved border outer div wouldn't cut off @ bottom. think need switch fixed relative.

to take away horizontal scrollbar, make width of inner div same or smaller width of outer div. since css3 overflow-x , -y not available yet.


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 -