Jump to content

Company Name Hyperlink Styling?


DavidBeaver

Recommended Posts

Hi,

 

I have added a hyperlink as seen below:

header.tpl Line 16

 

<div id="company_title"><a href="https://onlinediscounts4u.com" target="_blank">{$companyname}</a></div>

 

I am trying to style just this hyperlink using the div. I do not want to change all hyperlinks.

 

You can see what I have tried below:

 

Styles.css Lines 1 thru 5

 

#company_title{background-color:#00162C;color:#FFF;float:left;font-size:24px;line-height:60px;margin:0;padding:0;text-align:left;}

#company_title a:link {color:ffffff;}

#company_title a:visited {color:ffffff;}

#company_title a:hover {color:ffffff;text-decoration:underline;}

#company_title a:active {color:ffffff;}

 

I am unable to get the color to change. Any help would be greatly appreciated.

 

Thanks!

Link to comment
Share on other sites

Your custom styles are being overrode on style.css line 44. You can either remove the color on line 44, move your code above after line 44, or I think you can add !important (color:#FFFFFF !important) to your code and it should take precedence over the style on line 44.

 

Tom

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated