Tables

Discussion in 'HTML & Website Design' started by bilalpakistani, Jun 16, 2012.

  1. #1
    I wanted to make a table..
    in which if someone hover over a Row
    that must change some colors, or look brighter than other rows how to do that?
     
    Solved! View solution.
    bilalpakistani, Jun 16, 2012 IP
  2. alamlinks

    alamlinks Well-Known Member

    Messages:
    992
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    140
    #2
    use forecolor in the table.........
     
    alamlinks, Jun 16, 2012 IP
  3. bilalpakistani

    bilalpakistani Member

    Messages:
    75
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #3
    How ? can you give me a code for a reference?
     
    bilalpakistani, Jun 16, 2012 IP
  4. bilalpakistani

    bilalpakistani Member

    Messages:
    75
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #4
    Someone Reply!
     
    bilalpakistani, Jun 16, 2012 IP
  5. #5
    <style>
    tr:hover{background-color: #00f;}
    </style>
    
    
    <table>
    <tr><td>CELL 1</td><td>CELL 2</td></tr>
    <tr><td>CELL 3</td><td>CELL 4</td></tr>
    </table>
    
    Code (markup):
     
    Last edited: Jun 16, 2012
    cons1t, Jun 16, 2012 IP
  6. bilalpakistani

    bilalpakistani Member

    Messages:
    75
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #6
    Thanks brother..
     
    bilalpakistani, Jun 16, 2012 IP
  7. jaypeegreens

    jaypeegreens Peon

    Messages:
    10
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    you can use photoshop to make color code for example #0000 is an example of color code............
     
    jaypeegreens, Jun 18, 2012 IP
  8. solomonbindavid

    solomonbindavid Peon

    Messages:
    27
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #8

    <table><tr style="color:red;"><td>CELL 1</td><td>CELL 2</td></tr><tr><td>CELL 3</td><td>CELL 4</td></tr></table>

    here create table two row and first row in color red use them.​
     
    solomonbindavid, Jun 19, 2012 IP
  9. bilalpakistani

    bilalpakistani Member

    Messages:
    75
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #9
    I wanted to style my tables..
    I don't like the border..

    how can i do that?
    Does anybody have some cool table's dEsigning Examples
     
    bilalpakistani, Jun 23, 2012 IP
  10. cons1t

    cons1t Peon

    Messages:
    43
    Likes Received:
    0
    Best Answers:
    1
    Trophy Points:
    0
    #10
    
    <style>
    tr:hover{background-color: #00f;}
    .out-b {border:1px solid #000;}
    .bot-b {border-bottom:1px solid #000;}
    </style>
    
    
    
    
    <table class="out-b">
    <tr><td>CELL 1</td><td>CELL 2</td></tr>
    <tr><td>CELL 3</td><td>CELL 4</td></tr>
    </table>
    
    
    <table>
    <tr><td class="out-b">CELL 1</td><td class="out-b">CELL 2</td></tr>
    <tr><td class="out-b">CELL 3</td><td class="out-b">CELL 4</td></tr>
    </table>
    
    Code (markup):
    To get rid of the borders on the tables you can use

    
    <style>
    table{border:none;}
    td{border:none;}
    </style>
    
    Code (markup):
    or

    
    <style>
    .no-border{border:none;}
    <style>
    
    
    <table class="no-border">
    <tr><td>CELL 1</td><td>CELL 2</td></tr>
    <tr><td>CELL 3</td><td>CELL 4</td></tr>
    </table>
    
    Code (markup):
     
    cons1t, Jun 24, 2012 IP