html – How can I align the images side by side and keep the text level?

I have two pictures that have a description underneath. The pictures are both different sizes. If I have a one-line description, everything is aligned. However, if I have an image that has a two-line description it looks like this:
Enter the image description here

I want the images to be aligned and the first line of descriptions to be aligned.

my html:

  • Superstar

    small picture

  • Zoom

    Biggerr large picture sddas sdfdf dfs

My CSS:

    .wrapper{
    list-style: none;
}
.inner{
    display: inline-block;
    background-color: blue;
    width: 250px;
}
.inner img{
    width: 250px;
    height: auto;
}

If you can help, it would be greatly appreciated. I was looking for solutions.

I cannot align a data table with grid.arrange – R to a ggplot2 chart

I am trying to align this data table with my diagram using ggplot2 and grid.arrange. I am not entirely connected to the use either, so I like to take alternative solutions (although I like ggplot2).

Here's the data and code without further ado:

salt.snack<- data.frame(matrix(
c('Eat processed foods high in salt','1-Both','1','18-29',30.2,27.1,33.53,
'Eat processed foods high in salt','1-Both','1','30-44',21.9,19.18,24.98,
'Eat processed foods high in salt','1-Both','1','45-69',11.8,9.75,14.15,
'Eat processed foods high in salt','2-Males','1','18-29',34.8,30.18,39.81,
'Eat processed foods high in salt','2-Males','1','30-44',26.1,21.94,30.75,
'Eat processed foods high in salt','2-Males','1','45-69',13.3,10.28,16.99,
'Eat processed foods high in salt','3-Females','1','18-29',25.9,21.83,30.36,
'Eat processed foods high in salt','3-Females','1','30-44',18.1,14.64,22.25,
'Eat processed foods high in salt','3-Females','1','45-69',10.5,7.9,13.74,
'Eat processed foods high in salt','1-Both','2','18-29',17.4,14.8,20.27,
'Eat processed foods high in salt','1-Both','2','30-44',11.8,9.97,13.79,
'Eat processed foods high in salt','1-Both','2','45-69',5.8,4.58,7.27,
'Eat processed foods high in salt','2-Males','2','18-29',17.5,13.81,22,
'Eat processed foods high in salt','2-Males','2','30-44',14.5,11.63,18.02,
'Eat processed foods high in salt','2-Males','2','45-69',6.3,4.54,8.78,
'Eat processed foods high in salt','3-Females','2','18-29',17.2,14.02,20.9),
nrow=16, ncol=7, byrow=T, dimnames=list(c(NULL),c("Indicator", "Sex", "Survey", "Age", "p", "ll", "ul"))
))


library(data.table)
library(gtable)

grphs <- function(df, lbl){

ddd <- (reshape2::dcast(df, Survey ~ Sex+Age, value.var="p"))
rownames(ddd) <- ddd$Survey
ddd <- ddd(,c(2:10))
ddd$col1 <- ""
ddd$col2 <- ""
ddd <- ddd(,c(1:3, 10, 4:6, 11, 7:9))
colnames(ddd) <- c("18-29","30-44","45-69", "", "18-29","30-44","45-69", "", "18-29","30-44","45-69")
ddd


## Create plot

png(paste0(lbl, ".png"), width=18, height=8, unit="in", res=300)

gg_prop <- ggplot(data = df
                  , aes(x = interaction(Age, Sex), y = p, group=Survey, fill = Survey)) + 
  geom_point(size=5, shape=23, alpha=0) +  
  coord_cartesian(ylim=c(0,100)) +
  scale_fill_manual(values=c("darkviolet", "darkorange"))+
  geom_crossbar(aes(ymin=ll, ymax=ul), width=.15, fatten=2.5, alpha = 0.5) +
  geom_rect(aes(xmin = 1 - 0.25, xmax = 3 + 0.25, ymin = 0, ymax = 100),
               fill = "transparent", color = "black", size = 0.5) +
  geom_rect(aes(xmin = 4 - 0.25, xmax = 6 + 0.25, ymin = 0, ymax =100),
               fill = "transparent", color = "black", size = 0.5) +
  geom_rect(aes(xmin = 7 - 0.25, xmax = 9 + 0.25, ymin = 0, ymax =100),
               fill = "transparent", color = "black", size = 0.5) +
  theme(axis.title.x=element_blank(),
      panel.border = element_blank(),
        axis.text.x=element_blank(),
      plot.title=element_text(size=14, face="bold"),
      axis.line = element_blank(),
        rect = element_blank(),
      axis.text=element_text(size=10),
        axis.title=element_text(size=12,face="bold")
        ) +
  annotate(geom = "text", x = seq(1, 9, 1), y = -1, label = df$Age(1:9), size = 3) +
  annotate(geom = "text", x = c(2,5,8), y = -3.5, label = c("Both", "Males", "Females"), fontface =2, size = 4) +
  labs(x = NULL, y = "Percent", title = paste0('Proportion of ', lbl, ' by Age, Sex, and Survey with 95% Confidence Intervals'))  # what's the reader looking at?

gg_prop

## add data table

tt <- ttheme_minimal(colhead=list(fg_params = list(parse=F)),
                     base_size = 10,
                     padding = unit(c(28, 3), "mm")
               )

lay <- rbind(c(1),c(2))

dddd <- tableGrob(ddd, theme=tt)#, rows=c(" ", " "))
dddd <- gtable_add_grob(dddd ,
        grobs = segmentsGrob( # line across the bottom
                       x0 = unit(0,"npc"),
                       y0 = unit(0,"npc"),
                       x1 = unit(1,"npc"),
                       y1 = unit(0,"npc"),
                       gp = gpar(lwd = 2.0)),
        t = 1, l = 2, clip="inherit", r = ncol(dddd))

grid.arrange(gg_prop, dddd,  nrow = 2, ncol=4, layout_matrix = lay, heights = c(2, 0.5))

dev.off()

}


grphs(salt.snack, "Eat processed foods high in salt")

I have it as a function because I try to generate many of them.

It comes out like this:

The graph

I really just want to align this table with the graphics.

Python – How to align a table, the elements of which are vectors of different sizes

In Python it is possible to format an output in the type console

         Peso (itens)
Item 1   1 (  )    1 ( 1 )    1 ( 1 )    1 ( 1 )    1 ( 1 ) 
Item 2   1 ( 1 )    2 ( 2 )    4 ( 1 2 )    4 ( 1 2 )    4 ( 1 2 3 )
Item 3   1 ( 1 )    2 ( 2 )    4 ( 3 )    8 ( 1 3 )    16 ( 1 3 )
Item 4   1 ( 1 )    2 ( 2 )    4 ( 3 )    8 ( 1 3 )    16 ( 1 3 )
Item 5   1 ( 1 )    2 ( 2 )    4 ( 3 )    8 ( 1 3 )    16 ( 5 ) 

so that the elements in the table are dynamically aligned according to the size of the vector in brackets (the values ​​in brackets can be of different sizes, with 0 elements, 1 element, 2 elements, etc.)

Below is an example of an alignment I would like:

         Peso (itens)         
Item 1   1 (   )    1 ( 1 )    1 ( 1 )      1 ( 1 )      1  ( 1 )
Item 2   1 ( 1 )    2 ( 2 )    4 ( 1 2 )    4 ( 1 2 )    4  ( 1 2 3 )
Item 3   1 ( 1 )    2 ( 2 )    4 ( 3 )      8 ( 1 3 )    16 ( 1 3 )
Item 4   1 ( 1 )    2 ( 2 )    4 ( 3 )      8 ( 1 3 )    16 ( 1 3 )
Item 5   1 ( 1 )    2 ( 2 )    4 ( 3 )      8 ( 1 3 )    16 ( 5 )

css – Align the span tag to HTML to add a frame

I need to line up an image with a span tag and put an edge on that span tag. I was able to align myself, but it only worked by placing a 1 pixel border. It worked, but I didn't like the solution. Does anyone know of any other technique to do this alignment?

.rotten-tomatoes-rating {
  width: 120px;
  margin-right: 15px;
}

.rotten-tomatoes-rating img {
  padding: 10px;
  height: 38px;
  margin-bottom: 1px;
  background-color: #ff0740;
}

.imdb-details span, .rotten-tomatoes-rating span {
  padding: 10px;
  color: white;
  font-weight: 600;
  font-size: 12px;
  border: 1px solid #ff0740;
}

{{rottenTomatoesRating}}

Expected alignment result

html – Always align elements horizontally in the middle

I am trying to get the following result on my page:

Insert picture description here

However, the current result I get is the following:
Insert picture description here

Now the information:

  • I use SkeletonJS and Vue
  • The circles are dynamic. For example, if you have 6 circles, there will be 3 on top and 3 on bottom
  • I tried to use it align: flex But it did not work

The code is as follows:






ImageCircle component:






How can I get the expected result?

Photo editing – Manually align images for time lapse

I've been taking a picture of myself every day for a few months now. I didn't use a tripod, so the pictures are not aligned at all. I'm looking for some kind of software that allows me to manually resize, rotate and crop these images so that I can align them in all. I hope for something where I can have a reference image that is a bit transparent, and then I can edit any other image to match it. Is there such software?

Readability – Align a single column layout

Aligning a column to the left is related to accessibility. Text columns assigned to the left are easier for users with disabilities, such as dyslexia, to read because the uneven spacing between characters can be difficult to understand.

According to WCAG SC # 1.4.8

People with certain cognitive disabilities have trouble reading text
that is justified on both the left and right. The uneven distance between
Words in fully substantiated text can cause "rivers from white" space to flow
at the bottom of the page, which makes reading difficult and in some cases impossible.
Text alignment can also cause words to be close together.
making it difficult for them to locate word boundaries.

html – Align footer links with Flexbox

.single-widget.single-widget-1 {
    display:flex;
    margin-left: 0;
  }
  .single-widget.single-widget-2 {
    display:flex;
    margin-left: 0;
  }
  .single-widget.single-widget-3 {
    display:flex;
    float: unset;
  }
  .single-widget.single-widget-1 {
    margin-left: 0;
  }
  .single-widget.single-widget-2 {
    margin-left: 0;
  }
  .single-widget.single-widget-3 {
    float: unset;
  }
  .single-widget.single-widget-1 {
    margin-left: 55px;
  }
  .single-widget.single-widget-2 {
    margin-left: 20px;
  }


  .single-widget.single-widget-1 {
    margin-left: 0;
  }
  .single-widget.single-widget-2 {
    margin-left: 0;
  }
  .single-widget.single-widget-3 {
    float: unset;
  }