Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

AppTheory specializes in solutions based on the DotNetNuke platform and has 2 employees on the DotNetNuke Core Team.
  Ads  
 


  Sponsors  

Meet Our Sponsors

Portal Webhosting - Hosting For Developers
Red-Gate Software
MaximumASP
SourceGear - Tools for Developers
.: CounterSoft :.
telerik
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Chat About It!  Please help with CSS!
Previous Previous
 
Next Next
New Post 6/15/2008 2:47 AM
Unresolved
User is offline Rodney Joyce (Can't Post with old Account)
52 posts
10th Ranked


Please help with CSS! 

Hi,

I am really bad at CSS and I have spent hours trying to make a font smaller! Can anyone point out what I am doing wrong please. Basically on the bottom of PokerDIY there are textbox ads (the ones in the boxes). I want to make the font (normal text and links) all smaller). So I wrap it in a div and have the following in my stylesheet (Portal). My CSS below basically makes all the links smaller, but NOT the text, as you can currently see on the homepage. The text-alignment is working as all the text moves according to this (so I know the div ID is recognised in the CSS), but it is not obeying the font rules, and I have tried many different things.

 

div.textboxad
{
text-align: center;
font-size: smaller;
border: 1px solid rgb(199, 212, 236);
}
div.textboxad a:link, div.textboxad a:visited, div.textboxad a:hover, div.textboxad a:focus, div.textboxad a:active  {
font-size: smaller;
}

 

here is the HTML from the box on the left top (at the bottom of the page):

div class="textboxad">Get honest reviews of the best <a href="http://www.reviewpokerrooms.com/" title="online poker sites" target="_blank">online poker sites</a> at Review Poker Rooms.</div>

 

When I paste the above code into the W3C editor it works fine, but not on my site. Can someone please help?


Thanks,
Rodney
Smart-Thinker - Social Networking modules for DotNetNuke
The DotNetNuke Directory - Are you listed?
PokerDIY - Example Implementation of DNN Social Network
Do use DNN a lot? Try the DotNetNuke Toolbar to save you time!
 
New Post 6/15/2008 8:08 AM
User is offline cathal connolly
2756 posts
www.cathal.co.uk
5th Ranked










Re: Please help with CSS! 

Rodney, I recommend you use Firefox with the firebug extension, it makes it much easier to see the inheritance rules for the indivual elements, when I do that on your text in text add's it shows the following (it appears your container.css resets the text to large

http://www.pokerdiy.com/Portals/6/Skins/poker/skin.css

*|th, *|td, *|div, *|p (line 28)

{

font-family: Arial,Helvetica,sans-serif;

font-size: 12px;

font-weight: normal;

color: #000000;

}

th, td, div, p (line 28)

{

font-family: Arial,Helvetica,sans-serif;

font-size: 12px;

font-weight: normal;

color: #000000;

}

http://www.pokerdiy.com/Portals/6/portal.css

div.textboxad (line 79)

{

text-align: center;

font-size: smaller;

border-top-width: 1px;

border-right-width: 1px;

border-bottom-width: 1px;

border-left-width: 1px;

border-top-style: solid;

border-right-style: solid;

border-bottom-style: solid;

border-left-style: solid;

border-top-color: #c7d4ec;

border-right-color: #c7d4ec;

border-bottom-color: #c7d4ec;

border-left-color: #c7d4ec;

}

http://www.pokerdiy.com/Portals/6/Containers/poker/container.css

*|#gray_lightshad *|div (line 205)

{

font-family: Arial,Helvetica,sans-serif;

font-size: 12px;

font-weight: normal;

color: #000000;

}

*|#gray_lightshad *|div (line 205)

{

font-family: Arial,Helvetica,sans-serif;

font-size: 12px;

font-weight: normal;

color: #000000;

}

*|#gray_lightshad *|div (line 205)

{

font-family: Arial,Helvetica,sans-serif;

font-size: 12px;

font-weight: normal;

color: #000000;

}

*|#gray_lightshad *|div (line 205)

{

font-family: Arial,Helvetica,sans-serif;

font-size: 12px;

font-weight: normal;

color: #000000;

}

*|#gray_lightshad *|div (line 205)

{

font-family: Arial,Helvetica,sans-serif;

font-size: 12px;

font-weight: normal;

color: #000000;

}

*|#gray_lightshad *|div (line 205)

{

font-family: Arial,Helvetica,sans-serif;

font-size: 12px;

font-weight: normal;

color: #000000;

}

*|#gray_lightshad *|div (line 205)

{

font-family: Arial,Helvetica,sans-serif;

font-size: 12px;

font-weight: normal;

color: #000000;

}

*|#gray_lightshad *|div (line 205)

{

font-family: Arial,Helvetica,sans-serif;

font-size: 12px;

font-weight: normal;

color: #000000;

}

*|#gray_lightshad *|div (line 205)

{

font-family: Arial,Helvetica,sans-serif;

font-size: 12px;

font-weight: normal;

color: #000000;

}

*|#gray_lightshad *|div (line 205)

{

font-family: Arial,Helvetica,sans-serif;

font-size: 12px;

font-weight: normal;

color: #000000;

}

*|#gray_lightshad *|div (line 205)

{

font-family: Arial,Helvetica,sans-serif;

font-size: 12px;

font-weight: normal;

color: #000000;

}

#gray_lightshad div (line 205)

{

font-family: Arial,Helvetica,sans-serif;

font-size: 12px;

font-weight: normal;

color: #000000;

}

 
New Post 6/15/2008 5:15 PM
User is offline ROBAX
1875 posts
5th Ranked


Re: Please help with CSS! 

Ouch! Rodney!  That skin's styling is in trouble

It has a couple of issues that you have to deal with.. there is an overload of styles and restyles going. This is the same problem I got into once a while back.

Check the ascx of every skin and container for hard coded style sheet links and remove them all. DNN will load the skins.css and container.css automatically, and do so just once. Your site is loading the skin styles twice, breaking the portals.css, and the container style is being applied over and over again , more than a dozen times; and is also breaking the correct DNN cascade and overriding portal.css.

After you've done that, you can safely move everything from those poker.css and styles.css sheets into skin.css. The only reason you might not want to do this is if the skin is also being used on a completely different website at the same time. If this is the only site using it then combine your sheets. Your portal.css can also go into your skin.css and then be cleared out.

Then you can style those font and links in the box using just:

#gray_lightshad .textboxad {text-align: center;font-size: smaller;border: 1px solid rgb(199, 212, 236)}
div.textboxad a {font-size: smaller}

Then I would suggest moving all of the normal font styles from the containers into the skin.css where you can manage them more easily. Leave only the container layout styles and any very unique fonts in the container css sheets. The trouble with containers like this where normal fonts are restyled is that they keep overwriting each other.. so if there actually was a different container somewhere in there, only the last one would define the style. All basic font styles should be defined in your skin.css

To lighten up the site even further, you can delete the Ventrian News Articles module.css without any visible damage. You can also delete all that legacy and empty DNN stuff in the lower half of your portal.css if you havent' already decided to clear the whole thing out and move the rest into your skin.css. If it were my site I'd also clear out 99% of the default.css and move all the site-specific customisations that I can see in your various module.css sheets into the skin.css

In any case, there is plenty of room for improving the loading and streamlining the styles on the site. Let me know if you need a hand with any of this.

Rob

 
New Post 6/15/2008 5:28 PM
User is offline Rodney Joyce
1661 posts
www.smart-thinker.com
5th Ranked




Re: Please help with CSS! 
Modified By Rodney Joyce  on 6/15/2008 8:44:31 PM)

Thanks Cathal and Rob for taking the time to look at this - sounds like I have opened up a bees nest here (in an area I am not fond of ;)  - Ok, time to get my hands dirty and dig in!

 

I'll also check with my Skin developer regarding the hardcoded .css links and the styles on the Container - I think I just want the font and size declared once (unless it changes of course) so it can be changed in one place. This does not seem to be the case.


Thanks,
Rodney
Smart-Thinker - Social Networking modules for DotNetNuke
The DotNetNuke Directory - Are you listed?
PokerDIY - Example Implementation of DNN Social Network
Do use DNN a lot? Try the DotNetNuke Toolbar to save you time!
 
New Post 7/24/2008 5:22 AM
User is offline Rodney Joyce
1661 posts
www.smart-thinker.com
5th Ranked




Re: Please help with CSS! 

Rob - I have sent you a few emails regarding your CSS quote - can you let me know either way if you are still interested? My mails might be getting spammed...


Thanks,
Rodney
Smart-Thinker - Social Networking modules for DotNetNuke
The DotNetNuke Directory - Are you listed?
PokerDIY - Example Implementation of DNN Social Network
Do use DNN a lot? Try the DotNetNuke Toolbar to save you time!
 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Chat About It!  Please help with CSS!
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:

1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


DocuPeak Business Process Management RAD
Comprehensive enterprise and government process management. Forms, documents, indexing, workflow, views, content intelligence, capture, etc. Point and click rapid application development.
www.Webiplex.com
ADefWebserver.com
DotNetNuke® Module Development Help Website
ADefWebserver.com
Get Smarter Mail, SmarterStats, SmarterTickets
Windows mail server, web log analytics, and customer service management software - Free Editions Available!
www.smartertools.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP