Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Please help with CSS!Please help with CSS!
Previous
 
Next
New Post
6/15/2008 4:47 AM
 

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 10:08 AM
 

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;

}


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
6/15/2008 7:15 PM
 

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 7:28 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.


Entrepreneur

PokerDIY Tournament Manager - PokerDIY Tournament Manager<
PokerDIY Game Finder - Mobile Apps powered by DNN
PokerDIY - Connecting Poker Players

 
New Post
7/24/2008 7:22 AM
 

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...


Entrepreneur

PokerDIY Tournament Manager - PokerDIY Tournament Manager<
PokerDIY Game Finder - Mobile Apps powered by DNN
PokerDIY - Connecting Poker Players

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Please help with CSS!Please help with CSS!


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, 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 DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out