Adblock breaks this site

CSS + Float help

Discussion in 'Web Programming' started by Gone Fishing, Aug 21, 2007.

  1. Gone Fishing

    Gone Fishing Apprentice

    Joined:
    Feb 5, 2007
    Posts:
    896
    Referrals:
    3
    Sythe Gold:
    0
    CSS + Float help

    Ok, I'm trying to make an image float to the corners of my table to give it a rounded shape, but whenever I do float:left, it floats outside the table, how do I fix this :S :(.
     
  2. timk777

    timk777 Active Member

    Joined:
    Feb 19, 2007
    Posts:
    156
    Referrals:
    0
    Sythe Gold:
    0
    CSS + Float help

    ... Are you gonna post the source?
     
  3. Gone Fishing

    Gone Fishing Apprentice

    Joined:
    Feb 5, 2007
    Posts:
    896
    Referrals:
    3
    Sythe Gold:
    0
    CSS + Float help

    Code:
    <html>
    <head>
    <style type="text/css">
    .left {float:left;}
    </style>
    </head>
    <table>
    <tr><td><div class="left"><img src="border-1.gif"></div></td></tr>
    </table>
    </html>
    
     
  4. timk777

    timk777 Active Member

    Joined:
    Feb 19, 2007
    Posts:
    156
    Referrals:
    0
    Sythe Gold:
    0
    CSS + Float help

< website help | Davido83's Guide To HTML (Hypertext Markup Language) >


 
 
Adblock breaks this site