caption

Correctly aligning image captions

你。 提交于 2020-01-06 04:34:04
问题 How can I achieve a layout like this? Right now I'm using this HTML: <div class="image"> <img> <div class="caption"> Caption Text </div> </div> And this CSS: .image { background-color: #2A2A2A; } img { max-width: 590px; } But the .image box is too big (since it expands to fit its parent): 回答1: The key is to not set a width for the img element, or the parent container. If the parent, .image is simply floated or in any other way adapted so that it shrinks to the size of its contents, this

Jquery carousel with fading text

丶灬走出姿态 提交于 2020-01-05 13:53:32
问题 Picrelated is a carousel i'm struggling with. By clicking "next" navigation arrow, text caption should fadeout first and then the image block should slide to the left. While the image block slides - next caption fades in. I've tried to use Nivo Slider and BX Slider, but failed permanently. Can you suggest me any helpful jquery plugin or the way to do this? 回答1: Hey Try this code. <style> #slideshow #slidesContainer { margin: 0 auto; width: 300px; height: 263px; overflow: auto; /* allow

Jquery carousel with fading text

别来无恙 提交于 2020-01-05 13:53:13
问题 Picrelated is a carousel i'm struggling with. By clicking "next" navigation arrow, text caption should fadeout first and then the image block should slide to the left. While the image block slides - next caption fades in. I've tried to use Nivo Slider and BX Slider, but failed permanently. Can you suggest me any helpful jquery plugin or the way to do this? 回答1: Hey Try this code. <style> #slideshow #slidesContainer { margin: 0 auto; width: 300px; height: 263px; overflow: auto; /* allow

Referring to a Subform from a Query

北城余情 提交于 2019-12-31 07:16:11
问题 In MS Access 2010, I have a Query which quotes the following in the Criteria; [Forms]![frm_Add_Item_Subform].[ActiveControl].[Caption] This lets me use the "Caption" text of a Button within the query. The following code is on the Button to capture the click. Private Sub cmdClickMe_Click() Debug.Print Me.cmdClickMe.Caption Debug.Print Screen.ActiveControl.Caption End Sub I obtained information on how to do this at the following StackOverflow URL. use caption of pressed button from main form in

Caption above figure using knitr (LaTeX/PDF)

北慕城南 提交于 2019-12-28 04:15:13
问题 I would like to place the caption above the figure using knitr in texmaker. I know that this question has already been asked, and I understand that the solution suggested so far is to use: \begin{figure} \caption{This is a caption above the figure} <<a-plot, echo=FALSE>>= plot(1) @ \end{figure} But in this way I cannot show the code (since echo=FALSE ). And if I choose instead echo=TRUE , what I get is the caption, then the codes, and then the graph, which is also not what I want. What I

cross-reference to figure in R Markdown with html output is not working

落花浮王杯 提交于 2019-12-24 11:09:01
问题 I would like to show a nice cross-reference to a picture in the HTML document I'm creating with R Markdown. However, even if I followed the bookdown section on cross-references, I cannot get the reference to show in the final HTML output. I'm working in R Studio, if that helps. .Rmd file: --- title: "ppp" author: "ppp" date: "July 4, 2017" output: html_document: fig_caption: yes --- ```{r setup, include=FALSE} library(knitr) opts_chunk$set(echo = FALSE) ``` ```{r foo, fig.cap="$f_{p}$ as a

In an Excel UserForm, how do I update a label's caption?

三世轮回 提交于 2019-12-23 10:58:08
问题 I created my first modeless UserForm in Excel and put an ActiveX label on it. How do I set the caption of the label so that it displays whatever is in Sheet1.Range("A1") , and updates itself when the value in cell A1 changes? Basically, I want the Userform's label to always be updated the second anything in the Excel cell changes. Thank you! 回答1: Private Sub Worksheet_Change(ByVal Target As Range) If Intersect(Cells(1, 1), Target) Is Nothing Then Exit Sub End If UserForm1.Label1.Caption =

“\n” command not working to make 2 or 3-line long figure caption using textGrob

我的未来我决定 提交于 2019-12-22 00:04:25
问题 I have been trying to make a 2 to 3-line figure caption below the combined plots using the following script: library(grid) library(gridExtra) library(ggplot2) g1 <- ggplotGrob(pl) #pl is my plot 1 g2 <- ggplotGrob(pl1) #pl1 is my plot 2 g <- rbind(g1, g2) #this combines my two plots caption <- textGrob(expression(paste(bold("Figure 1"), ". This is the first line with a", italic( " scientific name."),"\nThis should be the second line.","\nThis is the third line.")), hjust=0, x=0) #caption to

Proper heading for a table

℡╲_俬逩灬. 提交于 2019-12-20 01:52:09
问题 A matter of semantics. If I have a HTML page that is basically one big table, what element do I use for a header? Ordinarily, you'd use a h1 for the heading of the page, and a caption for the table's heading. But what if the table is the only thing on the page? Including both looks a bit silly. So do I use a h1 and forget about the caption , or vice versa? Are there formal (W3C or WHATWG) recommendations about this? If so, I can't find them. PS For the sake of this question, let's assume that

How to align caption underneath image

╄→尐↘猪︶ㄣ 提交于 2019-12-17 23:36:55
问题 I have 9 images in total and three on each row, I have managed to add a caption for one of my images, but failed to do so for the other ones as it just centers everything underneath and not aligned text to rows per image. <figure> <center> <img src='images/album1.jpg' alt='missing' /> <figcaption>Album name goes here <br>Year goes here <br>artist name goes here</figcaption> <img src='images/album2.jpg' alt='missing' /> <figcaption>Album name goes here <br>Year goes here <br>artist name goes