rovf 0 Posted December 21, 2015 Report Share Posted December 21, 2015 My HTML code is this: <div id="dlogo"> <img class="dlogopic" border="0" src="http:.....png"> <img class="dlogopic" border="0" src="https://.....png"> </div> I would like to have these images displayed on the right hand side of the window. I tried the following CSS: .dlogopic { display: inline-block; height: 60px; overflow: auto; } div#dlogo { { text-align: right; } Still, the images are displayed on the left. Quote Link to post Share on other sites
davej 251 Posted December 21, 2015 Report Share Posted December 21, 2015 Because you have an extra curly brace in here... div#dlogo { { text-align: right; } Also you should stop using the border attribute (put it in the css) and start using the alt attribute. Quote Link to post Share on other sites
rovf 0 Posted December 22, 2015 Author Report Share Posted December 22, 2015 > Because you have an extra curly brace in here... Waaaaaaaa! Thank you! > Also you should stop using the border attribute (put it in the css) and start using the alt attribute Thanks for the suggestion! Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.