Click here to Skip to main content
15,893,508 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear all Experts,

At the time of web application design <dev> is vertically how to take the column wise like below.
HTML
<dev>


</dev>

above is vertically

we need the



HTML
<dev>       <dev>     <dev>

</dev>       </dev>    </dev>


i need three column wise design in one web form

Thanks you for your valuable replay.
Posted
Comments
Ankur\m/ 19-Oct-11 8:27am    
Do you mean the data should be aligned this way?
If yes, you can do this using data-bound controls in asp.net.

You have to use table, tr, td concept.

HTML
<table>
  <tr>
    <td> <b><div>1st column</div></b> </td>  <td> <b><div>2nd column</div></b> </td>  <td> <b><div>3rd column</div></b> </td>
  </tr>
</table>
 
Share this answer
 
v2
Comments
koolprasad2003 19-Oct-11 9:01am    
nice answer.
Toniyo Jackson 19-Oct-11 9:03am    
Thanks Prasad :)
Use "HTML Lists" and it's styles.
http://www.w3schools.com/css/css_list.asp

Try as below. It's up to you, if you want to have "div" inside "li" or some other HTML Tag.

HTML
<div id="mainDiv">

<ul>
 <li style="float:left;list-style-type:none;">
  <div id="div1">Column 1</div>
 </li> 

 <li style="float:left;list-style-type:none;">
  <div id="div2">Column 2</div>
 </li> 

 <li style="float:left;list-style-type:none;">
  <div id="div3">Column 3</div>
 </li> 
</ul>

</div>
 
Share this answer
 
Comments
Dalek Dave 20-Oct-11 4:23am    
Yep I would use DIV as well.
RaisKazi 20-Oct-11 4:44am    
Thanks Dalek. I too prefer Div based design layout over Table based layout, considering w3c Standards and Cross Browser Compatibility(which is a nightmare sometimes :) )

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900