html css image alignment

Posted by computerpro007 on Stack Overflow See other posts from Stack Overflow or by computerpro007
Published on 2010-05-06T01:27:28Z Indexed on 2010/05/06 1:38 UTC
Read the original article Hit count: 279

Filed under:
|
|
|

Hi All,

I have a question regarding image alignment with CSS. For example I have created a css class as below:

.link {
 background: url("images/image1.gif") scroll right;
}

and below is the markup

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
        <title>Untitled Document</title>
        <p class="link">This is a link</p>
    </head>
    <body>
    </body>
</html>

When I check in the browser I get the image on the text. I want it after the text i mean

This is a link (this is where I want the image to appear)

© Stack Overflow or respective owner

Related posts about html

Related posts about css