TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 04-12-2009, 01:52 AM   #1 (permalink)
Orc
The Prestige
 
Orc's Avatar
 
Join Date: Dec 2007
Posts: 1,044
Thanks: 193
Orc is on a distinguished road
Default I forgot how to line break...

Apparently.. cause I don't remember how to line break in divs.

First I thought it was setting a width. and then padding it. that didnt work, so I guess I need someone who has a better memory. -_-

Code:
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
		<style type="text/css">

.wrapper {
margin: 0px auto;
}

			.container {
			background: red;
			width: 400px;
			padding: 1em;
			}

		</style>
	</head>
	<body>
	<div class="wrapper"><div class="container">fdsfdsfdsfdsfdsfdsfdsfdsfdsfdsfdsfdsfdsfdsfdsfdsfdsfdsfdsfdsfdsfdsfdsfdsfdsfdsfdsfdsfdsfdsfdsfdsfdsfdsfdsfdsfdsfdsfdsfdsfdsfdsfdsfdsfdsfdsfdsfdsfdsfdsfdsfds</div></div>
	</body>
</html>
Thats it. Long random text, and it doesn't do it anymore. did firefox fuck up or is it just me.
__________________
VillageIdiot can have my babbies ;d
Orc is offline  
Reply With Quote
Old 04-12-2009, 06:02 AM   #2 (permalink)
The Addict
 
tony's Avatar
 
Join Date: Aug 2008
Posts: 336
Thanks: 8
tony is on a distinguished road
Default

As far as I know if it is a continuous string, you need to break it programmatically. CSS (or the browser) only breaks it if there is a white space.
tony is offline  
Reply With Quote
The Following User Says Thank You to tony For This Useful Post:
Orc (04-13-2009)
Old 04-12-2009, 11:32 AM   #3 (permalink)
The Acquainted
 
sjaq's Avatar
 
Join Date: Nov 2007
Location: Netherlands
Posts: 113
Thanks: 11
sjaq is on a distinguished road
Default

http://snipplr.com/view/10979/css-cr...ser-word-wrap/
sjaq is offline  
Reply With Quote
The Following User Says Thank You to sjaq For This Useful Post:
Orc (04-13-2009)
Old 04-13-2009, 03:02 AM   #4 (permalink)
Orc
The Prestige
 
Orc's Avatar
 
Join Date: Dec 2007
Posts: 1,044
Thanks: 193
Orc is on a distinguished road
Default

godly! thanks
__________________
VillageIdiot can have my babbies ;d
Orc is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Line Chart in PHP Rendair Advanced PHP Programming 3 08-28-2009 08:17 AM
parsing a page line by line sarmenhb Absolute Beginners 3 12-04-2008 01:58 AM
Preventing line breaks with div without display inline Orc XHTML, HTML, CSS 11 10-21-2008 09:54 AM
Adding content to a specific line in file Normo Absolute Beginners 5 10-09-2008 11:20 PM
uncaught exception: [Exception... "Component returned failure code: 0xc1f30001 (NS_ER Orc Javascript, AJAX, E4X 2 02-26-2008 02:12 PM


All times are GMT. The time now is 10:53 AM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design