Web Layout
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsWeb DesignWeb Layout

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old February 16th, 2007, 07:55 AM
jarv jarv is offline
Contributing User
ASP Free Novice (500 - 999 posts)
 
Join Date: Dec 2004
Posts: 980 jarv User rank is Sergeant (500 - 2000 Reputation Level)jarv User rank is Sergeant (500 - 2000 Reputation Level)jarv User rank is Sergeant (500 - 2000 Reputation Level)jarv User rank is Sergeant (500 - 2000 Reputation Level)jarv User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 6 Days 18 h 53 m 47 sec
Reputation Power: 10
Aligh left and align right on same line in same div

I have some CSS in a DIV that is aligned to the left I would like to add some text to the right of that DIV

I added a SPAN tag and a CLASS within that DIV and my text went onto the next line?!

Reply With Quote
  #2  
Old March 15th, 2007, 10:54 AM
TheJim01 TheJim01 is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jul 2005
Posts: 45 TheJim01 User rank is Corporal (100 - 500 Reputation Level)TheJim01 User rank is Corporal (100 - 500 Reputation Level)TheJim01 User rank is Corporal (100 - 500 Reputation Level)TheJim01 User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 12 h 4 m 23 sec
Reputation Power: 5
Use the CSS property "float" to make your <span> align to the right. Just remember that you have to clear the float inside the <div> so that the rest of your page doesn't get pushed around.

Reply With Quote
  #3  
Old May 2nd, 2007, 10:48 AM
shamrog12's Avatar
shamrog12 shamrog12 is offline
Newton's Apple Wizard
ASP Free Intermediate (1500 - 1999 posts)
 
Join Date: Nov 2003
Location: Los Angeles
Posts: 1,661 shamrog12 User rank is Sergeant Major (2000 - 5000 Reputation Level)shamrog12 User rank is Sergeant Major (2000 - 5000 Reputation Level)shamrog12 User rank is Sergeant Major (2000 - 5000 Reputation Level)shamrog12 User rank is Sergeant Major (2000 - 5000 Reputation Level)shamrog12 User rank is Sergeant Major (2000 - 5000 Reputation Level)shamrog12 User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 3 Weeks 2 Days 2 h 39 m 22 sec
Reputation Power: 34
Send a message via AIM to shamrog12
The basic idea... making this pretty in IE versus FF may require additional styling. Also, in the end, don't use inline CSS like I added here.

<div style="width200px;>
<span style="float:right;width:50px;">Right</span>
<span style="float:left;width:50px;">Left</span>
</div>
__________________
If you found a post of mine helpful, please click on the on my post to add to my reputation.


Reply With Quote
Reply

Viewing: ASP Free ForumsWeb DesignWeb Layout > Aligh left and align right on same line in same div


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway