Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 3 of 3
  1. #1
    Senior Member Karloff's Avatar
    Join Date
    Oct 2005
    Posts
    744
    Member #
    11702
    i keep getting this error message

    Error Line 40 column 39: there is no attribute "ALIGN".

    <IMG SRC="dining-room.jpg" align="right" alt="">

    for my code, how can i achieve this effect and use valid code aswell??

  2.  

  3. #2
    Member jagstangman's Avatar
    Join Date
    Jul 2005
    Posts
    31
    Member #
    10690
    use css to position your image to the right.

    Change the image tag to:

    <IMG SRC="dining-room.jpg" class="imgright" alt="">

    Then using CSS use the following:


    .imgright {
    float: right
    }

    This will align the image to the right and be valid.

    If your not sure were to put the CSS put it in an external CSS file with your other CSS stuff (thats if your using CSS) or you can enter it into the head section like so:

    <head>
    <style type="text/css">
    <!--

    .imgright {
    float: right
    }

    -->
    </style>
    </head>

    I might of done that bit above wrong becasue I only use external css nowadays so ive forgotten the code but im sure its right. Someone else on here will correct me if im wrong.
    ----------
    Steve

  4. #3
    Senior Member Karloff's Avatar
    Join Date
    Oct 2005
    Posts
    744
    Member #
    11702
    its cool, i get what u mean. cheers, really should of thought of that myself.....doh!!!!

    thanks man


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 12:18 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com