0

What do I do if social media icons do not display inline on the right side of the nav bar .

.social{ display:inline; float:right; } #wont work

3rd Jul 2017, 5:38 AM
Ricardo Chitagu
Ricardo Chitagu - avatar
6 Antworten
+ 1
did you put nav bar and social icons on same div or different?
3rd Jul 2017, 6:33 AM
Peshkawt Mahmood
Peshkawt Mahmood - avatar
+ 1
if you are using ul for nav items try below css for ul ul { display:inline; }
3rd Jul 2017, 7:19 AM
Peshkawt Mahmood
Peshkawt Mahmood - avatar
0
can you share the full codes?
3rd Jul 2017, 6:05 AM
Calviղ
Calviղ - avatar
0
same div
3rd Jul 2017, 6:53 AM
Ricardo Chitagu
Ricardo Chitagu - avatar
0
thx
3rd Jul 2017, 7:24 AM
Ricardo Chitagu
Ricardo Chitagu - avatar
0
here is a sample sample of code for navbar with social icons on same line html ...... <div id="Nav"> <ul> <li>Home</li> <li>Products</li> <li>Servises</li> <li>About us</li> <li>Contact</li> </ul> <img src="Twitter.png" alt="twitter" class="Social"/> <img src="facebook.png" alt="facebook" class="Social"/> </div> css .... #Nav { align:left; background-color:#f26522; } ul { margin:0; padding:0; display:inline; } li { color:#FFF; list-style-type:none; margin:0; padding:0 1%; display:inline; vertical-align:middle; font-size:20px; } .Social { height:35px; float:right; display:inline; }
3rd Jul 2017, 7:40 AM
Peshkawt Mahmood
Peshkawt Mahmood - avatar