HTML Help

Discussion in 'HTML & Website Design' started by sggenterprise, Feb 25, 2010.

  1. #1
    Hi guy, I need a little help. My site www.HostLip.com im trying to add a banner to the right of the header logo. I keep adding the code but it keeps going under logo. Here is the code, i know it should be entered under the logo somewhere.

    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="robots" content="index,follow" />
    <meta name="keywords" content=" " />
    <meta name="description" content=" " />
    <title>HostLip.com | About Us</title>
    <link type="text/css" rel="stylesheet" href="css/style.css" media="all" />
    </head>
    <body>
    <div id="header">
    <a href="index.html"> <img src="images/hllogo.jpg" alt="Logo" title="#" /> </a>

    </ul>
    <div id="main-nav">
    <ul>
    <li><a href="index.html"><span>home</span></a></li>
    <li><a href="hosting.html"><span>Web Hosting</span></a></li>
    <li class="on"><a href="about.html"><span>about us</span></a></li>
    <li><a href="clientcp/index.php"><span>support</span></a></li>

    </ul>
    </div>
    </div>


    Banner and code i want to add

    <a href="http://www.facebook.com/pages/HostLipcom/323032628950?v=photos#!/pages/HostLipcom/323032628950?ref=ts"> <img src="images/facebook.jpg" alt="FaceBook" title="Home" /> </a>
     
    sggenterprise, Feb 25, 2010 IP
  2. mafialink

    mafialink Peon

    Messages:
    183
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    maybe the site can help you w3schools.com
     
    mafialink, Feb 25, 2010 IP
  3. dem0x7

    dem0x7 Peon

    Messages:
    81
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    You could float the logo to the left, and float your other image to the right.

    Example:

    
    <div id="header">
        <div style="float: left;"><a href="index.html"> <img src="images/hllogo.jpg" alt="Logo" title="#" /> </a></div>
        <div style="float: right;"><a href="http://www.facebook.com/pages/HostLipcom/323032628950?v=photos#!/pages/HostLipcom/323032628950?ref=ts"> <img src="images/facebook.jpg" alt="FaceBook" title="Home" /> </a></div>
    </div>
    
    Code (markup):
     
    dem0x7, Feb 25, 2010 IP
  4. sggenterprise

    sggenterprise Active Member

    Messages:
    249
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    83
    #4
    I did that but it the banner gos to the top right now. http://www.hostlip.com/about.html.

     
    sggenterprise, Feb 26, 2010 IP
  5. dem0x7

    dem0x7 Peon

    Messages:
    81
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Well yeah, that's the basics of it. Now you can add position: relative; and do top: 10px; right: 50px; or something like that.
     
    dem0x7, Feb 26, 2010 IP
  6. sggenterprise

    sggenterprise Active Member

    Messages:
    249
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    83
    #6
    You mean in CSS?

     
    sggenterprise, Feb 26, 2010 IP