Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

2 column layout

Posted on 2011-09-19
5
Medium Priority
?
167 Views
Last Modified: 2012-05-12
Hello,
In my asp.net web site, I tried to set up 2 column layout.
One is left sidebar, the second one is the main context. However it looks like not working.
Please see the css and master code.

Many thanks.
Default.aspx
Site.master.cs
Site.css
0
Comment
Question by:zhshqzyc
  • 3
  • 2
5 Comments
 
LVL 9

Expert Comment

by:BlueYonder
ID: 36563339
In order to use multiple columns you need to use tables.
within the content template enter the following.  The <td></td> tags are columns and you can adjust the width with the settings shown below.

<table style="width: 100%">
<tr>
<td width="10%" align="right">COLUMN 1
</td>
<td> COLUMN 2
</td>
</tr>
</table>
0
 

Author Comment

by:zhshqzyc
ID: 36563436
Well, if I insist use pure css then how?
0
 
LVL 9

Accepted Solution

by:
BlueYonder earned 2000 total points
ID: 36564085
Here is an example http://www.zenelements.com/blog/css3-multiple-columns/ on how to create the double column style sheet.  After the css style is defined then
make sure the class is specified in the paragraph tag <p class="my_CSS3_id"></p>.
0
 

Author Comment

by:zhshqzyc
ID: 36564225
Thanks for your input. However I hope somebody could point out my error. Any link might be not fitting my case.
0
 

Author Comment

by:zhshqzyc
ID: 36567610
I uploaded my file "WSCCC.zip" at
SkyDrive
Can somebody take a look?
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Integration Management Part 2
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Suggested Courses

926 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question