Help with a border

  • 1
  • Question
  • Updated 10 years ago
  • Answered
--!>

thats my code, i need to have another image undrneath it, when i tinkered with the HTML all it did was put the Image Necto it, i also want it to link to to a page on my site.

thanks for your help

al
Photo of Alex

Alex

  • 3448 Posts
  • 39 Reply Likes
  • happy!

Posted 10 years ago

  • 1
Photo of Kershnee

Kershnee

  • 2087 Posts
  • 152 Reply Likes
Hi Alex,

I don't think all your code got pasted here. Can you please post again.
Photo of Alex

Alex

  • 3448 Posts
  • 39 Reply Likes
oh! ok i wil re post it here!
<!--<table border="0" cellspacing="0" cellpadding="3" align="center" bgcolor="#FF3366"> <tr> <td><img src="resources/my image.png"></td> </tr></table>-->
Photo of Sanja

Sanja, Official Rep

  • 10698 Posts
  • 495 Reply Likes
Are you trying to place an image on a background?

In your code, trying using this line for your background color - "background-color:#FF3366"

Also.. make sure your image scr is <! -- < img scr="yourdomain/resources/filename" > -- !>
Photo of Alex

Alex

  • 3448 Posts
  • 39 Reply Likes
yea, its juat a EG image, not mine!
Photo of UK Duke

UK Duke, Champion

  • 3321 Posts
  • 213 Reply Likes
i always define the table width, like this,

<!--
<table width="100%" cellspacing="0" cellpadding="3" align="center" bgcolor="#FF3366"> <tr> <td bgcolor="#ffffff"><img src="resources/my image.png"></td> </tr></table>-->

something like that that will give you a border and a white background.

Explain exactly what you want to do, maybe someone can help more,.
Photo of Alex

Alex

  • 3448 Posts
  • 39 Reply Likes
i want 2 images in the the same border.
Photo of Sanja

Sanja, Official Rep

  • 10698 Posts
  • 495 Reply Likes
add another img scr .. and you should get two images in the same border
Photo of Sanja

Sanja, Official Rep

  • 10698 Posts
  • 495 Reply Likes
right beside the orignal one.. and if you want a space between.. add the < br > tag
Photo of UK Duke

UK Duke, Champion

  • 3321 Posts
  • 213 Reply Likes
you can add a br after the image then add another img src or add another td or tr depends how you want it set out - the easiest is adding a br then another image src
Photo of Alex

Alex

  • 3448 Posts
  • 39 Reply Likes
i have done that the image appears next to the other one, i want it underneath it
Photo of Sanja

Sanja, Official Rep

  • 10698 Posts
  • 495 Reply Likes
keep adding < br > tags until you get it underneath?
Photo of Sanja

Sanja, Official Rep

  • 10698 Posts
  • 495 Reply Likes
also.. maybe it'll help to make the table width a fixed number instead of using %, use px instead - like 400px. Just make sure it's big enough to accommodate your images.
Photo of Alex

Alex

  • 3448 Posts
  • 39 Reply Likes
ahh! thanks littleus!
Photo of UK Duke

UK Duke, Champion

  • 3321 Posts
  • 213 Reply Likes
you shoulod only need 1 - play with this code
<!--
<table width="100%" align="center" bgcolor="#89d81a" border="0" cellpadding="10" cellspacing="1"> <tbody><tr align="center"> <td bgcolor="#ffffff">
<img src="http://hexham.info/resources/images/b...>
<img src="http://hexham.info/resources/images/b...>
</td></tr> </tbody></table>

-->
Photo of Sanja

Sanja, Official Rep

  • 10698 Posts
  • 495 Reply Likes
You're welcome Alex. What did you end up doing? I'm just learning this stuff too and would like to know what works! =)
Photo of Alex

Alex

  • 3448 Posts
  • 39 Reply Likes
it works a treat! its for my employees page, its brill i will post a link when i have done!

al
Photo of Sanja

Sanja, Official Rep

  • 10698 Posts
  • 495 Reply Likes
But.... what did you actually do? Did you use Lee's code? or just made the table width fixed or just added the br tags?
Photo of Alex

Alex

  • 3448 Posts
  • 39 Reply Likes
Can I Have Some Help With Making It A Link Too?
i need it tolink to a page on my site!

al
Photo of UK Duke

UK Duke, Champion

  • 3321 Posts
  • 213 Reply Likes
links are easy alex - wrap the whole thing in this
<!-- <a href="http://YOURSITE.synthasite.com> </a> -->
Photo of UK Duke

UK Duke, Champion

  • 3321 Posts
  • 213 Reply Likes
the link starts from the <a href and ends a the /a
Photo of Sanja

Sanja, Official Rep

  • 10698 Posts
  • 495 Reply Likes
You add this code before the img scr:

<! - - < a href="http://YOURSITE/PAGE" > - -!>
Photo of UK Duke

UK Duke, Champion

  • 3321 Posts
  • 213 Reply Likes
if you wnat the 2 images to have different links, start 1 before the first image then end it with the /a then before the second (after the /a) do the same thing again.
Photo of Alex

Alex

  • 3448 Posts
  • 39 Reply Likes
how do you do that?

im realy Bad At HTML :(

al
Photo of Alex

Alex

  • 3448 Posts
  • 39 Reply Likes
k thanks lee
Photo of UK Duke

UK Duke, Champion

  • 3321 Posts
  • 213 Reply Likes
this has 2 links
<!--
<table width="100%" align="center" bgcolor="#89d81a" border="0" cellpadding="10" cellspacing="1"> <tbody><tr align="center"> <td bgcolor="#ffffff">
<a href="http://YOURSITE.synthasite.com>&lt;img src="http://hexham.info/resources/images/b...>
<a href="http://YOURSITE.synthasite.com>&lt;img src="http://hexham.info/resources/images/b...>
</td></tr> </tbody></table>
-->
Photo of UK Duke

UK Duke, Champion

  • 3321 Posts
  • 213 Reply Likes
change both YOURSITE and add a page extension if you wish
Photo of Sanja

Sanja, Official Rep

  • 10698 Posts
  • 495 Reply Likes
good job Lee. You're always so good at this coding stuff! =)
Photo of UK Duke

UK Duke, Champion

  • 3321 Posts
  • 213 Reply Likes
@littleus - you have come on a long long way code, well done.
Photo of Alex

Alex

  • 3448 Posts
  • 39 Reply Likes
WAIT! i am completely lost again, it just brings up text where i have made in the border :( now it wont work.
Photo of UK Duke

UK Duke, Champion

  • 3321 Posts
  • 213 Reply Likes
you must be missing a < or a >
Photo of UK Duke

UK Duke, Champion

  • 3321 Posts
  • 213 Reply Likes
try this alex
<!--
<table width="100%" align="center" bgcolor="#89d81a" border="0" cellpadding="10" cellspacing="1"> <tbody><tr align="center"> <td bgcolor="#ffffff"> <a href="http://hexham.info">&lt;img src="resources/images/banner.jpg" border="0"></a><br> <a href="http://hexham..info">&lt;img src="resources/images/banner.jpg" border="0"></a> </td></tr> </tbody></table>

-->
Photo of UK Duke

UK Duke, Champion

  • 3321 Posts
  • 213 Reply Likes
beause i made the last one easy to read it would'nt work for some reason.
Photo of Alex

Alex

  • 3448 Posts
  • 39 Reply Likes
thanks lee!

i have spent all this time tinkering with it but had no luck.i will test it now, thanks lee!