You need to Register for free and Login to post a message in the forum.

Forum

Subject: #wrapper variations always require separate declarations??
Prev Next
You are not authorized to post a reply.

Author Messages
tlyczko
Nuke Ace
Nuke Ace
Posts:41

19 Dec 2007 2:00 PM  
I have wrapper ID declarations in my CSS and skin, as advised, to keep the CP properly separated.

However, one page needs 100% width, the rest need 980px width.

Am I absolutely required to declare and use separate IDs??

So far I have:

#wrapper
{
    background: #ffffff;
    margin: 0 auto;
    padding: 0;
    background-position: 17px 25px;
    background-repeat: no-repeat;
    background-image: url(img/logo.gif);
}

#wrapper_2col
{
    background: #ffffff; /* border: 1px dotted green; */
    margin: 0 auto;
    padding: 0;
    background-position: 17px 25px;
    background-repeat: no-repeat;
    background-image: url(img/logo.gif);
    width:980px;
}

One line difference!!

Isn't there a decent CSS way that I can modify
so that wrapper is 980px when I want it to be 980px??

I tried declaring and applying a class to the ID, but that did not work, as well as declaring additional IDs and putting those into my skins...

Any suggestions??

If not, I have to write two sets of CSS, one for my index page, one for the other pages, which is not terribly efficient.

Thanks, Tom
leesykes
DNN Creative Staff
Nuke Master III
Nuke Master III
Posts:3325

19 Dec 2007 3:40 PM  
How about this:


#wrapper, #wrapper_2col
{
    background: #ffffff;
    margin: 0 auto;
    padding: 0;
    background-position: 17px 25px;
    background-repeat: no-repeat;
    background-image: url(img/logo.gif);
}

#wrapper_2col
{
    width:980px;
}


So you group the 2 ids together and then override any changes you need afterwards for 2col

Lee Sykes
Site Administrator
Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

Twitter: www.twitter.com/leesykes

Lee Sykes's Facebook Profile
tlyczko
Nuke Ace
Nuke Ace
Posts:41

19 Dec 2007 6:46 PM  
Hi Lee,
Thanks a lot for responding!!
This will work very well for what I need.
Thank you, Tom
You are not authorized to post a reply.
Forums > Users Lounge > DNN Creative Articles > #wrapper variations always require separate declarations??



ActiveForums 3.7

Latest Forum Posts

RE: localhost Install issues by leesykes
If you go to the subscribe page and click on the get free trial button - this takes you to a page wh...
localhost Install issues by cdees
I've set up a local host and want to run DNN for a local development machine.  The host is set up; h...
RE: Reversing Limited Access to the Admin Menu by wynnjon
That is what I thought.  So for my clients that will need to manage user accounts, I can not limit t...
RE: Reversing Limited Access to the Admin Menu by leesykes
I seem to recall it doesn't work
RE: Reversing Limited Access to the Admin Menu by wynnjon
Thanks Lee-  I will give that a try.An additional question- If you place the "User Accounts" page un...
RE: Reversing Limited Access to the Admin Menu by leesykes
all you need to do is reverse the process within the SQL tables.Compare the data to the other rows i...
RE: Module not working when logged off. by leesykes
thanks for the info,
Reversing Limited Access to the Admin Menu by wynnjon
Hi!  I followed the tutorial for limiting the access to the admin menu.  What a great thing!However,...
RE: Trouble installing! Designer trying to be a Developer. by leesykes
glad to hear you found a solution, thanks,
RE: Skim Question by leesykes
You could but you will not be able to have an XHTML compliant page as the SolpartMenu is non-complia...
RE: Include in Menu - Weird Request by leesykes
For your sitemap.xml file - use GSiteCrawlerYou could create the site map before moving the sub menu...
RE: Trouble installing! Designer trying to be a Developer. by awright14
It looks like I had ASP installed in the wrong order.  Copying and pasting this into the Run Command...
RE: Need Help Changing Containers Contentpane's Text Color by leesykes
Hello,Have you tried adding a class to the content area of your container and then styling the p, a,...
RE: Vertical SolpartMenu by leesykes
hello,If you wish to display the admin and host menus within the house menu, you need to enable it i...
RE: Firefox Does Not Display WMV File In Media Module by leesykes
Hello,I have just tested this and I can play a wmv file in Firefox 3.0.3, so it does suggest that it...
RE: advice wanted convert site to DNN while keeping existing asp functionality by leesykes
You could try using the IFrame module in DotNetNuke and then just link the IFrame to the current pag...
RE: Need Help Changing Containers Contentpane's Text Color by CROKeefe
Thanks for the quick update... I know it looks broken right now, but I had the TITLE classes working...
RE: Need Help Changing Containers Contentpane's Text Color by leesykes
The default class for a container is .head so you will find that the .head class will override any s...
RE: Module not working when logged off. by t.ramya85
have to set the cache time to '0' in that module setting.
Trouble installing! Designer trying to be a Developer. by awright14
Hi Everyone,Just to let you know, I'm very new at this - very new to any type of dev environments in...
AppTheory
RSS Feeds