Html. Help Please.

Discussion in 'Programming General' started by Rune Guru, Feb 9, 2012.

Html. Help Please.
  1. Unread #1 - Feb 9, 2012 at 5:18 AM
  2. Rune Guru
    Joined:
    May 11, 2007
    Posts:
    587
    Referrals:
    0
    Sythe Gold:
    0
    St. Patrick's Day 2013

    Rune Guru Forum Addict

    Html. Help Please.

    Ok so I have an Search Code:

    How do I add an Image behind that? not a background.
     
  3. Unread #2 - Feb 10, 2012 at 5:13 PM
  4. World Domination
    Joined:
    Apr 9, 2007
    Posts:
    1,563
    Referrals:
    3
    Sythe Gold:
    5

    World Domination Guru
    Banned

    Html. Help Please.

    if this is what you mean:
    [​IMG]

    Then it's done by putting your search <div> inside a table and putting the background of the table the image you want. You'd accomplish that by doing the following:
    Code:
    <center>	
    <div>
    
    </div>
    <table width="275" height="75" border="0" background="https://www.google.com/logos/classicplus.png">
      <tr>
        <td width="378"><form action="sphider/search.php" method="get">
    <input type="text" name="query" id="query" size="50" value="">
    <input type="submit" value="Search Game" />
    <input type="hidden" name="search" value="3">
    </form></td>
      </tr>
    </table>
    </center>
    Obviously you will change "https://www.google.com/logos/classicplus.png" to the URL of the image you want to use. You will also need to change the table size to the size of the image, otherwise it will repeat itself. Make sure you leave the Border="0" part; that will make the table essentially "invisible".
     
  5. Unread #3 - Feb 11, 2012 at 12:14 AM
  6. Darthatron
    Joined:
    May 22, 2006
    Posts:
    1,612
    Referrals:
    3
    Sythe Gold:
    0

    Darthatron Massive Troll
    Retired Sectional Moderator Visual Basic Programmers

    Html. Help Please.

    I don't understand why you don't want to use a background image?
    Code:
    <center>
    <div[COLOR="Yellow"] style="background:url('https://www.google.com/logos/classicplus.png') center center no-repeat; height: 95px; width: 500px;"[/COLOR]>
    <form action="sphider/search.php" method="get">
    <input type="text" name="query" id="query" size="50" value="">
    <input type="submit" value="Search Game">
    <input type="hidden" name="search" value="3">
    </form>
    </div>
    </center> 
     
  7. Unread #4 - Feb 13, 2012 at 4:17 AM
  8. Rune Guru
    Joined:
    May 11, 2007
    Posts:
    587
    Referrals:
    0
    Sythe Gold:
    0
    St. Patrick's Day 2013

    Rune Guru Forum Addict

    Html. Help Please.

    for some reason it keeps moving up or down, its very strange and none of my HTML mates know why,,,
     
  9. Unread #5 - Feb 13, 2012 at 8:40 PM
  10. Deviant Cloud
    Joined:
    Feb 10, 2012
    Posts:
    368
    Referrals:
    0
    Sythe Gold:
    0

    Deviant Cloud Forum Addict
    Banned

    Html. Help Please.

    If you use "Position: Absolute;" it won't move when you scroll and such, if you use background image.
     
  11. Unread #6 - Feb 18, 2012 at 9:23 AM
  12. Rune Guru
    Joined:
    May 11, 2007
    Posts:
    587
    Referrals:
    0
    Sythe Gold:
    0
    St. Patrick's Day 2013

    Rune Guru Forum Addict

    Html. Help Please.

    Thanks worked =)
     
  13. Unread #7 - Feb 19, 2012 at 1:18 AM
  14. Deviant Cloud
    Joined:
    Feb 10, 2012
    Posts:
    368
    Referrals:
    0
    Sythe Gold:
    0

    Deviant Cloud Forum Addict
    Banned

    Html. Help Please.

    All good mate anytime.
     
< Java | [.NET][JAVA]RSAPI - A Client Developers API >

Users viewing this thread
1 guest


 
 
Adblock breaks this site