Dreamweaver 8 Help - URGENT

Discussion in 'General Software' started by blade, Aug 8, 2006.

  1. blade

    blade GEEK 2.0

    Likes Received:
    0
    Trophy Points:
    0
    How do you put an image behind text with Dreamweaver 8???
     
  2. Karanislove

    Karanislove It's D Grav80 Of Luv

    Likes Received:
    0
    Trophy Points:
    36
    I think there is a rollover effect in it which you can use to do this thing. However, if you know how to rollover two images then why not put a picture of required text with another picture?
     
  3. Matt555

    Matt555 iMod

    Likes Received:
    98
    Trophy Points:
    48
    You can use tables / CSS to do this:
    Code:
    .textbackground {
    	width: WIDTH HEREpx;
    	height: auto;
    	background-image: url(images/back.gif);
    }
    
    That should go in your CSS document (or in the CSS section at the top of your page).
    Then:
    Code:
    <div class="textbackground">
    Text in here.
    <br />
    <br />
    Some more text.
    <br />
    </div>
    
    Where you want the text with background to be.
    You can also use tables to do this.
    Code:
    .cellbackground {
    	background-image: url(images/back.gif);
    }
    
    Put that in your CSS section / document.
    Then:
    Code:
    <table width=""  border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td class="cellbackground">Text in here</td>
    </tr>
    </table>
    
    Where you want the text with image behind it to appear.

    Hope that helps.
     
  4. blade

    blade GEEK 2.0

    Likes Received:
    0
    Trophy Points:
    0
    I tried the codes, but can't seem to get it to all work properly
    Here is the text code-where I want it on top of the picture...

    HTML:
    <td style='padding: 0px 40px 20px 40px' class="text"><table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td class="text" valign="top"><p>#TAG#</p>
                  <li>TEXT</li>
                  <li>TEXT</li>
                  <li>TEXT<br/>
                    #TAG# #TAG# </li>
                  <li>TEXT</li>
                  <li>TEXT</li>
                  <li>TEXT</li>
                  <li>TEXT <br/>
                    #TAG# #TAG# TEXT<br/>
                    #TAG# </li>
    And here is the pic code-where I want it to appear in the background of the text shown above

    HTML:
    <img src="../pic.GIF" width="600" height="256">
     
  5. Matt555

    Matt555 iMod

    Likes Received:
    98
    Trophy Points:
    48
    try it a little differently, this isn't valid HTML 4.01 (technically) but browsers render it just fine.
    HTML:
    <td style='padding: 0px 40px 20px 40px' class="text"><table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td valign="top" background="../pic.GIF"><p>#TAG#</p>
                  <li>TEXT</li>
                  <li>TEXT</li>
                  <li>TEXT<br/>
                    #TAG# #TAG# </li>
                  <li>TEXT</li>
                  <li>TEXT</li>
                  <li>TEXT</li>
                  <li>TEXT <br/>
                    #TAG# #TAG# TEXT<br/>
                    #TAG# </li>
    That should work, although I'm a little tired and may have it slightly wrong.

    It may not be working for you because you may not have the CSS set up properly.
     
  6. blade

    blade GEEK 2.0

    Likes Received:
    0
    Trophy Points:
    0
    Great, it worked, I used...

    <td class="text" valign="top" background="IMAGE LOCATION">

    before the text, but one small problem; it creates multiple pictures of the image behind the text:cramp:
     
  7. Matt555

    Matt555 iMod

    Likes Received:
    98
    Trophy Points:
    48
    Yeah that's where CSS comes in, you can set it to only show the image once, or to repeat in only one axis rather than both.
    Are you using any sort of CSS in your document at the minute?
     
  8. blade

    blade GEEK 2.0

    Likes Received:
    0
    Trophy Points:
    0
    im not sure, i don't know what css is:cramp:
     
  9. Matt555

    Matt555 iMod

    Likes Received:
    98
    Trophy Points:
    48
    CSS = Cascading style sheets.

    If you're using CSS you'll have something like:
    Code:
    <link href="stylesheet.css" rel="stylesheet" type="text/css">
    
    or:
    Code:
    <style type="text/css">
    <!--
    CSS STYLE STUFF IN HERE
    -->
    </style>
    
    in the <head></head> tags of you page.
    With CSS you store styling information in a separate place to the code that displays it, then you 'call' up that style information where you want it.

    Example: (It's in XHTML and doesn't use tables but the basic concept is there)
    Blog Site
    That uses CSS to style the page and then <div></div> tags to call that style information up. Changing the whole style of a page can be done easily as you can update one document (if you use the first way of linking to CSS) to update the style for the tags.

    I hope that explained it a bit.

    Let me know if you're using CSS and I'll be able to help you further (maybe also attach all the files you're using in a .zip attachment to your post and I can have a look)
     
  10. blade

    blade GEEK 2.0

    Likes Received:
    0
    Trophy Points:
    0
    ic, yea, I think there is css

    It's only one file-its a template; I've uploded the file on filewire. I'll PM you the link.

    The image I'm working on is the pic under "Shipping Info", I'm trying to get it align to the right beside, but to the left of the shipping calculator tag; behind text of course
     
  11. Matt555

    Matt555 iMod

    Likes Received:
    98
    Trophy Points:
    48
    I'm not sure I quite understand...
     
  12. blade

    blade GEEK 2.0

    Likes Received:
    0
    Trophy Points:
    0
    did you get the file; you'll see a pic under "Shipping Info"(its behind the text, but it should still be visible) You'll see that the pic is multiplied, and I'm trying to get it not to do that
    I also what it to align to the right(don't know where I'm suppose to place <P align=right> for the pic)
     
  13. Matt555

    Matt555 iMod

    Likes Received:
    98
    Trophy Points:
    48
  14. blade

    blade GEEK 2.0

    Likes Received:
    0
    Trophy Points:
    0
    yea thats the pic, but i dont want it under shiprate, i want the pic under the text, align to the right, and want to get rid of the multiple image effect:)
     
  15. Matt555

    Matt555 iMod

    Likes Received:
    98
    Trophy Points:
    48
    Okay gotcha, I'll re-upload the corrected file and PM you the link.

    :good:
     
  16. blade

    blade GEEK 2.0

    Likes Received:
    0
    Trophy Points:
    0
    YES! ITS PERFECT! THANKS! :waycool:
     
  17. Matt555

    Matt555 iMod

    Likes Received:
    98
    Trophy Points:
    48
    Hey no problem, glad to help :good:
     

Share This Page