As in HTML/CSS to align in the middle of one line, consisting of pictures and text?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
4 views
The picture is not the IMG, the DIV with "background: url(images/supermega.png) no-repeat -990px -860px;"

It turns out so: [DIV] text text and more text

This string should be aligned in the middle of the parent element and assuming that row width may vary dynamically (text in different languages, depending on user selection).

Ideas?
by | 4 views

3 Answers

0 like 0 dislike
Of course I only know all the charm of a wonderful layout, but my version:
\r
From the parent element to put text-align: center
The diva with background-ohms to put display: inline-block;
by
0 like 0 dislike
Thank you, it helped.
by
0 like 0 dislike
margin: 0 auto;
by

Related questions

0 like 0 dislike
1 answer
0 like 0 dislike
2 answers
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
110,608 questions
257,186 answers
0 comments
27,912 users