Dynadot

Align images horizontally in a div - Need a Help

NameSilo
Watch

AimyThomas

Account Closed
Impact
0
I have a static website and want to add social media link buttons like twitter, facebook and likedin and all buttons should be display horizontally but the problem was that when I put first button its look well as per my program but when I place the second button within the div it puts itself under the first button, in its place of to the right of the first button I try lots but still its not working
Help me

Thanks in Advance
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
Stick this in the image tag.
HTML:
style="float:left;"
Do this for all images.
Example:
HTML:
<img src="image.png" style="float:left;">
 
1
•••
Example:

HTML:
<div style="width:600px;padding:0;margin:0;">

	<div style="width:200px;float:left;clear:none;">
		<img src="" alt="LEFT" />
	</div>

	<div style="width:200px;float:left;clear:none;">
		<img src="" alt="MIDDLE" />
	</div>

	<div style="width:200px;float:left;clear:none;">
		<img src="" alt="RIGHT" />
	</div>

</div>
 
0
•••
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back