What do i do in below situation. Have learned CSS and cant remember this part. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What do i do in below situation. Have learned CSS and cant remember this part.

Guys if i need this below to align horizontally what do i do in web? Home Blog About Contact To this Home Blog About Contact

5th Jul 2017, 9:26 AM
ARNOLD M MBOYA
ARNOLD M MBOYA - avatar
2 Answers
+ 9
It depends, generally i insert that links in an unordered list and i make an horizontal alignment with "float: left", then with the clearfix i clean the container. A bit tricky? Maybe! But the HTML is readable and all the links are in a single unordered list, in addition i can assign easier a border to my list-items. There are many ways to do that and if you don't show me your HTML i can't be more specific. :)
5th Jul 2017, 9:37 AM
Maz
Maz - avatar
+ 1
According to Henry Sotas correct answer. You can use display: inline-block; for each block-element in html. But you should use a class for the specific elements. ;)
5th Jul 2017, 9:50 AM
Bumpety