Adblock breaks this site

Html. Help Please.

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

  1. Rune Guru

    Rune Guru Forum Addict

    Joined:
    May 11, 2007
    Posts:
    587
    Referrals:
    0
    Sythe Gold:
    0
    St. Patrick's Day 2013
    Html. Help Please.

    Ok so I have an Search Code:

    How do I add an Image behind that? not a background.
     
  2. World Domination

    World Domination Guru
    Banned

    Joined:
    Apr 9, 2007
    Posts:
    1,563
    Referrals:
    3
    Sythe Gold:
    5
    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".
     
  3. Darthatron

    Darthatron Massive Troll
    Retired Sectional Moderator Visual Basic Programmers

    Joined:
    May 22, 2006
    Posts:
    1,612
    Referrals:
    3
    Sythe Gold:
    0
    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> 
     
  4. Rune Guru

    Rune Guru Forum Addict

    Joined:
    May 11, 2007
    Posts:
    587
    Referrals:
    0
    Sythe Gold:
    0
    St. Patrick's Day 2013
    Html. Help Please.

    for some reason it keeps moving up or down, its very strange and none of my HTML mates know why,,,
     
  5. Deviant Cloud

    Deviant Cloud Forum Addict
    Banned

    Joined:
    Feb 10, 2012
    Posts:
    368
    Referrals:
    0
    Sythe Gold:
    0
    Html. Help Please.

    If you use "Position: Absolute;" it won't move when you scroll and such, if you use background image.
     
  6. Rune Guru

    Rune Guru Forum Addict

    Joined:
    May 11, 2007
    Posts:
    587
    Referrals:
    0
    Sythe Gold:
    0
    St. Patrick's Day 2013
    Html. Help Please.

    Thanks worked =)
     
  7. Deviant Cloud

    Deviant Cloud Forum Addict
    Banned

    Joined:
    Feb 10, 2012
    Posts:
    368
    Referrals:
    0
    Sythe Gold:
    0
    Html. Help Please.

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


 
 
Adblock breaks this site