Text font and color

Locked

Views: 958

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
21 Nov 2008, 8:12 PM
#1
mmnord avatar

mmnord

New Zenner

Join Date:
Aug 2008
Posts:
22
Plugin Contributions:
0

Text font and color

Is there any way to change the font and color of a single line of text in my main (home) page heading (or even a single word)? I believe it is ?h1? on the style sheet.

I know where to make the change on the css but that will affect the whole section.

My problem is I only want it to affect that one specific spot.

I sure do appreciate any input.

Thank you,
Mike

22 Nov 2008, 1:41 AM
#2
alexwoolfson avatar

alexwoolfson

Zen Follower

Join Date:
Sep 2008
Posts:
97
Plugin Contributions:
0

Re: Text font and color

In the line itself, try surrounding it with these tags

<span class="wubba"></span>

like this

I need the next three words <span class="wubba">to be red</span> and 10 pixels size!

Then you can create an entry in stylesheet.css that says

#wubba {
color: #FF0000;
font-size: 10px;
}

You can also do it inline without adding anything to stylesheet.css like this:

I need the next three words <span style="color: #FF0000; font-size: 10px;">to be red.</span>

Zen Cart 1.3.8a - Database Patch Level: 1.3.8 - PHP Version 5.2.6

22 Nov 2008, 5:39 AM
#3
mmnord avatar

mmnord

New Zenner

Join Date:
Aug 2008
Posts:
22
Plugin Contributions:
0

Re: Text font and color

LOL...I cannot believe how easy that was. I was making waaay too much of it.

Thank you alexwoolfson

22 Nov 2008, 7:26 AM
#4
alexwoolfson avatar

alexwoolfson

Zen Follower

Join Date:
Sep 2008
Posts:
97
Plugin Contributions:
0

Re: Text font and color

You're very welcome. The span tags are one of my most frequently used secret weapons... :cool:

Thanks for letting me know it worked for you.

Zen Cart 1.3.8a - Database Patch Level: 1.3.8 - PHP Version 5.2.6