Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
increase link size with class?
Old 04-13-2010, 06:44 AM increase link size with class?
Super Spam Talker

Posts: 755
Name: Barry O' Brien
Location: Ireland
Trades: 0
I'm trying to increase the font size of a link using a class but does not seem to work for me.

Code:
.style1 {font-size: 16px}
I'm trying to increase the link size from within the cms im using.

The html

Code:
<a href="[~[+id+]~]" title="[+title+]" class="style1">[+title+]</a>
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE

Last edited by audiomad; 04-13-2010 at 06:48 AM..
audiomad is offline
Reply With Quote
View Public Profile Visit audiomad's homepage!
 
 
Register now for full access!
Old 04-13-2010, 08:57 AM Re: increase link size with class?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Probably specificity.

The style may be getting overruled by a more specific CSS rule being applied.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 04-13-2010, 09:49 AM Re: increase link size with class?
Super Spam Talker

Posts: 755
Name: Barry O' Brien
Location: Ireland
Trades: 0
Got it I was editing a copy of the file so the right one was not being edited woops
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
audiomad is offline
Reply With Quote
View Public Profile Visit audiomad's homepage!
 
Old 04-14-2010, 12:28 AM Re: increase link size with class?
MattGoucher's Avatar
Skilled Talker

Posts: 64
Name: Matt
Location: California
Trades: 0
You need to specify the class in the css:
HTML Code:
<style type='text/css'>
.style1 a {
    font: bold 13px sans-serif;
    color:#333;
    text-decoration: none;
}
.style1 a:hover { 
    color: #049;
}
.style1 a:active {
}
</style>
Then your HTML should look like this:
HTML Code:
<a class='style1' href='#'></a>
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE

Invalid Code On A New Website Is Like Having A New Car With A Broken Windshield
MattGoucher is offline
Reply With Quote
View Public Profile Visit MattGoucher's homepage!
 
Reply     « Reply to increase link size with class?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.44256 seconds with 12 queries