Changing a single line of text in wordpress

2 replies
  • WEB DESIGN
  • |
Hi everyone,

I am pretty new to CSS, but I am learning!

I'm trying to increase the text size of a online link.

Is there a way I can write a line in my stylesheet, and then I can surrond that one line of text on my page with a certain tag and the size will change (as set in the stylesheet).

Please help me if you can.

Please note:

1)
The text I am trying to change is a link.

2)
I only want to change one link, not all of them!

3)
I am a newb so your gonna have to write the line for me to put into my stylesheet!

4)
I am using Wordpress

5)
If there is a much more simplier method please let me know, I tried <FONT SIZE="3">my text</Font> but it didn't work

6)
My code is:
HTML Code:
<font size="2"><a href="www.mywebsite.com" target="_self">My text I need to beef up</a>
Many thanks everyone!

Sam
#changing #line #single #text #wordpress
  • Profile picture of the author Istvan Horvath
    <a href="http://www.example.com" class="big">anchor text</a>

    In the stylesheet:
    .big {
    font-size: 2em;}

    (of course, play with the value of 2em or pixel or whichever works for you)
    If the target is self - it is redundant to mention it: that's the default for links.

    IMPORTANT: You also need basic HTML lessons, not only CSS. Every URL in anchors/links starts with http:// - and NOT with www!!!
    Signature

    {{ DiscussionBoard.errors[3534809].message }}
  • Profile picture of the author Apollo-Articles
    Thanks Istvan,

    The "www.mysite.com" was used purely for demonstration purposes.

    I will implement this shortly.

    Sam

    **EDIT
    Worked like a dream, thanks Istvan!
    {{ DiscussionBoard.errors[3535214].message }}

Trending Topics