B
B
big_bo2015-12-28 18:42:36
css
big_bo, 2015-12-28 18:42:36

How to align in a tag that lies next to another tag?

I sketched a problematic piece on fiddle:
https://jsfiddle.net/bv5fLrth/2/
The essence of the problem:
1) A large description of the picture climbs out of bounds and shifts to the next line. I would like the whole inscription to be aligned to the left, as it is done, for example here: prntscr.com/9jh3jl
2) And the second problem: after I set

.class__li {width: 180px;}
, all tags are not aligned on the same line.
My knowledge in layout is quite minimal and I need the help of experts. Can anyone help?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
alexmelnik, 2015-12-28
@big_bo

.class__li a{
  display: inline-block;
  vertical-align: middle;
}
.class__li a:last-child{
  width: 70%;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question