rovf Posted December 21, 2015 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. Link to comment Share on other sites More sharing options...
davej Posted December 21, 2015 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. Link to comment Share on other sites More sharing options...
rovf Posted December 22, 2015 Author 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! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now