Basic HTML help, Im pretty noob :P (5 posts)

  1. PetruTiglar
    Posted 2 years ago #

    could someone please put this in to a code that i could modify to place anywhere on my site? I have an Affiliate code from CrazyDomains and ill like to place it on the left site of my page in the middle. When i paste the code in to the Header.php it pushes the site down and displays it self where i want it so i need to be able to evid the height and width in px to allign it where i want to. here is the code i got from crazydomains

    <(Space)a href="http://www.crazydomains.com.au?affiliate=YTozOntzOjk6Im1lbWJlcl9pZCI7czo3OiIyNjM4MDMxIjtzOjE5OiJhZmZpbGlhdGVfYmFubmVyX2lkIjtzOjI6IjExIjtzOjEwOiJyZWxvYWRfdXJsIjtzOjMwOiJodHRwOi8vd3d3LmNyYXp5ZG9tYWlucy5jb20uYXUiO30="><img src="http://www.crazydomains.com.au/images/affiliates/120x600/banner2_au.png" /></a(Space)>

    Thank you very much guys
    There is a space between the start and end where <a is because it doesnt show the whole code when i post

  2. MarkRH
    Posted 2 years ago #

    If you're just wanting to control the height and width of the image, then add the width and/or height attributes to the IMG tag:

    <a href="http://www.crazydomains.com.au?affiliate=YTozOntzOjk6Im1lbWJlcl9pZCI7czo3OiIyNjM4MDMxIjtzOjE5OiJhZmZpbGlhdGVfYmFubmVyX2lkIjtzOjI6IjExIjtzOjEwOiJyZWxvYWRfdXJsIjtzOjMwOiJodHRwOi8vd3d3LmNyYXp5ZG9tYWlucy5jb20uYXUiO30=">
    <img src="http://www.crazydomains.com.au/images/affiliates/120x600/banner2_au.png" width="60" height="300" /></a>

    To keep the same aspect ratio for the image, you need to make sure the height value is 5 times the width. In the code above, I made it half the size at 60x300.

  3. PetruTiglar
    Posted 2 years ago #

    Thanks for your reply Mark. What im trying to do is relocate the image position from its default location (above everything) to sit next to the content in the the site. Here is a url to show you what it looks like


  4. MarkRH
    Posted 2 years ago #

    Well, header.php is probably not the place for it then because anything in it will be before the main content. You'll need to add it to the php file that displays the content below the header.

    If the theme supports a left-hand sidebar then I'd add it to the left sidebar using a text widget.

  5. PetruTiglar
    Posted 2 years ago #

    thanks i'll give it a go

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.