PDA

View Full Version : Fragment Text Size


Big_Dave
14-Apr-2007, 11:09 AM
Is there anywhere specific within the CSS file that controls the text size in fragments?

I've changed a font size from 10 to 12 in the CSS file and it increased the font size in my whole shop except fragments. I'm assuming the fragments get their font size from somewhere?

I could just wrap the text in each fragment with HTML such as :

!!<<font size="2">Test</font>>!!

BUT I use a [LINK] in my fragments and this does not work if wrapped as above.

Please advise
Thanks
Dave

Duncan Rounding
14-Apr-2007, 11:27 AM
Not the solution you're probably after, but you can however do this:
!!<<font size="2">>!![LINK]!!<</font>>!!

jont
14-Apr-2007, 12:05 PM
The erm ... [LINK] link sytling comes from the regular <a> tag styling ... if you want to modify in just the fragments only (not site wide) try wrapping the fragment in a <div> and styling accordingly eg:

in the html:

<div class="fragmentWrapper">
... existing code .....
</div>

and in the actinic.css

.fragmentWrapper a:link, .fragmentWrapper a:visited {
font-size: 2em;
color: red;
}

.fragmentWrapper a:hover {
font-size: 2em;
color: green;
}

.fragmentWrapper a:active {
font-size: 2em;
color: red;
}

I have declared all values as IE6 can be a pig with <a> tag cascades so best to declare specifically rather than rely on ".fragmentWrapper a" which can lead to the wrong styles being inherited.

HTH

Big_Dave
14-Apr-2007, 01:41 PM
Thanks guys.