User login
Navigation
Popular content
Recent blog posts
Active forum topics
Who's new
Who's online
There are currently 0 users and 4 guests online.
|
Embedding imagesBy far the simplest way to add photos to an article is through the Images command at the top. For this you have to submit the text message first, only then you can add photos with the Images command. Images automatically scales down the photos, so you don't have to worry about that either. And it automatically creates an image gallery. Note: To use the alternative image embedding method described below, you have to have sufficient rights to select at least the input format "Partly HTML". If the Images command does not suffice, you can put inline images into posted messages. The rest of this message deals only with that more complicated method. Simplest method, not requiring the creation of thumbnails Here is the simplest method to add a small number of clickable pictures to a message. This procedure saves you from having to produce a thumbnail image for each picture. However, this method is unsuitable for larger numbers of pictures because of excessive page load times.
The result will look like this: Optional refinements All of the following refinements consist of additional attributes in the inner <img /> tag. So far you have the attributes alt=" " and height="150", but you can add additional ones. You can add them between these two or between the height attribute and the closing />, but make sure all attributes are separated from each other by a space.
Note: You can only use one of the following style attributes, never two or more at the same time.
Technical background: Why is the margin different? Because we have left-justified text with a ragged right edge, so the average distance from the image will be much larger anyway, and we can tolerate the occasional line protruding very close to the image. More elaborate methods requiring the creation of separate thumbnail images First you have to upload the images as attachments to the message. You can later suppress their listing, if you like, by removing the check marks from the "List" checkboxes. Then you have to use a little bit of HTML code to embed the image, which is not too difficult. Note: The Input format must be set to Partly HTML, otherwise the pictures will not be visible. You have to create a smaller picture for the web site. This makes the arrangement in the text look nice and saves everyone watching the picture a lot of download time. If you want to have a clickable, enlargeable picture and haven't used the Images command, you need to create a somewhat larger picture on your computer as well, which you also have to attach to the message. Never upload the full-sized picture from the camera, which is far too big for a web site image. (Note: This does not hold for the Images command, which resizes pictures automatically, but which we normally cannot use for embedding pictures in the text.) You can create smaller pictures for example with IrfanView, using the following commands:
Other photo processing or retouching programs can do it just as well. To use the examples below, you can copy the HTML code into your message and then replace imagefilename and Caption with your desired filename and text. You could use the "Images" command to upload the pictures, but that has the disadvantage that the embedded pictures show up a second time at the top of the article. If you want to use the Images command anyway, the image path can be copied from the display next to the image in the edit display. It looks similar to: sites/elephanttrust.org/files/images/imagefilename.jpg In that case the thumbnail pictures are already in the same path/folder, named like: imagefilename_tn.jpg Avoid putting a picture before the first text paragraph in a message, because the beginning of the text is automatically used as the teaser text for the abbreviated version of the message. If you do this, have a good look at the preview, before you actually post. Remarks for the following examples
Simple image A simple example for an image is this:
The code for this is:
Centered image with frame A slightly more elaborate example is:
The code for this is:
Clickable, enlargeable picture If you want to drive it to absolute perfection, you can make the picture clickable to open a larger version of the same picture and give the small one a blue frame to indicate that it's a clickable link: The code for this is:
A floating, clickable, enlargeable picture It is also possible to have pictures float left or right with the text flowing around them. This is an example for a picture that floats right. If you want it to float left, in the HTML code change float: right to float: left and change padding-left to padding-right, which creates a little distance between the text and the picture. The picture code has to be entered before the text that flows around it:
Technical details The <p ...> tag is required for centering or for floating with a caption underneath the picture. The alt= attribute is required in every <img ...> tag. It displays as text before the image is loaded or if the image cannot be loaded. On some browsers, like the Internet Explorer, it also creates a pop-up when the mouse pointer hovers over the picture. The title= attribute has text that pops up in some other browsers, like Firefox, when the mouse pointer hovers over the picture. Of course, the alt and title attributes should contain the very same text, unless you want different browsers to display different texts. The text Caption shows underneath the picture. In fact, you could use one caption underneath the picture and some other one in the alt and title attributes for the mouse hover pop-up. Or you could leave out the <br />Caption and rely on the mouse hover text alone. The padding-top style is only there to align the picture with the top of the flowing text, because the text paragraphs have an automatic top margin. This is not essential, only a slight question of typographic beauty. Do not use margin instead of padding here, because that causes certain problems in Internet Explorer. If you try these codes and they don't work, post the message anyway, then ask your friendly admin for help.
|
16 hours 42 min ago
19 hours 41 min ago
1 day 2 hours ago
1 day 2 hours ago
3 days 2 hours ago
3 days 19 hours ago
3 days 20 hours ago
4 days 1 hour ago
4 days 7 hours ago
1 week 8 hours ago