zeidhaddadin Posted August 29, 2006 Share Posted August 29, 2006 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 More sharing options...
Cronthenoob Posted August 29, 2006 Share Posted August 29, 2006 To make the background color in CSStd { background-color:#FFFFFF;} Link to comment Share on other sites More sharing options...
zeidhaddadin Posted August 29, 2006 Author Share Posted August 29, 2006 no there is many td's in the page and I want just one of them to be like this.. Link to comment Share on other sites More sharing options...
pulpfiction Posted August 29, 2006 Share Posted August 29, 2006 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 More sharing options...
Cronthenoob Posted August 30, 2006 Share Posted August 30, 2006 no there is many td's in the page and I want just one of them to be like this..simple enough..blacktable {background-color:black;} then in the HTML <td class="blacktable">Content</td> Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now