Solved

2 column layout

Posted on 2011-09-19
5
159 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 500 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

In this Article, I will provide a few tips in problem and solution manner. Opening an ASPX page in Visual studio 2003 is very slow. To make it fast, please do follow below steps:   Open the Solution/Project. Right click the ASPX file to b…
One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on www.johnchapman.name could not pull conte…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

840 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