Inline | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Inline

Hello I would put any element on the same line.... i put display: inline-block in css with a class in html but isn't on the same line... thank

20th Dec 2018, 11:50 PM
Axelle
4 Answers
+ 7
Axelle This is how inline CSS is done: <!Doctype html> <html> <head> <title>Page Title</title> </head> <body> <style> /*The CSS contents here*/ </style> </body> </html> OR <p style="color:white; background-color:gray;"> This is an example of inline styling. </p> https://www.sololearn.com/learn/CSS/1079/
21st Dec 2018, 1:12 AM
Ikechukwu Okonkwo
Ikechukwu Okonkwo - avatar
+ 4
Axelle edit the thread and attach the code to it...
21st Dec 2018, 7:13 AM
Ikechukwu Okonkwo
Ikechukwu Okonkwo - avatar
+ 3
Can you show us your code so that we can have clear idea of your problem. Thanks!
21st Dec 2018, 1:10 AM
JTLZ
21st Dec 2018, 7:07 AM
Axelle