foundThroughAdminSig President

Joined: 24 Apr 2004 Posts: 6491
7611 ants
|
Posted: Wed May 14, 2008 5:40 am Post subject: Displaying two images on opposite sides |
|
|
I have a rectangle stretching out from left to right. I want to display two images inside it on opposite sides. What I came up with is the following:
Code: | <div style="background: url('images/Gulab.jpg') no-repeat #040406; height: 45px; width: 100%;">
<div style="background: url('images/Swaraj.jpg') right no-repeat; height: 45px; width: 100%; float: right; display: inline; text-align: right;">
</div>
</div>
|
Isn't there a better way to do this? It does what I need to do for the time being, but I definitely want to code HTML more efficiently ... and more ... cleanly.
( I'm using this code on this website. ) _________________ Online Education :: Training Forum
Chat about health ... Finance Books |
|