Solved

ASP.net change site width on page load

Posted on 2013-11-08
6
356 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 43

Expert Comment

by:Rob
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 43

Expert Comment

by:Rob
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
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.

 

Author Comment

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

Accepted Solution

by:
Rob 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

839 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