I downloaded the YUI calendar but the default font settings are overriding my main text styles...??
I know I'm bad for asking w/out it being online. It's not quite ready, hopefully it will be online early next week.
I can tell you that when I added the calendar to my site there were 2 seperate CSS style sheets that came with it. One called fonts-min.css and the main calendar one is the calendar.css file. The css font styles that govern the calendar seem to be in the fonts-min.css and look like:
body{
*font-size:small;*font:x-small;
font-family: Arial, Helvetica, sans-serif;
font-size: 13px;
line-height: 1.231;
}select,input,button,textarea{font:99% arial,helvetica,clean,sans-serif;}table{font-size:inherit;font:100%;} pre,code,kbd,samp,tt{font-family:monospace;*font-size:108%;line-height :100%;}
I have the fonts and sizes I would like in my main body tag and also I tried again by styling a <p> tag; which I know is redundant...
** my css styles are in an external style sheet; fyi
I like the way the default calendar is styled but when it overrides my main text it makes the main text way too small....
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.
Here is my site:
www.detailpropertycare.com
Now that I have it uploaded my question has kinda changed a little. So my question is how can I change the text size and font (in the YUI calendar..) WITHOUT it affecting the text on my whole page? When I change the calandar size and fonts by styling the body tag of the calendar itself it overl-rides the text styles on the whole page.... (kinda the same question, just slightly modified ...)
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.
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
Well not sure about that but I was able to do the adjusting I wanted based on John Waller's helping my find where to adjust the syles. I did notice that the fonts css was not there but then I found the controling css was in the Calendar css style sheet. I made the adjustments and already uploaded it again, but I will check it out. Thank you!
North America
Europe, Middle East and Africa
Asia Pacific