www.webdeveloper.com
Results 1 to 7 of 7

Thread: CSS images

  1. #1
    Join Date
    Apr 2005
    Posts
    156

    CSS images



    Hello Everyone,

    How do I call my images in css? Is this correct? src="../moneymagnet/.gif"

    If not what should it be?


    Thank you for your help!

  2. #2
    Join Date
    Apr 2005
    Location
    Portsmouth, UK
    Posts
    157
    Code:
    #div {
      background: url(path/to/image.jpg) repeat;
    }
    I am the sum of the lack of all knowledge...
    Before You Ask Any Questions...
    aim54 Digital Solutions

  3. #3
    Join Date
    Apr 2005
    Posts
    156
    will this work for a logo?

  4. #4
    Join Date
    Apr 2005
    Posts
    156
    My code below. Thanks for your help!


    <html>
    <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
    </head>
    <body>
    <title>Untitled</title>
    <link rel="STYLESHEET" type="text/css" href=".css">
    <!-- Begin top graphical header -->
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tbody>
    <tr>
    <td><img src=".gif" width="1" height="50" alt="">

    </td>
    </tr>
    <tr><td bgcolor="blue" wrap=""><img src="logo.jpeg" width="180" height="75" alt=""></td>
    </tr>
    </tbody>
    </table>

  5. #5
    Join Date
    Apr 2005
    Posts
    156
    how do I get my logo to show up on the site? Thanks

  6. #6
    Join Date
    Apr 2005
    Location
    Portsmouth, UK
    Posts
    157
    Where is your logo located? When using the ' src="" ' tag you have to specify the path to the resource. If the image is in the same directory, then it should be showing up. If it is in a subfolder like "images" then your 'src' tag has to reflect that, like so:
    Code:
    <img src="images/logo.jpeg" width="180" height="75" alt="">
    I am the sum of the lack of all knowledge...
    Before You Ask Any Questions...
    aim54 Digital Solutions

  7. #7
    Join Date
    Apr 2005
    Posts
    156
    Thanks!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles