Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 3 of 3

Thread: pointing one page to a different style

  1. #1
    strikingtwice is offline Junior Member
    Join Date
    May 2010
    Posts
    4

    Default pointing one page to a different style

    Hi all, I have one page that we want to use the same general wrapper on, but no sidebar.
    https://russomusic.com/t-gsa.aspx is the page. On this particular page, we want to kill the sidebar so the embedded iframe can go the width of the content area. The way it is currently set up in the ascx file is <BIG DIV><Left sidebar div about 10%><Body div about 90%></Big DIV>.

    I want just this one page to not have the sidebar. Is there a way to easily kill it in html without redirecting a whole mess of things to a new skin/template/default xml package?

    Thanks for any help you may offer.

    Dave

  2. #2
    DotNetDevelopments is offline Senior Member
    Join Date
    Jul 2008
    Location
    Harlow / Essex / UK
    Posts
    619

    Default

    I am by no means any good at JavaScript or have any real knowledge of JavaScript.

    However I am sure you can hide/remove a DIV using JavaScript, once you have done that you could stretch the inside DIV to 100%.

    Just thinking out loud. Could you not just use some inline CSS? at the top of the page set some new CSS rules to edit the layout how you please.
    =====
    Version (Code/DB): AspDotNetStorefront MSx 9.1.0.1/9.1.0.0
    Execution Mode: 64 Bit
    Dot Net Developments - E-commerce By Experience

  3. #3
    seasonalsin is offline Senior Member
    Join Date
    Nov 2006
    Posts
    123

    Default

    You can do this by added some CSS at the top of the page in your topic html code.

    <style type="text/css">
    div#leftWrap{display:none;}
    div#content{float:none;width:auto;}
    </style>


    The first CSS style tells the browser to not display the "leftWrap" div (your left nav) and the second style tells the browser to remove the left float and adjust the width to auto. I believe this will fix your problem.

    All other pages will display the left nav like normal.

    Hope this helps.
    Last edited by seasonalsin; 08-29-2010 at 08:21 AM.
    Shawn

    http://www.FirstChoiceMarine.com

    Currently 7.1 moving to MS9.3