Skip navigation
Currently Being Moderated

Font and Font size in my YUI calendar overriding main text styles?

Apr 27, 2012 12:35 PM

I downloaded the YUI calendar but the default font settings are overriding my main text styles...??

 
Replies
  • Currently Being Moderated
    Apr 27, 2012 1:03 PM   in reply to fourwhitesocks

    Without a link to your online page - all we can do is guess.

    If your main text styles are in a remote styles sheet, write and assign some CSS rules

    EMBEDDED IN THE HEAD SECTION of your page

     

    Those rules will overide.the remote rules.

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 27, 2012 1:03 PM   in reply to fourwhitesocks

    It'll be a case of conflicting CSS styles. You just need to isolate the YUI calendar styles in your CSS.

     

    Can you upload your page to the web and tell us what you're struggling with?

     

    Then we can see your code and offer suggestions.

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 27, 2012 2:58 PM   in reply to fourwhitesocks

    We really need to see the page online to give you a useful answer.

     

    The site doesn't have to be ready. A draft will do fine so we can see what you're seeing. Upload it temporarily. When it's fixed, you can take it off the server.

     

    The problem seems to be conflicting CSS styles but without seeing the entire code, it's a guessing game to establish what's conflicting with what.

     

    It's just a matter of writing more specific CSS rules to target specific parts of the page so that the unwanted rules don't overrule the wanted ones.

     
    |
    Mark as:
  • Currently Being Moderated
    May 7, 2012 10:41 AM   in reply to fourwhitesocks

    Assuming you have no duplicate rules in your stylesheets,

    Calendar style rules only affect the calendar

     
    |
    Mark as:
  • Currently Being Moderated
    May 7, 2012 11:05 AM   in reply to fourwhitesocks

    You do realize that your container width pushes half your page off the screen?

     

    I reduced your calendar font from 2em to 1em and it looks like this

     

    4ws.jpg

     
    |
    Mark as:
  • Currently Being Moderated
    May 7, 2012 1:49 PM   in reply to fourwhitesocks

    fourwhitesocks wrote:

     

    Where did you do the adjusting on the font size in the calendar?

    Get to know the Developer Tools in the various browsers

     

    - F12 in IE

    - Firebug add-on for Firefox

    - Developer Tools in Chrome

     

    Using those tools, you can point and click at any element in the browser window and see exactly which CSS rule is being applied to that element and where that rule is located in which stylesheet (if you have multiple stylesheets)

     

    Those free tools are essential for quickly finding, troubleshooting and tweaking CSS rules.

     

    You can also use those tools to experiment with changes in the CSS e.g. tweak a font-size, and see the immediate effect on screen in the browwser before putting those changes into the CSS in Dreamweaver.

     
    |
    Mark as:
  • Currently Being Moderated
    May 7, 2012 8:46 PM   in reply to fourwhitesocks

    It's % based

     

    font-size-calendar.png

     
    |
    Mark as:
  • Currently Being Moderated
    May 8, 2012 7:56 AM   in reply to fourwhitesocks

    One issue is that the CSS stylesheet that is intended to control the calendar fonts is still missing from your server.

    http://www.detailpropertycare.com/YUI/2.6.0/build/fonts/fonts-min.css

     

    That's probably where I adjusted the 2em to 1 em as pictured in my earlier post.

    Without it, you might run into functional issues on some browsers.

     

    I believe you are working with an older version of the calendar which has some security issues (vulnerability to javascript injection) There are patches or better yet, you can link to those scripts on Yahoo or Google servers rather than your server, and eliminate the risk.

     

    http://yuilibrary.com/support/2.8.2/

     

    Cheers

     
    |
    Mark as:
  • Currently Being Moderated
    May 8, 2012 8:56 AM   in reply to fourwhitesocks

    See link in my last post

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points