Solved

ASP.net change site width on page load

Posted on 2013-11-08
6
353 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
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
This video discusses moving either the default database or any database to a new volume.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

758 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now