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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

defining/restricting layers

Status
Not open for further replies.

crappdan

Technical User
Mar 4, 2007
4
GB
how do i define/restrict a layer so that text fills the layer as a paragraph instead of the layer expanding horozontaly to infinity on the first line?
 
overflow:hidden ?
Code:
<style type="text/css">
<!--
#MyLayer{
	position:absolute;
	left:66px;
	top:16px;
	width:211px;
	height:60px;
	z-index:1;
	overflow: hidden;
}
-->
</style>

Code:
<div id="MyLayer">
  <p>Hello world Hello world Hello world Hello world Hello world Hello world yet again Hello world</p>
</div>

All the best!

:--------------------------------------:
fugitive.gif


All around in my home town,
They tryin' to track me down...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top