Jump to content

can I use the style tags in the header.tpl


chick

Recommended Posts

Can I use the following tag in the header.tpl for the link text in the upper parts of the client area nad footer, will this overide the css?

 

<style>
a:hover{color:blue; background-color:yellow; }
</style>

 

if I should use css, what code do I use and where in the css do I put it. I am searching the net to find the answer. I searched here but no hits

Link to comment
Share on other sites

Hi Baja,

I was trying to change some text and background colors.

 

(only finally learned HTML now I have to learn css) anyway I found the portal > style.css file and where to put in the css, the code for the effect I wanted. See. I am so proud I figured it out.

 

{
a:font: 11px;
text-decoration: none;
color: #000000;
}

a:hover {
text-decoration: none;
background-color: yellow;
}

Link to comment
Share on other sites

Chick, you've got a few issues there.

 

you should have one or more of the following:

 

a{}, a:link{}, a:visited{}, a:active{}, a:hover{}

 

Here's an article you can read through to help you out: http://www.echoecho.com/csslinks.htm

 

 

If there is a current "feature" in the template you want to change, you need to edit the actual file. You cannot just add in-line styles to "override" it as this will eventually cause issues. Just edit the style.css file, and change what you want to have changed.

 

So, open up style.css, and edit the current a{} and a:hover{} properties.

Link to comment
Share on other sites

Chick,

 

If you use The Firefox Browser there are a few tools which can help you see what is going on in a site. These can help you learn how things work and help you find your own errors within your own sites. There is also one for IE but I wont reccomend that one to you unless you just can't live with out IE which I highly doubt.

 

Note I can not add links yet to this forum so replace "(dot)" with a "."

 

1.) Web Developer Tool Bar

LINK: addons.mozilla(dot)org/en-US/firefox/addon/60

 

This loads up top by your address bar and menu. You might have to turn it on by right clicking an area by your address bar or menu up top.

 

 

2.) Fire Bug

LINK: addons.mozilla(dot)org/en-US/firefox/addon/1843

 

This loads in the bottom right corner as a green check mark.

 

Both of these might also have to be turned on under: Tools > Addons

 

These have lots of tools to help you see what is going on behind the scenes of any site you are looking at. PM me if you want further explaination on how to install and or use these.

 

Baja

Link to comment
Share on other sites

This one I forgot I even had installed:

 

Again, note I can not add links yet to this forum so replace "(dot)" with a "."

 

addons.mozilla(dot)org/en-US/firefox/addon/2104

 

Its a quick css viewer. You can access it from what I can tell by going to: Tools > CSS Viewer

 

Thats how you turn it off too. The other two I recommend more though. I use them all the time.

 

Baja

Link to comment
Share on other sites

^ There's really no need to download the quick css viewer if you've got the Web Developer plugin; There's an option to view the CSS in the toolbar. :)

 

I rely on this heavily when I work on websites (which is nearly 24x7). I seriously do not think I would be able to live without it, now that I've been using it for awhile.

 

It definitely helps to debug various issues (especially when I need to outline various DIVs) as well as just having it right there, rather than having to navigate elsewhere :P

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