samiam41
asked on
Center images in CSS/Html script
Hi experts. I have a script that includes three images at the bottom. I would like for those three images to be centered in their box. Please assist.
Thank you.
Thank you.
<br>
<br>
<div style="width:200px; padding: 5px; border: solid 1px black; margin-right:100px; float:left;">
<img src="website/custom3r-s3vice.jpg" />
<p>Please call</p>
</div>
<div style="width:200px; padding: 5px; border: solid 1px black; margin-right:100px; float:left;">
<img src="website/t3xt.m3ssage.jpg" />
<p>Send us a text message!</p>
</div>
<div style="width:200px; padding: 5px; border: solid 1px black; margin-right:100px; float:left;">
<img src="website/3mail.jpg" />
<p>Send us an email!</p>
</div>
</div>
</body>
</html>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Is it supposed to center the image as well? I'm glad it does, just didn't know if that was something expected.
*I bookmarked the website you mentioned so I can build up a personal knowledge base of info to refer to. Thanks.
*I bookmarked the website you mentioned so I can build up a personal knowledge base of info to refer to. Thanks.
Have you tried
<div style="width:200px; padding: 5px; border: solid 1px black; float:left; text-align:center">
md
<div style="width:200px; padding: 5px; border: solid 1px black; float:left; text-align:center">
md
You mean like the text-align:center; I posted in #23612983
Sorry about that...but yes...
MD - I am on GMT...Will join later.
MD - I am on GMT...Will join later.
ASKER
Thanks for the post. mplungjan has this wrapped up. ; )
@mplungjan- Is it supposed to center the image as well? I'm glad it does, just didn't know if that was something expected.
@mplungjan- Is it supposed to center the image as well? I'm glad it does, just didn't know if that was something expected.
Yes. There is no "image-align" in css
ASKER
You the man. Thanks as always for being a true pro!
ASKER
I like this CSS thing. Glad I finally found a purpose for learning it and a great teacher. Take care!
Best regards,
Aaron
Best regards,
Aaron
ASKER
Here you go pro's. Help if you can. Thanks!
https://www.experts-exchange.com/questions/24382059/CSS-set-to-close-previous-link-when-new-one-is-open.html
https://www.experts-exchange.com/questions/24382059/CSS-set-to-close-previous-link-when-new-one-is-open.html
ASKER
Thanks. Testing now.