kevind
Posts: 251
|
| Posted: 08/26/2008, 1:43 PM |
|
CCS 3.x
I'm trying to neaten up a web application/site that uses this CSS style as a faux frame:
http://www.dynamicdrive.com/style/layouts/item/css-liqu...22-fluid-fixed/
then i drop a grid into the content area which has a CodeCharge Style applied to it wiht Arial Small as the Font
when i view the new page in a browser, the font on the grid becomes microscopic
- can anyone explain this behaviour ?
- is there any way that i can easily adjust the CodeCharge Style to not do this ?
thanks in advance
_________________
thanks
Kevin
======================
CCS 3.2.x / ASP / MS Access /mySQL / PHP / jQuery / jQuery UI / jQuery Mobile
|
 |
 |
wkempees
Posts: 1679
|
| Posted: 08/26/2008, 6:56 PM |
|
Inheritence is your culprit here.
Will take sudying the CSS (stylesheet) definition of the frame and it's imact on the CCS CSS.
Can be a tedious job.
But can be done, higher level definitions influenced by lower (later) definitions,
as well as the mixing of pixels and percentages.
Which CodeCharge style did you select?
Use Firefox Webdevelopbar and/or Firebug or the equiv. IE tool, and trace the CSS code.
Walter
_________________
Origin: NL, T:GMT+1 (Forumtime +9)
CCS3/4.01.006 PhP, MySQL .Net/InMotion(Vista/XP, XAMPP)
if you liked this info PAYPAL me: http://donate.consultair.eu
|
 |
 |
feha
Posts: 712
|
| Posted: 08/27/2008, 12:24 AM |
|
Your font size is defined in CC stylesheet
defining twice for example if at the start defined font-size:90%
next time you define font again 90% it is 90% of previ0us defined 90%
so you need to override it in your second stylesheet by using
font-size:100% !important;
the example of mixed shtylesheets http://www.vision.to/contact.php
hope this helps
feha
www.vision.to
_________________
Regards
feha
www.vision.to
feedpixel.com |
 |
 |
kevind
Posts: 251
|
| Posted: 08/27/2008, 5:40 AM |
|
Quote wkempees:
Inheritence is your culprit here.........
Which CodeCharge style did you select?
Use Firefox Webdevelopbar and/or Firebug or the equiv. IE tool, and trace the CSS code.
Walter
I took one of the predefined styles and changed the way the Caption and row shading looked - using the Style builder. I then set the font to Arial Small through the builder.
I didn't tweak the style by hand.
There doesn't appear to be any font-size settings in the Dynamic Drive Frame layout.
If I put an inline style section after the link to the CSS style sheet with .Row{font-size:11pt;} for example, it overrides inherited settings - it's a workaround for now, but i'd like to understand why a style that works in a new CCS page (no frame stuff) suddenly shrinks in the frame layout when there does appear to be any other font size directives.
kd
_________________
thanks
Kevin
======================
CCS 3.2.x / ASP / MS Access /mySQL / PHP / jQuery / jQuery UI / jQuery Mobile
|
 |
 |
feha
Posts: 712
|
| Posted: 08/27/2008, 11:27 AM |
|
it overrides because is an inline style ...
there must be somewhere in CC stylesheets defined font size ...
rembember your custom stylesheet must be included later ...
or if you use on your custom stylesheet font-size:xxx.px !important;
the part !important will make override all other values ...
but important will not override any inline font-sizes ...
body{
margin:0;
padding:0;
line-height: 1.5em;
font-size:110% !important;
}
based on the link you provided for that layout ...
_________________
Regards
feha
www.vision.to
feedpixel.com |
 |
 |
kevind
Posts: 251
|
| Posted: 05/04/2009, 5:55 AM |
|
for anyone seeing this issue - i found it was caused by the CSS sheet loading in INCLUDED pages - it would be handy if the CSS style was used while building the included pages, but not in code.
so, if you have a main page with linked CSS sheet, then several included pages - the font would shrink for each included page loaded.
i solved by either overriding the font size in an additional CSS sheet or removing the linked CSS sheets in the INCLUDED pages.
kd
_________________
thanks
Kevin
======================
CCS 3.2.x / ASP / MS Access /mySQL / PHP / jQuery / jQuery UI / jQuery Mobile
|
 |
 |
damian
Posts: 838
|
| Posted: 05/04/2009, 3:51 PM |
|
or changing font sizes from % to px or pt.
_________________
if you found this post useful take the time to help someone else.... :)
|
 |
 |