+ 1

How to align 3 paragraphs horizontally in a row?

15th Jul 2017, 4:50 PM
Uday Thakur
Uday Thakur - avatar
10 Respuestas
+ 6
<table> isn't a good solution, as it's break semanticals meanings ^^ You can workaround with other element on which you apply css display property of table family elements, but you can also use 'float' set to 'left' or 'right' to your 3 <p> with setting explicit width (need to sum be less or equal to available parent width ^^)
15th Jul 2017, 5:11 PM
visph
visph - avatar
+ 3
Show your code: we will try to fix it ;)
15th Jul 2017, 5:14 PM
visph
visph - avatar
+ 3
As suggested by @4rontender, you can use the powerfull new Html5 'flexbox' display... but I will not advice for 'grid layout' wich is lesser supported actually (this will grown quickly) than 'flexbox'. Anyway, this two display box system need workarounds if you need/want to support oldest browsers versions ;)
16th Jul 2017, 7:59 AM
visph
visph - avatar
+ 2
i used even float and align tags but it doesn't working?
15th Jul 2017, 5:13 PM
Uday Thakur
Uday Thakur - avatar
+ 1
A table would be a good solution to this. All you need is one row and three columns. The markup looks like this: <table> <tr> <td><p></p></td> <td><p></p></td> <td><p></p></td> </tr> </table> Tables are always a good thing to keep in mind when you are working with positioning and alignment! I hope this helps! ~Erik Johanson
15th Jul 2017, 5:06 PM
Erik Johanson
Erik Johanson - avatar
+ 1
that's good, but table border will be visible?
15th Jul 2017, 5:08 PM
Uday Thakur
Uday Thakur - avatar
+ 1
Use "flexbox" or "grid layout". In internet there are many articles about it.
15th Jul 2017, 6:24 PM
Вап
+ 1
@4rontender: can you provide some links, so? ;)
16th Jul 2017, 8:42 AM
visph
visph - avatar
0
@visph I can advice to read articles of R.Andrew about grid layout. She is right
16th Jul 2017, 8:22 AM
Вап
0
@visph Simply google her name + css grid layout. I don't remember exact sources
16th Jul 2017, 8:45 AM
Вап