I am wondering if anyone knows how to do the following:
I have an image in a header defined by a div. It is organized in the way
that I was shown here, that is the contents of the div (three images)
are aligned to the left using text-align: left; and first image is flush
on the left, second image is has a left margin of 50px. The third
doesn't matter for now.
The question: Is there a way to keep the second image flush with the
right side of the *browser window*?
The body of the document is 2000px so I can't use the body.
Here is what I was thinking: wrap the fist and second image in another
div and size it to 100% then float the second image to the right.
That seemed inefficient to me. Does anyone else know how to do this,
maybe using margins or padding or something else?
I have an image in a header defined by a div. It is organized in the way
that I was shown here, that is the contents of the div (three images)
are aligned to the left using text-align: left; and first image is flush
on the left, second image is has a left margin of 50px. The third
doesn't matter for now.
The question: Is there a way to keep the second image flush with the
right side of the *browser window*?
The body of the document is 2000px so I can't use the body.
Here is what I was thinking: wrap the fist and second image in another
div and size it to 100% then float the second image to the right.
That seemed inefficient to me. Does anyone else know how to do this,
maybe using margins or padding or something else?
Comment