How to apply css for anchor tag inside table


Tags: html,css,css3

Problem :

i am trying to apply the css for the anchor tag which is inside the table. but i am not able to see any changes. how to do this?

code:

<!DOCTYPE html>
<html>
<head>
<style>
table.tab>td>a
{
background-color:yellow;
}
</style>
</head>

<body>
<table class="tab">
<tr><td><a href="#">google.com</a></td></tr>
</tr></table>
</body>
</html>


Solution :

table.tab td a{
background-color:yellow;}

    CSS Howto..

    Knockout - How to bind outer container css from set of checkboxes?

    How can I add interactive content to a Bootstrap popover?

    css - how to hide href link nested inside a div?

    How to remove space from top of web page

    How to make a jsp page keyboard accessible and how to change the position of a popped up jsp page?

    How to set padding-left to my custom textbox in css?

    background-image on divs aren't showing; the divs are collapsing instead

    How to make an image not overlap navigation bar in CSS/HTML [closed]

    How to make a shrink-to-fit container with max-height and scrollbars in the content area?

    How to get CSS property value from HTML using generalistic JavaScript function
    When you use window.getComputedStyle the method directly return the style attribute calculated of your object. you can access directly the css attribute in the rreturn object. So to solve your...
    Read more

    How to apply a CSS style to div AND the div nested in the div [duplicate]

    How to inspect CSS element using chrome?

    How can I use ellipses in a fluid width table without making each column the same size?

    How did Blizzard achieve the layered cockpit view for the Starcraft II website?

    How to build sliding horizontal menu. CSS

    How to code CSS for all browsers in jQuery.css() method?

    How To Do Multiple Hover On List

    Having an HTML table, how can I toggle between displaying only specific rows using HTML, CSS, and JavaScript [duplicate]

    How should I make this code to display inline

    How to add a css class to jquery selectable

    How to do margin: 0 auto 0 auto minus a few pixels with CSS?

    How with JQuery cause Hover on diffrent element than mouse is currently on top of

    How to label ABC in a HTML button and Click events

    How to remove unwanted white space in CSS

    How to remove the vertical white line between the two green divs without floating?

    How to have the class=“selected” depending on what the current page/url is

    how to get both icon and heading in same line in css

    How to insert FontAwesome inside Select2

    How to override a css !important property using jQuery with transitions

    How to Display a DIV with 'fixed' and 'inline-block' Added to its CSS Properties