Jump to content

My images in a div won't flush to the right


rovf

Recommended Posts

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

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

> 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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...