Solved

ASP.net change site width on page load

Posted on 2013-11-08
6
355 Views
Last Modified: 2013-11-10
Hi

Is it possible to change the site width on page load.
So in the example below I need to change the width of 960
to something else. I copied this from the Site.cs file

/* PRIMARY LAYOUT ELEMENTS  
----------------------------------------------------------*/

.page
{
    width: 960px;
    background-color: #fff;
    margin: 20px auto 0px auto;
 
}
0
Comment
Question by:murbro
  • 3
  • 3
6 Comments
 
LVL 42

Expert Comment

by:Rob Jurd, EE MVE
ID: 39636314
And why wouldn't you just change that css above to the width you want?  What is driving you to change the width at load time?
0
 

Author Comment

by:murbro
ID: 39636808
I am building a site that will be used for a number of different companies. Some like a wider display
0
 
LVL 42

Expert Comment

by:Rob Jurd, EE MVE
ID: 39636813
So how is going to work? Did the user select the layout they like?
I would suggest having a custom css for each company rather than trying to do it at load time
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

Author Comment

by:murbro
ID: 39636820
I am designing the system for someone who wants it to work that way
0
 
LVL 42

Accepted Solution

by:
Rob Jurd, EE MVE earned 500 total points
ID: 39636822
Yes I understand that but how are you going to implement it? I need some background info to be able to help you...
I would personally have a basic css that every site uses and a customised css specific to that company. Make sense?
0
 

Author Closing Comment

by:murbro
ID: 39636871
That does actually make a lot of sense
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Delete HTML table rows 12 29
asp enable view state 1 24
Winform Module - What is the ASP.Net equiv 2 22
Convert datetime to time string 10 21
A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

777 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