Jump to content
Sign in to follow this  
Drycodez

<a> font

Recommended Posts

I have been trying to change the font of my link, but it refuse to work.here is how i tried it:CSS

a{font:12px verdana, arial;}

can you guy tell me why it is not working.

Share this post


Link to post
Share on other sites

For one thing, font names are case sensitive, and Verdana and Arial both begin with uppercase letters.

Share this post


Link to post
Share on other sites
For one thing, font names are case sensitive, and Verdana and Arial both begin with uppercase letters.
i just noticed something.... When i remove the html !DOCTYPE, my css code (to change anchor font and size) will work. But when i put the html !DOCTYPE again, the css code will stop working. Is it because i am using XHTML 1.0 transitional !doctype or what? Please i need your help. Thanks in adv.

Share this post


Link to post
Share on other sites

DD, didn't know about case sensitivity in font names. All I have to do with that fact is remember to remember it. Thanks!

Share this post


Link to post
Share on other sites

Yeah, it's the doctype that enforces things like case. When you see HTML written all in uppercase, like <TABLE>, you know you're looking at a relic from the 90s (the code or its writer, hard to tell).

Share this post


Link to post
Share on other sites
Yeah, it's the doctype that enforces things like case. When you see HTML written all in uppercase, like <TABLE>, you know you're looking at a relic from the 90s (the code or its writer, hard to tell).
LOL! That says a lot about my ex-boyfriend ...

Share this post


Link to post
Share on other sites

Post your entire code, there are probably other factors influencing the style.

Share this post


Link to post
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.

Loading...
Sign in to follow this  

×
×
  • Create New...