473,786 Members | 2,445 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

captioning images

I'd like to place a "caption" under an image and insert both into the flow
of text.

I'm thinking of something like this:

(Styles shown inline for readability, they would be defined as classes)

<div style="float: left; padding: 10px"><img src="some_image .jpg"><div>my
caption/credit</div></div>
<p> enough content to flow around the image....</p>

Perhaps the image container should have a margin set rather than padding,
but padding doesn't break badly in old broken browsers like NS4.

Seems like there should be a better way to do this. This is such basic
stuff!

What about inserting the image (and caption) into the flow of the paragraph?
Aren't block level elements not allowed in paragraphs?

What's the level of support for <object data="some_imag e_path"
type="image/jpg"> ? (or is that jpeg). My IE5 (win 98) ignores the image and
my Opera 7 and NS7.1 both ignore any text following the object. Haven't
checked Mac. But that doesn't seem right. I used the example here:
<http://www.w3.org/TR/html4/struct/objects.html>

And, no, I don't want to add the "caption" with photoshop!

I wasn't quite sure where to post this, I hope 3 groups isn't overkill!

Jeff
Jul 20 '05
11 1810

"Lauri Raittila" <la***@raittila .cjb.net> wrote in message
news:MP******** *************** *@news.cis.dfn. de...
| Chet wrote:
|
| > > > Why don't you just place a <br> between the image and
caption and
| > > > get rid of the caption div?
|
| Lauri:
|
| > > And if you want to change it later so that image is
centered and caption
| > > left-aligned?
|
| Chet:
|
| > I updated my sample with the captions aligned center, left
and
| > right for you.
| >
| > http://webpages.charter.net/rwtest/s...ge_caption.htm
|
| And did you use <br> between image and caption?
| </question class="rhetoric al">
|
| --
| Lauri Raittila <http://www.iki.fi/lr>
<http://www.iki.fi/zwak/fonts>
| Saapi lähettää meiliä, jos aihe ei liity ryhmään, tai on
yksityinen
| tjsp., mutta älä lähetä samaa viestiä meilitse ja ryhmään.
|

In the sample as it is now, No, I didn't use the <br>. When I
first posted it with the captions centered, yes I did.

Chet
Jul 20 '05 #11

"Chet" <ng******@NOcha rterSPAM.net> wrote in message
news:10******** *****@corp.supe rnews.com...

"Lauri Raittila" <la***@raittila .cjb.net> wrote in message
news:MP******** *************** *@news.cis.dfn. de...
| Chet wrote:
|
| > > > Why don't you just place a <br> between the image and
caption and
| > > > get rid of the caption div?
|
| Lauri:
|
| > > And if you want to change it later so that image is
centered and caption
| > > left-aligned?
|
| Chet:
|
| > I updated my sample with the captions aligned center, left
and
| > right for you.
| >
| > http://webpages.charter.net/rwtest/s...ge_caption.htm
|
| And did you use <br> between image and caption?
| </question class="rhetoric al">
|
| --
| Lauri Raittila <http://www.iki.fi/lr>
<http://www.iki.fi/zwak/fonts>
| Saapi lähettää meiliä, jos aihe ei liity ryhmään, tai on
yksityinen
| tjsp., mutta älä lähetä samaa viestiä meilitse ja ryhmään.
|

In the sample as it is now, No, I didn't use the <br>. When I
first posted it with the captions centered, yes I did.
I rather like the idea of the caption in the paragraph. Perhaps
syntactically more meaningfull than a div.

I also like Beauregard's idea of a floated span so that it can be embedded
anywhere inside the paragraph (good for multiple images in long paragraphs).
I had thought of floating an inline element, but I guess images are inline
and they can be floated.

Cheers,
Jeff

Chet

Jul 20 '05 #12

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
2366
by: Wayne | last post by:
I have a script that uses filesystemobject that reads files from a given path, in my case images. It is running on a server that is 2000 adv svr w/ all current patches. The script prior to some patch updating worked fine and showed the pictures. Now the pictures no longer show when looking at the source code the absolute path of the file is correct but will not display the image. I tried it on another 2000 adv svr and the script worked...
11
1786
by: Jeff Thies | last post by:
I'd like to place a "caption" under an image and insert both into the flow of text. I'm thinking of something like this: (Styles shown inline for readability, they would be defined as classes) <div style="float: left; padding: 10px"><img src="some_image.jpg"><div>my caption/credit</div></div> <p> enough content to flow around the image....</p>
3
1588
by: Wraith Daquell | last post by:
Hello all! I'm trying (read: becoming frustrated) to write a DVD viewer in VB.NET. I can embed the DVD picture using DirectX technology, but it seems to be impossible to obtain closed captioning from the DVD and convert it to a string. There were a few tips on getting the captioning in the MSDN, I know, but they were rather cryptic (unusual) and didn't convert the captioning to a string. If there is anyone who can help me, or even just...
3
3829
by: Simon | last post by:
This problem has been driving me mad for months.... Seen a few posts on forums about it but no answers... No mention on MSDN etc. XP Pro SP1, VS.NET (c#) .Net framework 1.1, IIS 5.1. In a nutshell when testing my ASP.NET (localhost) apps images randomly don't load on the page. Examining the IIS logfile shows the missing images give 401 or 403 errors. Here's an example - 10:15:47 127.0.0.1 GET...
2
1496
by: Clancy | last post by:
Hello to all. I just finished my first web development class so now I have a little knowledge and could be considered dangerous. I have no real clue on how to make this idea work but it sure seems feasible and would immensely appreciate any assistance or direction to make this happen. What I want to happen is to have the user have the ability to turn an IFRAME, ON and OFF at anytime say within a series of 25 continuously linked...
4
2974
toxicpaint
by: toxicpaint | last post by:
Hi, can anyone give me a hand. I'm currently displaying 4 random images at the top of a page. I did this using an array of 35 pictures and then writing them to page. The problem I have is that in theory you could get the same image 4 times. I quite often get 2 of the same picture come up. What's the easiest way of saying "once an image is assigned to a variable, take it out of the array"? Here's my code so far.. images = new Array(34);...
0
1321
by: PulkitZery | last post by:
Hi all, I have a question about windows media encoder (WME) closed captioning. Does WME maintains the Line-21 closed captioning? In other words, does windows media encoder pulls closed captioning from line-21 off of the video feed and automatically builds the closed captioning into the Archive file? Thanks very much in advance for your help and time. Best regards, Jerry
3
1994
by: PulkitZery | last post by:
Hi All, I am trying to get the Closed Captioning (if available) from the Windows media player and display it in my little dialog box. Can some one give me an example or point me to any documentation/paper/article that shows how can I get the Close Captioning from windows media player? Thanks in advance for any help. - Pulkit Zery
0
9647
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9492
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10360
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10108
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7510
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5397
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5532
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4064
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3668
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.