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 - Problem aligning divs next to each other? -


i want design:

div1: auto-size div2: 160px divnumberonediv divtwo divnumberonediv divtwo divnumberonediv divtwo divnumberonediv divtwo divnumberonediv divtwo divnumberonediv divtwo 

how solve problem? i've tried stuff floating left & right, can't them on same line.

i want div 2 there, , div1 have max-width of 40em, resize allow div 2 show @ times if necessary.

my code:

<style="text/css"> #mainbulk {     padding: 1.5em 2% 1.5em .5em; } #ads {     width: 7.5em;     float: left;     display: table-cell; padding: 0 0 0 2em; } #textcontent {     width: 70%;     float: left;     display: table-cell; } </style> 

and

<div id="mainbulk">     <div id="textcontent">         <p>this amazing site in world. has nice design, , perfect everything. if there's site can't do, nothing can it, i'd suggest try of site's features before complaining.</p>     </div>     <div id="ads" align="right">     ads would, hypothetically, placed here if actual website.     </div> </div> 

i'm encountering problem:

http://www.screencast-o-matic.com/watch/c6lrxsxyq

not sure you're after, can try what i've done here. should use id on unique element in document, if want more one, re-assign them classes. display: table-cell; not needed here.

html:

<div class="mainbulk">     <div class="ads">     ads would, hypothetically, placed here if actual website.     </div>     <div class="textcontent">           <p>this amazing site in world. has nice design, , perfect everything. if there's site can't do, nothing can it, i'd suggest try of site's features before complaining.</p>     </div>  </div> 

css:

.mainbulk {     padding: 1.5em 2% 1.5em .5em;     border: 1px solid #000; } .ads {     width: 7.5em;     float:right;     text-align: right;     border: 1px dotted #f00; } .textcontent {     max-width: 40em;     float: right;     border: 1px dotted #00f; } 

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 -