Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Basic CSS Question

Status
Not open for further replies.

ToddWW

Programmer
Mar 25, 2001
1,073
US
I have a div element that automatically stretches with the width of the window. How do I place one piece of text on the left and another on the right of that div element. Do I need to nest two div or span elements in there?

Thanks in advance.

ToddWW
 
Yes, you'll need to nest to elements to hold tour text and float them left and right.



----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.

Behind the Web, Tips and Tricks for Web Development.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top