Question:

I need the code for having images but being able to input html inside of them?

by  |  earlier

0 LIKES UnLike

im making a div layout for my myspace and i cannot figure out the code for images that you can add like, text in the middle without adding it to the picture. For example, I want to do a gold frame as the image and inside I want to insert my cartfly.com store where people can order some stuff that i make, does anyone know how to do this?

 Tags:

   Report

2 ANSWERS


  1. The image you want to write text over without actually writing on the image will be a background image.  That image for MySpace MUST be hosted online at any image hosting site like imageshack.com or photobucket.com.

    You MUST use the DIRECT link to the online image then code the div similar to the following, but with your own text and styling:

    <div style="width: XXpx; height: YYpx; margin: 0 auto; background: #fff url(Direct link to gold frame image) no-repeat center scroll;">

    Your cartfly.com store text here

    </div>

    The above style will center the div inside whatever container you put it (About Me??).  Be sure to set the width/height dimensions to those of the image or larger if you want the white (#fff) background to make a border around it. Change '#fff' to any color you want.  MySpace may require the removal of the pound symbol ( # ) to work right.

    The image will scroll with page and contents.

    Hope that gets you going.

    Ron


  2. you're talking about a background-image.  Use css

    <div style="display:block;height:100px;width:... src="www.yahoo.com" /></div>

Question Stats

Latest activity: earlier.
This question has 2 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.