Jump to content

2 CSS questions please


zeidhaddadin

Recommended Posts

Hi all, I have these 2 questions about using CSS in my site:1- How can I use the table bg color "bgcolor=" using css

<td width="415" height="60" bgcolor="#F6F6F6">

2- Are these CSS Lines valid?, And how can I make them better:

<style type="text/css"> p {text-align: center;font-family: Verdana;font-size: 10}a:link {color: #0000FF} a:visited {color: #0000FF} a:hover {color: #0000FF} a:active {color: #0000FF}</style>

Link to comment
Share on other sites

1. To use style for single <td>, you can either use inline CSS<td width="415" height="60" style="background-color:#F6F6F6;">OR use id for the <td><td id="special">and in your CSS parttd#special{ background-color:#F6F6F6; }2. p {text-align: center;font-family: Verdana;font-size: 10}p { text-align:center; font-family:Verdana; font-size:10px; }<!-- added "px" for font-size -->a:link {color: #0000FF} a:visited {color: #0000FF} a:hover {color: #0000FF} a:active {color: #0000FF}change it as below, to avoid repeated codea:link, a:active, a:visited, a:hover{ color: #0000FF; }

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...