AardvarkBusiness.net - Business Search Engine AardvarkBusiness.net - Business Search Engine



 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

     

Displaying two images on opposite sides

 
 
Post new topic   Reply to topic    AardvarkBusiness.net Forum Index -> Programming Forum
View previous topic :: View next topic  
Author Message
foundThroughAdminSig
President
President


Joined: 24 Apr 2004
Posts: 6491

7611 ants

PostPosted: Wed May 14, 2008 5:40 am    Post subject: Displaying two images on opposite sides Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    AardvarkBusiness.net Forum Index -> Programming Forum All times are GMT + 1 Hour
Page 1 of 1

 
Google
 
Business Forum Sport Forum Travel Forum


Powered by php B B © 2001, 2002 php B B Group

AardvarkBusiness.net Business Search Engine & Directory