Vital Question

S

Snir

Hello All!

I'm working on a css based website via. HTML and I am experiencing a
problem.

If any of you know the code to what I'm talking about, please e-mail
me AND post it up in here.

You see, my content is layed out on the left side of the page but NOT
COMPLETELY, meaning I used a couple (about 10)  's:

!!!!!!!!!!!!!!!!!! (THIS CONTENT IS A PICTURE)

*notice the spaces before the !!!'s representing the &nbsp's.

You see, I need to write a caption for the picture and it always
appears on the same line as the picture like this:

!!!!!!!!!!!!!!!!!! (PIC) XXXXXX (CAPTION)

I need to put the caption exactly where the picture is (with the
 's) and so I tried to center it but it appears to be this:

!!!!!!!!!!!!!!!! (PIC)

XXXXX (CENTERED CAPTION)

What is the code to get the caption to appear as the following (I'm
not sure but I recall something like align=left or something like that
or a certain <tr>....):

FINAL LAYOUT

!!!!!!!!!!!!!!!!!!!!!!! (PIC)
XXXXXXXXXXXXXXXXXXXXXXX (CAPTION)

Thanks so very much,

Snir.
 
B

Beauregard T. Shagnasty

Quoth the raven named Snir:
I'm working on a css based website via. HTML and I am experiencing a
problem.

If any of you know the code to what I'm talking about, please e-mail
me AND post it up in here.

Post on Usenet, get answer on Usernet.

FINAL LAYOUT

!!!!!!!!!!!!!!!!!!!!!!! (PIC)
XXXXXXXXXXXXXXXXXXXXXXX (CAPTION)


The HTML:
<p>
A paragraph of text goes here... blah blah blah
<span class="imgleft">
<img src="path-to/images/yours.gif" alt="<your alt text>" width="60"
height="44" /><br />
Your caption here
</span>
blah blah blah blah blah blah blah blah blah blah </p>


The CSS:
..imgleft, .imgright {
font-size: 90%; /* if you want it smaller */
font-style: italic;
padding: 1em;
position: relative;
text-align: center;
}
..imgleft {
float: left;
}
..imgright {
float: right;
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,731
Messages
2,569,432
Members
44,832
Latest member
GlennSmall

Latest Threads

Top