51 users online (1 members and 50 guests)  


  Results 1 to 3 of 3

Related

  1. want to buy banner spot    Forum: Internet Services
    Replies: 2
  2. content type header    Forum: CGI Perl Forum
    Replies: 3
  3. Replies: 1
  4. Same Header Side Bar On Every Page    Forum: HTML Forum
    Replies: 1
  1. #1
    johnnycanuk's Avatar
    New User

    Status
    Offline
    Join Date
    Sep 2008
    Posts
    1

    I can't get my header image to go to the proper spot

    I have spent hours trying to move the header image to where the green is on the front page that I have just started to create. I have to follow strict protocols so I can't play too much with the code.

    Here is my site, can someone come up with the answer?

    http://www.liteitup.ca/3col-eng.html

  2. #2
    jthayne's Avatar

    Status
    Offline
    Join Date
    Aug 2008
    Location
    Texas
    Posts
    508

    Re: I can't get my header image to go to the proper spot

    Here is the problem:
    Code:
    	<div class="banner"><A HREF="javascript:changepage()"><img src="images/banner1.jpg" alt="Rotating Banner" border=0" name="banner1" width="760" height="80"></A>
    		<img src="images/lffl.gif" class="lf pngfix" height="65" width="65" alt="" />
    
    		<p class="main">Royal Canadian Artillery</p>
    		<p class="siteuri">[www.]artillery.net</p>
    	</div>
    Basically, you have an image with a specified size follwed by another image and two paragraphs. There are two ways to make the change:

    1. remove the image tag from the HTML and set a background-image for the div in the CSS

    OR

    2. use CSS and position: relative to position the various elements (as well as resize the div to reflect the necessary changes).

  3. #3
    htmlmaster's Avatar
    New User

    Status
    Offline
    Join Date
    Nov 2008
    Posts
    3

    Re: I can't get my header image to go to the proper spot

    Yes, margin-top: {how many pxh}
    margin-left: {how many pxh}
    margin-right: {how many pxh}
    margin-bottom: {how many pxh}



Tags for this Thread